Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

To confirm the bar type to use for current bar

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    To confirm the bar type to use for current bar

    Hi.

    I know we can have tonuse bar close fir backtesting. But for realtime strategy builder live or sim running, what bar type is best to use for triggering any indicators during the intrabar being formed instead of waiting for full bar close ( i.e. high, low, median, etc)?

    Also, if we use high, low, for current bar etc, when backtesting it will always default to on bar close regardless right (so I am safe to assume this when backtesting regardless of what bar type I choose in the strategy but will actually use the barvtype I want when live or sim trading in realtime right)?

    Thanks..

    Greg

    #2
    Hello, thanks for writing in. The backtester will always run scripts OnBarClose. If your script is Calculate = OnEachTick or OnPriceChange to calculate your indicators intrabar, you will need to use Tick Replay:

    https://ninjatrader.com/support/help...ping_for__tick _replay.htm

    The Calculate property (OnBarClose, OnEachTick, OnPriceChanged) has nothing to do with the price server you are using to calculate. Please read our documentation on each subject here:




    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    79 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X