Price during life of bar
18.06.2020 20.17

Algorithmic Trading with NinjaTrader

Frank

? If I want the strategy to depend calc on price level info during the life of a bar, do I need to go by tick-bars ? 

? If yes, can I then also display a minute- chart and switch between minute and tick display when wanted ?




  • Yuri Zolotarev
    19.06.2020 09:09

    Yes, so if you want to look at what goes on inside the bar before it closes you need to execute on tick. It doesn't have to be tick bars, it can be daily bars or whatever as long as you execution goes on tick which means your OnBarUpdate method will get fired on every tick. 

    You cannot switch displays of charts using code but no one is stopping you from doing this manually.

  • Frank
    19.06.2020 10:40

    thx