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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    65 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Working...
    X