Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator differences

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

    Indicator differences

    Hi Support -

    I wrote an indicator to calculate momentum, uses additional tick data series to perform calculations. - but as seen in the picture - it fails to update when the window goes into background.

    I thought it had something to do with IsSuspendedWhileInactive settings - so I added a stock indicator to it - "StochasticRSI" to be specific. and kept the window in background for sometime - As seen in the pic - StochRSI still kept updating even though they had IsSuspendedWhileInactive=true in both cases.

    Can you please explain the difference ?

    Regards


    #2
    Hello pmallya.nt,

    Thanks for the post.

    Before we look into this, did you happen to remove and re apply the indicator after making that change? Any changes to OnStateChange or the class of your script will require re applying it instead of just F5. If you re applied it and still see the same, where in the code are you setting the plot? Is that from OnBarUpdate?

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks Jesse -

      Yes I started that chart clean and added the two indicators - so its automatically re-applied. ( let me know if thats is what you are referring to ?)
      The code foe the plots is in onBarUpdate.

      I have added a tick data series in State.Configure and then I do all my logic in onbarupdate.
      The difference I see in the StochRSI - is that the RSI calculation is done in the State.Dataloaded section

      Regards

      Comment


        #4
        Hello pmallya.nt,

        Thanks for confirming. Yes that is what i was referring to.

        The StochRSI also has OnBarUpdate logic, the part are you referring to in DataLoaded is just where the RSI is being configured. Its still being used in OnBarUpdate. Could you provide a small sample of what you are doing when setting the plot in your script?

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Perr0Grande, Yesterday, 08:16 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by f.saeidi, Yesterday, 08:12 AM
        3 responses
        24 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by algospoke, Yesterday, 06:40 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by quantismo, Yesterday, 05:13 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by The_Sec, 04-16-2024, 02:29 PM
        3 responses
        16 views
        0 likes
        Last Post NinjaTrader_ChristopherS  
        Working...
        X