the Heiken Ashi is an MQ5
Hi davefx,
Try this :
void TechnicalAnalysis2() { double a, b; a = iCustom(NULL, NULL, "Heiken_Ashi",2,0); Print ("a is ", DoubleToStr(a, Digits), " err ", GetLastError()); b = iCustom(NULL, NULL, "Heiken_Ashi",2,1); Print ("b is ", DoubleToStr(b, Digits), " err ", GetLastError()); if (a == b) { SellOrder4(); Print ("Sell"); } }
what the Print says ?!?!
And www.google.com/search?q=iCustom Heiken Ashi site:forum.mql4.com
pssstttt : Hope mod help too.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I am trying to create an EA based on Heiken Ashi bars. The logic is quite simple: To check the last HA bar, if a new bar opens as the same colour as the bar that just closed, then open a trade.. But I cannot get it working.. Any ideas folks..
Any help would be most appreciated.
Dave.