Need an indicator to trade RSI.
where if the value goes above 70 and retrace below 50 I enter short
wher if the value goes below 30 and retraces above 50 i enter long
need help with teh code
Just need the guidance on how to program this.
can we do it with normal variables storing RSI values or need to build arrays
I already have MA EA in MT4.
what i did ask for was a sample code to program RSI.
if RSI locks above 70 and then locks below 50 for a short trade signal
and similarly locks below 30 and then above 50 for a long signal.
I need help to program the above.
I know it is easy to store the value of indicator in a variable for the nth candle......but in this case it seems the RSI array needs to be built......or ??? need help here.
since we dont know how much will be gap of candles when rsi is above and goes below 50.......it seems to be a dynamic array.
Need help on how to program the above.
And i told you go to CODE BASE you do not have to re invent the wheel.
Is it so hard to type RSI EA in the search box and press enter ?
LET ME HELP YOU.
Here is one:
Would that suit your needs?
It's readily available in code base with thousands of others.
Just SEARCH for it.
I won't re-invent the wheel for you i refuse.
Thanks for a sample to start with.
But this code reads two consecutive RSi values.
In this example RSI0 and RSI1 records only two recent RSI consecutive values only.
How can we store RSI values which are N shifts apart.
See example here the two RSI events >70 and <50 are about 10 shifts apart.
since everytime shifts are dynamically changing between two RSI events, how can we program this. Any idea or code avlbl?