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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        66 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