When a trade triggers the entry price is retrieved with GetAtmStrategyPositionAveragePrice() and printed on the chart. Well it is supposed to.
In Sim101 everything works fine, the entry price and position are properly displayed on the chart and in the Dynamic DOM. If I use AtmStrategyClose(), stops and targets are cancelled and the position is closed.
If I am trading my IB account, the entry is neither displayed on the chart nor in the DOM, although the stop is shown. If I use AtmStrategyClose(), the stop is cancelled, but the order remains active in TWS. I must use the IB TWS to close any orders opened by the strategy.
Comment