allenmclain417 / Publications
Forum
Limiting OrdersTotal to only allow 1 open order at a time.
Hi, I am new to learning MQL4 coding and I am trying to limit my program to oly allow one open order at a time however in my backtest I am getting multiple orders opened up. Here is my code. extern int TakeProfit = 40, StopLoss = 40; extern double lots = 0.10; void OnTick() { // create