Download MetaTrader 5

Ajusting Indicator

To add comments, please log in or register
Share the links to products and make your profit
c.robredo
26
c.robredo 2015.05.26 16:21 

Hello, I'm using this indicator: https://www.mql5.com/en/code/1725

I am trying to modify the values returned.


I want that indicator returns differents values when it is in differents positions. This example shows 2 stocks, one working ok, and other return just 1 value.


Picture


If someone could help me, I would appreciate.


Regards,

Carlos

Didi Index
Didi Index
  • votes: 26
  • 2013.05.24
  • Rudinei Felipetto
  • www.mql5.com
Didi Index mql5 source code.
Pueblo
5
Pueblo 2015.05.26 17:59  
Hi Carlos, you can try so: after SetIndexBuffer(0,CurtaBuffer,INDICATOR_DATA); SetIndexBuffer(1,MediaBuffer,INDICATOR_DATA); SetIndexBuffer(2,LongaBuffer,INDICATOR_DATA); insert IndicatorSetInteger(INDICATOR_DIGITS,_Digits); Regards Vlad
Alain Verleyen
Moderator
30744
Alain Verleyen 2015.05.26 18:53  
Pueblo:
Hi Carlos, you can try so: after SetIndexBuffer(0,CurtaBuffer,INDICATOR_DATA); SetIndexBuffer(1,MediaBuffer,INDICATOR_DATA); SetIndexBuffer(2,LongaBuffer,INDICATOR_DATA); insert IndicatorSetInteger(INDICATOR_DIGITS,_Digits); Regards Vlad
   IndicatorSetInteger(INDICATOR_DIGITS,4); 
Works better.
Files:
c.robredo
26
c.robredo 2015.05.26 22:25  
Alain Verleyen:
Works better.

Thanks so much for the help Pueblo and Alain.

It worked fine.

To add comments, please log in or register