Hi there,

I have pending long limit and short limit trades.

When I try to adjust the entry through the TradeEntryLimit it's working for the long limit trades but not for the short limit trades.

After adjusted the TradeEntryLimit for the pending short limit trades they are executed instantly instead of just having updated the entry limit. For the long limit trades it's working fine. They are not executed but are having an updated entry limit.

Any idea?

Here some code:

for(open_trades) {
if(TradeIsPending) {

if(TradeIsLong) {
TradeEntryLimit = -5*PIP; // result: entry limit updated
}
if(TradeIsShort) {
TradeEntryLimit = -5*PIP; // result: instant execution at market price
}

}
}

Last edited by SnoopySniff; 02/21/19 14:42.