Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

StochRSI

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

    StochRSI

    hi ... hope you can help, I'm missing something but I can't figure out what. I'm looking to identify when the StochRSI is crossing a line (value .0462) on it's way up:

    if (StochRSI(78)[1] <= .0462 && StochRSI(78)[0] > .0462)
    {
    passUpThruBrown = true;
    Print("UP THRU BROWN ... StochRSI(78)[1]: " + StochRSI(78)[1] + " StochRSI(78)[0]: " + StochRSI(78)[0]);
    DrawTriangleUp("My arrow" + CurrentBar, true, 0, Low[0] - (5 * TickSize), Color.Peru);
    }

    As you see in the code above, I print out the previous and current values of StochRSI as the condition is met. However, these values don't match the StochRSI indicator that I have placed on the chart that I am running this strategy. Both are set to a period of 78.

    Let me know if you need more information ... thank you!

    #2
    pman777, are you using the same input series for the indicator? This one here in the strategy would per default use the Close price series to calculate on.

    Also: please include a timestamp / CurrentBar info in your Print statement, so you are sure to compare the correct bar values when doublechecking for accuracy via the output window.

    Comment


      #3
      Hi ... I'm not sure what you mean by "input series" ... is there an example you can point me to? As far as the time stamp, I have that on another statement that is not included in the code section I included above. tx!

      Comment


        #4
        pman777, that just means on which series you calculate the indicator - for example closing price of the instrument or weighted, typical etc. On the chart you compare to, what is selected in the indicator inputs? Is this the same as the strategy would use?

        Comment


          #5
          I will chack that as soonas I can ... will be back ... thank you!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          672 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          379 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          111 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          575 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          582 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X