Hello folks,
As always: I'm experimenting with mql.
Today I'm stuck with iMACD. I would just like to get the value of Mode_Main,
but somehow it won't do it.
Here's the code (please see picture also):
Why is my output only zero?
Thanks.
MikeFT
As always: I'm experimenting with mql.
Today I'm stuck with iMACD. I would just like to get the value of Mode_Main,
but somehow it won't do it.
Here's the code (please see picture also):
Inserted Code
#include <stdlib.mqh>
int init()
{
}
int deinit()
{
}
int start()
{
double iMACDValue;
string iMACDValueStr;
iMACDValue = iMACD(Symbol(),60,12,26,9,PRICE_CLOSE,MODE_MAIN,1);
iMACDValueStr = iMACD(Symbol(),60,12,26,9,PRICE_CLOSE,MODE_MAIN,1);
Alert("iMACDValue Double: ", iMACDValue,", iMACDValue Double2Str: ",DoubleToStr(iMACDValue,8));
Alert("iMACDValueStr: ", iMACDValueStr);
} Thanks.
MikeFT
Attached Image