Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator reload change plots

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

    Indicator reload change plots

    I am using my own custom indicator.

    But something goes wrong when i update it.

    This is the live indicator:


    At the 18:28 start the live information.

    If i reload the script the plots change:

    #2
    Hello hectorzx,

    Thanks for your post.

    Please note that Ninjatrader 8 posts should be made in the NinjaTrader 8 beta forums, this is so we can more easily track any issues as well as not mix the answers that may or may not be applicable to NinjaTrader 7 or 8. Thanks for your understanding.

    In looking at what you have posted, it appears that your custom indicator has calculated to the left of the line just after 18:27 the same on both pictures. So historically they appear the same. When you plot on live data and then reload, the reload would be showing the plots based on historical data.

    Historical plots are based on the finished candle so it would be the same as if you were using Calculate.OnBarClose, once connected to live data, if you are using Calculate.OnEachTick or Calculate.OnPriceChange then your plots may not be made based on the finished candle and it depends on how you have coded the indicator and what you are looking to achieve.

    You might try just running with the indicator set to Calculate.OnBarClose and testing to see if when you reload that the indicator appears the same.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by zstheorist, Today, 07:52 PM
    0 responses
    3 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    149 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Working...
    X