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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    89 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X