Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Market replay with indicator

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

    Market replay with indicator

    I have an indicator that draws arrows on the screen. When I run it in Market Replay, the arrows drawn are not all consistent with the arrows that show if I refresh the indicator -- without code changes.

    I get arrows that definitely should not show, am missing others and many are correct.Refresh fixes it to match the expected results based on the code and verified by comparing values in the databox.

    I have another instrument on my chart and CalculateOnBarClose = false. The action on this additional instrument is for each tick. The arrows only draw on the close of the bar so I useCurrentBar to verify the bar closed.

    I have tried this at 1x speed because I thought there could be inconsistencies with higher replay speeds, butI do not notice this to be a factor.

    If you can shed some light on this, I would be very appreciative.

    Thank you,

    SuzyG

    p.s. I am getting some wrong calls realtime too.


    #2
    imported post

    We will put out another beta likely later this week. You could be experiencing an issue by where OnBarUpdate() can be called multiple times for the same tick. The next release addresses this. If the problem persists after that, please let me know.

    Ray
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by mgco4you, Today, 09:46 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by wzgy0920, Today, 09:53 PM
    0 responses
    4 views
    0 likes
    Last Post wzgy0920  
    Started by Rapine Heihei, Today, 08:19 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 08:25 PM
    0 responses
    6 views
    0 likes
    Last Post Rapine Heihei  
    Started by f.saeidi, Today, 08:01 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X