Hello,
I want to know the level of Megatrend Indicator.
I have coded :
double mgt0 = iCustom(Symbol(),Period(),"Mega trend",period,method,price,0,0);
double mgt1 = iCustom(Symbol(),Period(),"Mega trend",period,method,price,0,1);
double diffmgt = mgt0-mgt1;
Comment("MegaTrend = " + DoubleToStr(diffmgt,5) ) ;
Result : Megatrend = 0.00000
Where is the error ?
Thanks for help.
Jo
I want to know the level of Megatrend Indicator.
I have coded :
double mgt0 = iCustom(Symbol(),Period(),"Mega trend",period,method,price,0,0);
double mgt1 = iCustom(Symbol(),Period(),"Mega trend",period,method,price,0,1);
double diffmgt = mgt0-mgt1;
Comment("MegaTrend = " + DoubleToStr(diffmgt,5) ) ;
Result : Megatrend = 0.00000
Where is the error ?
Thanks for help.
Jo