Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

FirstTickOfBar problem

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

    FirstTickOfBar problem

    Hello,
    I’m programming a strategy based on data series 2 ticks range. My entry is on the first tick of the bar but sometime the Open[0] value is that of the previous bar.
    For example (see screenshot attachment) the Open[0] should to be 145.59375 (145’19) instead 145.65625 (145’21).
    Does someone has already encountered this problem and can tell me how to solve it?
    Thank you,
    Michel
    Attached Files

    #2
    Hello elechim,

    I recommend you show these values in a Print function when actually running the strategy.

    It could be that there is a difference with session templates, days to load, or another setting.

    For example:
    Print(Time[0].ToString() + " - " + Open[0].ToString());

    This will print the open price to the output window.

    You will then be able to ensure the values for the bars are what is reflected on the chart.


    Please let me know if I can be of further assistance.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    64 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    149 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X