|
Dynamic Indicator Levels
Sometimes when you´re coding some indicator, some copy of one made for TS or MS you´d find the indicator has some custom levels included (like the 70/30 level on the RSI).
MT cames with 2 functions or different ways to plot the levels.
SetLevelValue(1,3.14);
property indicator_level1..8 0
However, both are fixed.
Is there any way to set the indicator levels in a dynamic way. Like MT does with the grid on the chart when you change from one TF to another.
IE: if you´re on GBPUSD TF5 you can seed the grid of the chart with lines every x pips/price, but if you change to TF15 the grid changes the scale.
The same happens when you zoom in or out. The grid is scaled.
I have fours indicators ready but I want to include the dynamic scaled levels to give them the same behavior and view like in TS or MS or VTS.
|