Hi guys,i'm new to mql4 programming and i want to make a "sort of" martingale system.
Right now the code looks like this
So,i don't know how to code the part in which after a set number amount of pips it opens a new position.
Why did you post your MT4 question in the MT5 EA 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.
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.) General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06 Messages Editor
Hedging, grid trading, same as Martingale. Martingale, Hedging and Grid : MHG - General - MQL5 programming forum 2016.12.20
Martingale, guaranteed to blow your account eventually. If it's not profitable without, it is definitely not profitable with. Martingale vs. Non Martingale (Simplified RoR vs Profit and the Illusions) - MQL5 programming forum 2015.02.11
Why it won't work: Calculate Loss from Lot Pips - MQL5 programming forum 2017.07.11
You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem. No free help 2017.04.21
Or pay someone. Top of every page is the link Freelance. Hiring to write script - General - MQL5 programming forum 2018.05.12
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting). No free help 2017.04.21
Please enable the necessary setting in your browser, otherwise you will not be able to log in.