Rule: RSI over 70 for a few days
Author: mrsic
Creation Date: 6/23/2017 5:08 PM
profile picture

mrsic

#1
I am looking for a rule in the Rule Wizard but i can't find it. Can someone help me please.
Rule searching: Bars a few days over (RSI) Level 70.
I am not sure but is this Rule right? "Indicator is above a value for n consecutive bars"
I do not know if the Value stays for a level.
Sorry for my bad english and i am not a programmer but i give my best.

greetings damir
profile picture

Eugene

#2
Yes, this is the right rule.
profile picture

mrsic

#3
Thanks Eugene.
profile picture

mrsic

#4
Hi,

I am not a programmer but i give my best. Can someone explain me, why at DataSeries diff = slider2.ValueInt - RSI.Series(Close,slider1.ValueInt); slider2 minus slider 1 takes place here. I'm sorry but i can't follow the DataSeries part.

CODE:
Please log in to see this code.


greetings damir
profile picture

Eugene

#5
QUOTE:
slider2 minus slider 1 takes place here.

"There is more than one way to skin a cat". It's a creative way of getting this condition coded. Could be a simple counter like we have in SeriesIsAboveValue but whomever coded it, he did it in a more elegant manner.
profile picture

mrsic

#6
Hi Eugene,

@ do you mean more elegant, because the sliders?

@I can not see a HorzLine in both cases.
Could the horzline look like this:
CODE:
Please log in to see this code.


I would very gladly see if, for example the rsi is 3 days above a certain Level. (Mean-Reversion)

greetings damir
profile picture

Eugene

#7
Damir,
QUOTE:
@ do you mean more elegant, because the sliders?

No but because no looping takes place in the formula.

QUOTE:
Could the horzline look like this:

Yes. I'd use slider2.ValueInt there but it's cosmetic.

QUOTE:
I would very gladly see if, for example the rsi is 3 days above a certain Level. (Mean-Reversion)

Any issue with that?
profile picture

mrsic

#8
Eugene,

QUOTE:
Any issue with that?


In relation to HorzLine but the point is done.

Thanks for your help.

greetings damir
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).