Satoshi Asakura / Publications
Forum
Limit one open buy/sell position at a time
I'm using the below code to limit the buy/sell position at a time but I'm not sure why MetaTrader5 could open more than 1. I just can't figure it why. Could someone shed a light here? bool Buy_opened= false ; // variable to hold the result of Buy opened position bool Sell_opened= false ; //