Forum

How to cose trades at current price not at close price

Hello am new to programming as a whole I have learned a few basic and have built my first EA but it is closing trades on close price not current price.......I don't know what I did wrong but I would love some help it uses moving average for enter and close below is the EA file

Position_Current_Price

Am building my first buy EA ......and almost done with it ....but I can't make it close as soon as the bid line of the bar cross the slow moving average can anyone tell me how can I solve this problem