Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
How to plot the previous 20 period RSI(9) high overlay on current RSI(9)?
I am trying to issue a buy signal when the RSI(x) becomes the HHV_RSI, plus only when RSI is more than 50 but unable to get a accurate buy signal from my backtest. The buy signals are random not following the criteria i issue.
Here is the code i used. Is there any mistake here?
If you use Cross() then you expect one var to have a higher/lower value than the second var in order to return true.
So in this case you expect RSI of "current" bar having a higher value than its own highest value at "current" bar. If a var crosses above its own "current" highest value then it would be expected to be higher than that. But it is logically impossible that this condition will ever return true. Can you follow the logic?
That's why using previous highest value as second argument would make more sense.
Thanks prouser. I understand the logic now. Basically the two period moves systematically so it doesnt make sense for it to cross over its own high. It makes more sense with a 1 bar delay like the one in your code.