How can I cancel a trade when another is open and keep the open trade for a given duration?
问题 I have written the code below that opens a buy and sell trade (a certain number of pips above and below the ask and bid price) at a specific time. How can I close/cancel one immediately when the other is opened? How can I close the opened trade if it's say X pips in profit or after a minute (depending on which condition is reached first)? I'm a not too sure I've done the right thing in the code below and would really appreciate some help. double spread = Ask-Bid; extern datetime time; extern