I tried to use the icustom function to call
heiken_ashi_smoothed into day trader expert.
it failed to compile, am sure something is wrong
. i am confused with whole thing.
if someone can help me, attached is the indicator.Then my work trying to produce
a better expert. some body please helpout!!
Hi,
I don't know about the logic of your program but I looked only where th iCustom was used and if you arrange like the following it should be ok, at least for the compilation.
void calculateIndicators()
{
haOpen=iCustom(NULL,0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,2,0);
haClose=iCustom(NULL,0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,3,0);
haOpen2=iCustom(NULL,0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,1,0);
haClose2=iCustom(NULL,0,"Heiken_Ashi_Smoothed",MaMetod,MaPeriod,MaMetod2,MaPeriod2,0,0);
bool isBuying = ((haOpen>=haClose)&&(haOpen2<haClose2));
bool isSelling = ((haOpen<=haClose) && (haOpen2>haClose2));
isClosing = false;
}
Good luck

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
heiken_ashi_smoothed into day trader expert.
it failed to compile, am sure something is wrong
. i am confused with whole thing.
if someone can help me, attached is the indicator.Then my work trying to produce
a better expert. some body please helpout!!