Heiken Ashi imput parameters
-
I like the inclusion of Haiken Ashi in the default indicators. I like the current setting giving us to use the cross.
Unfortunately, unlike the other indicators, I can not find a direct imput parameters settings.
I need to imput my parameters just like every other indicator.
Is it ok to imput the parameters as variable?
I need to Input the following Parameters:
int MaMethod
int MaPeriod
int MaMethod2
int MaPeriod2Below is what I have tried but no trade has been taken so far.
......
x.jpg -
This option is for "MQL4/Indicators/Heiken Ashi.mq4", which comes with MetaTrader 4. This indicator has 4 inputs for colors, but I can't find any inputs for MA periods or anything similar
-
You are right. The one that has parameters is actually Heiken Ashi smoothened.
I will try and replace the one that came with mt4 and see how it goes as it also has 4 buffers of 2 pairs of colors. Red, white, red and white.
Thank you. The Heiken Ashi cross is really a very good strategy. -
If you replace the file, then you must have 4 input parameters of "color" datatype. Not more, not less, but exactly 4. Otherwise the indicator will not be loaded. And also the buffers must work the same way.
It's interesting that the MQL5 version of HeikenAshi outputs differently for it's buffers. They are O, H, L and C. But in "Condition" I did it in a way to work the same in MQL4 and MQL5
-
Thanks once more. It has 4 input parameters of "color" datatype as per attached.
......
Screenshot_5.jpg -
Again, if you don't use the exact number and data type of input parameters in iCustom, the indicator is not loaded properly and there are lots of error messages in the logs. Try it and you will see. But I will do nothing for your indicator, because as I said - it has nothing to do with MetaTrader 4 itself, this is just another custom indicator made from someone that is not from MetaQuotes. There is no place for non-MetaQuotes indicators in "Condition -> Indicator"