Premium6 468x60 forex
Results 1 to 7 of 7

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
    Senior Member mql5's Avatar
    Join Date
    May 2013
    Posts
    1,729
    Blog Entries
    550
    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
    280
    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
    Senior Member mql5's Avatar
    Join Date
    May 2013
    Posts
    1,729
    Blog Entries
    550

    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
    Senior Member mql5's Avatar
    Join Date
    May 2013
    Posts
    1,729
    Blog Entries
    550

    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
    Senior Member mql5's Avatar
    Join Date
    May 2013
    Posts
    1,729
    Blog Entries
    550
    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 05:49 AM.
    Metatrader 5 / Metatrader 4 for MQL5 / MQL4 articles preview preview
    Trading blogs || My blog

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
  •