Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RSI(2) for 2 consecutive days

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

    RSI(2) for 2 consecutive days

    Good morning - could someone please tell me how to set an RSI column to highlight when RSI(2) stays below a chosen level for 2 consecutive days... or at least confirm the logic of my workaround ?

    I thought one way to do it might be to have the column showing the smoothed output for RSI (2,2) , as RSI(2,1) presumably got there the day before & is still there, but I'm not completely sure of my thinking !?

    Any assistance gratefully appreciated .

    Edit : on 2nd thoughts, my workaround will not necessarily be accurate, as RSI(2) could exit the zone, leaving RSI(2,2) in its wake, meaning I'd need two columns. I'd prefer a single column solution if poss.

    #2
    jtrade, for a single column solution you would have to custom code an indicator for the MA that checks the value on the current and previous bar then for example sets a plot value to 1 if it stays above your level - you can then in turn use that plot output for coloring a column or raising an alert.

    Comment


      #3
      Bertrand, after all these years, me do custom coding !!??

      I've said it before & I'll say it again : I do not subscribe to NT to learn coding....

      So if you're not going to do it fo me, I'll just have to go for the two column solution....



      The Lazy Man's Way to Enlightenment.

      J.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      71 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      42 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      25 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      28 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      56 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X