//=====Hedge EU when UC is opened by EA=======
for(int pos1 = OrdersTotal()-1; pos1 >= 0 ; pos1--)
if (OrderSelect(pos1, SELECT_BY_POS, MODE_TRADES) && OrderSymbol()== "USDCHF")
if (OrderType()==OP_BUY || OrderType()==OP_SELL)
I'm trying to code a search for open USDCHF order, and immediately send market BUY of EURUSD, but can't get it to work.
I mostly cut and paste my code, beginner here. guidance would be much appreciated.
Since there are no slaves here, you have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt and the nature of your problem.