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 argusthome, Yesterday, 10:06 AM
    0 responses
    17 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    16 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    14 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    9 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    38 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X