Announcement

Collapse
No announcement yet.

Using previous 'turns'

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

  • Using previous 'turns'

    Hi,

    Could anyone help me with the logic for a sort of trend indicator on a study (RSI), which needs to somehow track the last two ‘down turns’ and ‘up turns’

    I want to write either a blue or red circle under the current price bar, if the following occurs to RSI

    - In Uptrend (blue dot)

    If, Either, (the Current RSI is greater than the ‘Last RSI Down Turn’)

    Or, (the Current RSI is greater than or equal to the ‘Last RSI Up Turn’, AND, the ‘Last RSI Down Turn’ is higher than the ‘Previous RSI Down Turn’)


    - In Downtrend (red dot)

    If, Either, (the Current RSI is less than the ‘Last RSI Up Turn’)

    Or, (the Current RSI is less than ot equal to the ‘Last RSI Down Turn’, AND, the ‘Last RSI Up Turn’ is lower than the ‘Previous RSI Up Turn’)


    I thought this would be quite simple but it has taken me days to get nowhere !

    Any help greatly appreciated

    Thanks
Working...
X