Forum

Closing order issue

Hi, i am very new to mql. I was trying to code a basic ma crossover, but i could open the order but not close it. Can someone help me where i am going wrong. input double lot_size = 0.1 ; input int slippage = 50 ; input double stoploss = 5000 ; input double takeprofit = 5000 ; input int ma_period =