Intra bar realtime order is not triggered with IOG enabled.
Posted: Mar 12 2015
Hi.
When tried to program a simple signal code, I faced with the following issues:
1. Sent managed Buy-Stop-order, for instance on 150 level price. IOG checked and it is in 3 position with "100 entries per bar". Sometimes positions opens immediately when price touched price level 150, but sometimes price touched 150 and moved higher, to 170 for example, without opening position. In this order disappears from chart. The position can opened either on the closing of the bar, or not opened at all. When price back to 149 or lower, order on 150 appears again. Can't understand, why it occurs, the doesn't triggered and the position doesn't opened.
2. Is it possible in any way from study code cancel all placed unmanaged orders, if aren't known how many they is exposed also which IDs their have? Or in some way to get IDs of all active orders, then to use them to cancel?
When tried to program a simple signal code, I faced with the following issues:
1. Sent managed Buy-Stop-order, for instance on 150 level price. IOG checked and it is in 3 position with "100 entries per bar". Sometimes positions opens immediately when price touched price level 150, but sometimes price touched 150 and moved higher, to 170 for example, without opening position. In this order disappears from chart. The position can opened either on the closing of the bar, or not opened at all. When price back to 149 or lower, order on 150 appears again. Can't understand, why it occurs, the doesn't triggered and the position doesn't opened.
2. Is it possible in any way from study code cancel all placed unmanaged orders, if aren't known how many they is exposed also which IDs their have? Or in some way to get IDs of all active orders, then to use them to cancel?