M N / Publications
Forum
open/close orders, from MT4 to MT5
I have written an expert advisor in MT4 and I want to convert it to MT5. Everything seems to work except I can't open or close any orders. I used the function from the MT5 reference library: //+------------------------------------------------------------------+ //| Expert initialization function
How to I put in leverage on the EA
Hi, I've created an EA which works perfectly in the testing mode . The issue with running in in real mode is because I don't have enough money to trade as the test mode, so I need to use leverage, which my account permits. Is there a way to code the leverage in so that I can execute the trades using