Forum

MT5 Script

Hi there folks, I need a bit of help. I am pretty much a beginner in mql5 coding i tried getting this piece of code to work but i keep getting 3 compilation errors. Its a simple TP and SL averaging script. Kindly help take a look. I will very much appreciate. Thank you. // Declare variables double

EA does not calculate accurately

Hello Great People, I am trying to make an EA recalculate Take Profit once a new Position is Open using a formulae and also modify the TP of all open trades to the new TP. I want to identify and select the open trades in the order they were opened. i.e. Select 1st Buy Position first then Select the

Swap value return EA

Hello Great people, I am new to coding. I attempted to write a code for a simple expert advisor (MQL5) to return the value 0, if the swap on a long position (or series of long positions) is positive. If the swap is negative, the EA should retrieve, add up all the negative swaps of all Buy positions