-
Play videoPlease edit your post.
For large amounts of code, attach it. - Please use the link button (control-K.)
See the difference: http://www.babypips.com/blogs/art-of-automation/forex-ea-20150529.html.
- Check your return codes
What are Function return values ? How do I use
them ? - MQL4 forum and Common
Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
Ask+(StopLoss*Point)
You don't adjust for 4/5 digit brokers. (SL/TP and slippage)#define POINT int ///< `CHANGE / _Point`. #define PIP double ///< `POINT / PipsPerPOINT`. CHANGE points_to_change(POINT n){ return n * _Point; } POINT change_to_points(CHANGE c){ return POINT(c / _Point + 0.5); } CHANGE pips_to_change(PIP n){ return points_to_change(pips_to_points(n));} PIP change_to_pips(CHANGE c){ return points_to_pips(change_to_points(c));} // Digits DE30=1/JPY=3/EURUSD=5 10 pt/PIP. forum.mql4.com/43064#515262 // tick 0.5 tick = point = 0.001 POINT pips_to_points(PIP n){ if( (_Digits&1) == 1) n *= 10.0; return POINT(n); }
-
Play videoPlease edit your post.
For large amounts of code, attach it. - Please use the link button (control-K.)See the difference: http://www.babypips.com/blogs/art-of-automation/forex-ea-20150529.html.
- Check your return codes What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
- You don't adjust for 4/5 digit brokers. (SL/TP and slippage)
Hi WHRoeder,
Thanks for replying, will have a look at the return code and error articles when I get home. Will also try and implement the 4/5 digit adjustment.
Will reply back once I've had a chance to go through it all.
Cheers for the help
Hi WHRoeder,
Thanks for replying, will have a look at the return code and error articles when I get home. Will also try and implement the 4/5 digit adjustment.
Will reply back once I've had a chance to go through it all.
Cheers for the help
Hi boh113,
Can you provide any updates on this?
Hiya is there any update on this post. I'm currently trying out the EA of HLHB within MetaTrader4 and it only has some of the original requirements;
EMA 5 & 10
RSI 10
However I know that they have updated it in tradingview to include the minimum ADX levels as well which does filter out alot of the fake trades....
Anybody that can help out with the coding ....

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys,
I am new to coding and have tried following robopip's guide to a very basic EA of the HLHB system http://www.babypips.com/blogs/art-of-automation/forex-ea-20150529.html
Now I think I have corrected the multiple entry issue and have managed to add a trailing stop loss of sorts.
I could use advise/help on ways to clean up the code or make it more efficient, as well as being able to add an exit condition of when the EMA crosses back.
Please find attached my code so far.
**Edited as asked**