tutorial to make an EA compatible with both mql4 and mql5
Enau:
I want to start to code my own EA, but contrary to indicators, I see that Metaquotes changed the syntax a lot from mql4 to mql5, so i wonder if somebody managed to make a unified class for dealing with buying and selling orders.
Since I am just starting, i don't need much,
-open a buy or sel
-close a buy or sell
-set a breakeven stoploss
-set a trailing stop.
Maybe this could help you.
I want to start to code my own EA, but contrary to indicators, I see that Metaquotes changed the syntax a lot from mql4 to mql5, so i wonder if somebody managed to make a unified class for dealing with buying and selling orders.
Since I am just starting, i don't need much,
-open a buy or sel
-close a buy or sell
-set a breakeven stoploss
-set a trailing stop.