I am looking for the Close of the Heinken Ashi.
Thought I have everything right, but gives me the wrong value
Any ideas?
iCustom does not work like that, it returns the handle of the indicator for further use.
So normally get the handle just once in OnInit.

- www.mql5.com
I am looking for the Close of the Heinken Ashi.
Thought I have everything right, but gives me the wrong value
Any ideas?
Is this MQL4 or 5?
HAClose = iCustom(0,PERIOD_M1,"Heiken Ashi", HColor1,HColor2,HColor3,HColor4,3, 0);
-
On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26 № 4 -
You should encapsulate your iCustom calls to make your code self-documenting.
take candle color hekin ashi - Inflation - MQL4 and MetaTrader 4 - or #8 ( 2018.02.21) MQL4 programming forum #1
Detailed explanation of iCustom - MQL4 programming forum
Is this MQL4 or 5?
MQL4 thanks
In future please post in the correct section
I will move this topic to the MQL4 and Metatrader 4 section.
In future please post in the correct section
I will move this topic to the MQL4 and Metatrader 4 section.
- Look at the link before clicking on one.
- Hover over the up arrow at the top and bottom left (of every page):
and read the pop up text or look at the URL.
- Why did you post your MT4 question in the Root / MT5 General
section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am looking for the Close of the Heinken Ashi.
Thought I have everything right, but gives me the wrong value
Any ideas?