Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stochastic values

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

    Stochastic values

    Trying to create an indicator that reads two stochastics values from two different data series. When I add to the current chart (which is different from the two series), i was hoping to see the arrows if the K,D values are above 90 or below 10. But, it is not working.

    The commented code seem to work but the values seem incorrect. Attached is the code. Can you please advise?

    Attached Files

    #2
    Hello ark321,

    The built in stochastics indicator does not actually take an input due to how its programmed. To get those values you would need to use BarsInProgress conditions like the attached script.

    Attached Files

    Comment


      #3
      thanks. But it is still not displaying arrows for the condition

      Comment


        #4
        Any idea what could be the issue?

        Comment


          #5
          Hello ark321,

          You would need to use prints to see what the values of the indicators are to know if the conditions should be true or not. https://support.ninjatrader.com/s/ar...language=en_US

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          232 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          150 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          161 views
          1 like
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          243 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          198 views
          0 likes
          Last Post CarlTrading  
          Working...
          X