This is what I have done:
- I made a strategy (for testing purpose) that only prints a log line on each OnBarUpdate. Also it does use "calculate on bar close" = false so it gets called on every tick.
protected override void OnBarUpdate()
{
Print("I am bar: " + this.BarsInProgress + " Time:" + Time[0].ToString() + " Open:" + Open[0] + " Close:" + Close[0]);
} - I created a new instrument list named "my" and added symbol AAPL using Nasdaq
- I freshly start NT and connect to simulated data provider.
- I switch to the strategy tab and add my strategy using symbol "AAPL" from list "my", template "Default 24/7" and "Minimum bars required" 0
- In the output window I can see my strategy producing log lines for every tick from the sim feed (OK - as expected)
- But now when I switch to the orders tab and select symbol AAPL from list "my" then my strategy stops outputting log lines (so it does not get ticks anymore). The strategy is still enabled on the strategy tab though.
What I tried afterwards:
- Disabling and re-enabling the strategy does not help. Still no ticks.
- Removing the strategy and re-adding it with same settings does work. Ticks appearing again.
Here is another (even easier) method that stops the strategy ticks (similar to the above method. Bascially just enabling/disable strategy):
- I freshly start NT and connect to simulated data provider.
- I switch to the strategy tab and add my strategy using symbol "AAPL" from list "my", template "Default 24/7" and "Minimum bars required" 0
- In the output window I can see my strategy producing log lines for every tick from the sim feed
- I disable the strategy by ticking the checkbox and then I enable it again
- Now no further ticks arrive anymore (no more log lines appear)
Any ideas please?
Comment