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...
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!
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.
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.
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.
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; } }
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
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
The article delves into the CCanvas class and its use in MQL applications. The theory is accompanied by examples.
more...
-------------
By the way, the key thread on mql5 forum about Canvas is this one:
Possibilities of Canvas
Bookmarks