Forum

opening only one order

hi... is there any way to open only one order in OnTick() function without using OrdersTotal () OR ExpertRemove()

trailing stop problem

hi i have a problem with my trailing stop function in here in the code below i just want to open a buy order then use the trailing stop in it but simply its not working and doesn't modify any orders. i would be thankful to pick your brain input bool use_trailing= true ; input int when_to_trail= 100

whats the problem

#property copyright "Copyright 2018, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict input bool ma3_use= true ; input int period_1= 12 ; input int period_2= 32 ; input int period_3= 200 ; input string symbol= "EURUSD" ; input string