Hi everyone. Im very new at writing MQL4 and i wanted to set an EA to call upon the BB_Macd indicator and buy and sell depending on the color of the dots or whether the last dot is < or > than the current one. I have tried to do both but i just cant seem to understand how to call on custom indicators. Could someone help?
Files:
bb_macd.mq4
5 kb
- Problem with custom indicator
- custom indicator to EA
- Help in writing expert
- First make sure you have saved the indicator to the indicators folder - in my case it is: C:\Program Files\Go Trader MT4\experts\indicators
- Make sure you have compiled the indicator.
- Next make sure you have the format of iCustom correct - in this case it would be:
iCustom(NULL,0 ,"BB_Macd",12,26,10,2.5,<Buffer number goes here (0~4)>,MODE_EMA,0)
The info about iCustom can be found here: https://docs.mql4.com/indicators/iCustom
I think the MODE_EMA is surplus to requirements . .
i managed to set up the parameters but im confused as to what the buffer is for the color lime and magenta and how to set buy and sell lines for them
RaptorUK:
The info about iCustom can be found here: https://docs.mql4.com/indicators/iCustom
I think the MODE_EMA is surplus to requirements . .
MODE_EMA is NOT a parameter. Buffers CAN be from 0 to 7.
int Fast, Slow, Len, Dev, Buffer //(0,7).
iCustom(NULL,0 ,"BB_Macd",Fast,Slow,Len,Dev,Buffer,0)
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