Download MetaTrader 5
To add comments, please log in or register
Have you developed a profitable strategy? Share it with millions of traders via Signals!
Loong
1260
Loong 2010.02.21 13:02 

Why there are not IndicatorGetXXX function?
How to get MAXIMUM or MINIMUM of a indicator?
If I set MAXIMUM or MINIMUM of a indicator, how to clear them at runtime?
If I set some levels of a indicator, how to delete these levels at runtime?

Loong
1260
Loong 2010.02.21 13:03  

I did some test. 

This code will cause indicator invisible

        IndicatorSetDouble(INDICATOR_MAXIMUM, 0.0);
        IndicatorSetDouble(INDICATOR_MINIMUM, 0.0);

And this code will cause MT5 (build 249) crash!

        IndicatorSetDouble(INDICATOR_MAXIMUM, EMPTY_VALUE);
        IndicatorSetDouble(INDICATOR_MINIMUM, EMPTY_VALUE);

 

Loong
1260
Loong 2010.02.21 13:20  

Why need clear MAXIMUM, MINIMUM and levels?
Because I make a Indicator, which can select all documented Indicator in parameter.

 

But some Indicator with MAXIMUM, MINIMUM and levels, if I do not clear them, other Indicator maybe invisible.

RVI

RSI

RVI after RSI

 

/
To add comments, please log in or register