Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Dynamic timeframe in MT5 or Possibilities of Canvas

This is a discussion on Dynamic timeframe in MT5 or Possibilities of Canvas within the General Discussion forums, part of the Trading Forum category; https://www.mql5.com/en/forum/229521...mment_13261028...

      
   
  1. #1
    Junior Member
    Join Date
    Sep 2019
    Posts
    2

    Dynamic timeframe in MT5 or Possibilities of Canvas


  2. #2
    member mql5's Avatar
    Join Date
    May 2013
    Posts
    2,483
    Blog Entries
    1686
    Quote Originally Posted by mql5 View Post
    Demonstration of the possibilities of Сanvas in dynamics.



    read more here
    There is updated on post #27



    Do not judge strictly. Only the first drafts of a dynamic timeframe.

    For the best work, you need to set the number of max bars in the chart - Unlimited!
    Metatrader 5 / Metatrader 4 for MQL5 / MQL4 articles preview preview
    Trading blogs || My blog

  3. #3
    Junior Member
    Join Date
    Sep 2019
    Posts
    2

    Fast Polynom moving average and channel


  4. #4
    Senior Member Taylor Woods's Avatar
    Join Date
    Jan 2019
    Posts
    299
    Each one of the traders we have a choice of the broker to be used, the trader can pick a broker which is all the more fitting to trading that will be used if you love doing scalping should pick the broker that licenses trading thought, for instance, this. Like I pick ForexChief who doesn't keep any kind of strategy to use.
    Else it will be harder to survive, fundamentally paying little heed to a beneficial trading approach scalping don't allow all around coordinated trading stages in their trading brokers. My broker offers in excess of all major and minor currency pairs for your own hypothesis and trading options. I have been trading the latest couple of months. the best organization gave by this broker.

  5. #5
    member mql5's Avatar
    Join Date
    May 2013
    Posts
    2,483
    Blog Entries
    1686

    3D Spiral Quotes

    3D Spiral Quotes - indicator for MetaTrader 5



    3D is applied without the use of Direct X only by means of the iCanvas class.

    There is only one parameter in the indicator - the number of circles displayed.
    Metatrader 5 / Metatrader 4 for MQL5 / MQL4 articles preview preview
    Trading blogs || My blog

  6. #6
    member mql5's Avatar
    Join Date
    May 2013
    Posts
    2,483
    Blog Entries
    1686

    3D Moving Average

    3D Moving Average - indicator for MetaTrader 5



    The indicator management is simple and intuitive.
    There are two color modes:

    • Color varies with price
    • Color changes depending on the MA Period.

    Switching between the two color modes is done by the "C" key (Color).
    To change the step between periods of moving averages, the mouse pointer occurs when it is in the extreme right position and a vertical slider appears.
    Metatrader 5 / Metatrader 4 for MQL5 / MQL4 articles preview preview
    Trading blogs || My blog

  7. #7
    member mql5's Avatar
    Join Date
    May 2013
    Posts
    2,483
    Blog Entries
    1686
    Some explanation -

    Libraries: Easy Canvas
    Nikolai Semko , 2020.02.17 05:15


    I want to make it clear to the interested programmers the important point in how the canvas works in tester mode. I was approached by a well-known programmer in this community with this question:

    - Why, in the tester mode, the panel created on the objects is redrawn an order of magnitude faster than the one implemented on the canvas, while in normal mode, is everything okay with the canvas speed?

    Having understood, I understood the reason and the solution to this problem.

    The fact is that with objects, redrawing occurs along with redrawing the entire screen, and the screen in the tester is redrawn no more than 30 frames per second.

    Objects are ultimately the same canvas (internal), but when you change the properties of the object , the canvas of the object is not formed (not recounted), but only formed at the time the screen is updated (ChartRedraw), which happens in the tester (and in the usual mode, too) no more often than our eyes can distinguish changes, i.e. no more than ~ 32 frames per second.

    Let's say the panel changes every tick. Then, in the tester, by default, the canvas will be recounted every tick, but redrawing in the tester will still occur no more often than ~ 30 milliseconds (~ 30 frames per second).

    In other words, the canvas will be recounted much more often than it will actually be displayed on the screen, therefore, a disproportionate waste of resources occurs.

    The solution to this problem is to control the recalculation and redrawing of canvas not more than once every 15-30 milliseconds of computer time, then there will be no extra cycles of empty counts.

    For example, like this:

    Code:
    void OnTick ()
      {
       static uint lastCalc= 0 ;
       uint cur= GetTickCount ();
       if (cur-lastCalc> 15 ) {
        ReDrawMyCanvas();
        lastCalc=cur;
       }
      }
    Last edited by mql5; 02-17-2020 at 06:49 AM.
    Metatrader 5 / Metatrader 4 for MQL5 / MQL4 articles preview preview
    Trading blogs || My blog

  8. #8
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,477
    Blog Entries
    2957
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    3D Sky from Nikolai Semko

    Original post in mql5 forum with indicator Stars (for MT5) attached to the post (Stars is the name of the indicator) is this one: #691 (next version of this indicator is on the post #710).
    MT4 version of indicator is on post #713


    The image (animated gif): https://c.mql5.com/3/368/Stars__1.gif
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  9. #9
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,477
    Blog Entries
    2957
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    Quote Originally Posted by newdigital View Post
    3D Sky from Nikolai Semko

    Original post in mql5 forum with indicator Stars (for MT5) attached to the post (Stars is the name of the indicator) is this one: #691 (next version of this indicator is on the post #710).
    MT4 version of indicator is on post #713
    Next version of this indicator (for MT5) is on post #715 (3D Sky, but with the colored stars now).
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  10. #10
    member mql5's Avatar
    Join Date
    May 2013
    Posts
    2,483
    Blog Entries
    1686

    Using the CCanvas class in MQL applications

    The article delves into the CCanvas class and its use in MQL applications. The theory is accompanied by examples.

    more...
    -------------

    Dynamic timeframe in MT5 or Possibilities of Canvas-eurusdh1mario.png


    By the way, the key thread on mql5 forum about Canvas is this one:
    Possibilities of Canvas
    Metatrader 5 / Metatrader 4 for MQL5 / MQL4 articles preview preview
    Trading blogs || My blog

Page 1 of 2 1 2 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •