Download MetaTrader 5

Ajusting Indicator

To add comments, please log in or register
c.robredo
26
c.robredo  

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  
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
32401
Alain Verleyen  
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  
Alain Verleyen:
Works better.

Thanks so much for the help Pueblo and Alain.

It worked fine.

To add comments, please log in or register