my target is to get the value of the Supertrend line via the iCustom function.
Code: Select all
Supertrend_1_3_D1_0 =iCustom(Symbol(),1440,"SuperTrend nrp new mtf 2",10,PRICE_CLOSE,1.3,1440,0,1);
Supertrend_1_3_D1_1=iCustom(Symbol(),1440,"SuperTrend nrp new mtf 2",10,PRICE_CLOSE,1.3,1440,1,1);
Supertrend_1_3_D1_2=iCustom(Symbol(),1440,"SuperTrend nrp new mtf 2",10,PRICE_CLOSE,1.3,1440,2,1);
Supertrend_1_3_D1_3=iCustom(Symbol(),1440,"SuperTrend nrp new mtf 2",10,PRICE_CLOSE,1.3,1440,3,1);
Supertrend_1_3_D1_4=iCustom(Symbol(),1440,"SuperTrend nrp new mtf 2",10,PRICE_CLOSE,1.3,1440,4,1);
Supertrend_1_3_D1_5=iCustom(Symbol(),1440,"SuperTrend nrp new mtf 2",10,PRICE_CLOSE,1.3,1440,5,1);
Unfortunately the indicator's buffers are different from the line value ( expecially when the line is flat ):
Could you please help me.