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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    132 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X