Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Timeframe and Bar Values

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

    Multi Timeframe and Bar Values

    Can someone help me understand why when I have Calculate on bar close = false I get different values for day data then when it is set to true.

    in initialize these are the additional timeframes added
    Add(PeriodType.Tick, 1);
    Add(PeriodType.Day, 1);
    Add(PeriodType.Week, 1);

    i.e. this is the data ES 06-13

    Print("Yesterday High " + Highs[2][1]);
    Print("Yesterday Low " + Lows[2][1])
    Print("Yesterday Close " + Closes[2][1]);

    with Calculate on bar close = true....get these values
    Yesterday High 1551
    Yesterday Low 1541.75
    Yesterday Close 1547

    With Calculate on bar close = false
    Yesterday High 1551
    Yesterday Low 1542.25
    Yesterday Close 1550.25

    #2
    Hello shoedad,

    Thank you for your post.

    I do not see this behavior on my end.

    Who do you connect to for data? This is displayed in the bottom left hand corner of the NinjaTrader Control Center when connected.

    Do you see any errors listed in the Log tab of the NinjaTrader Control Center when using the indicator in COBC = False or True?

    Can you provide your NinjaScript file or a toy version to test on my end?

    I look forward to your response.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    55 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X