High and RSI divergence

To add comments, please log in or register
Optimus-Primus
24
Optimus-Primus  

Good day


I need some help please.


I am writing an EA and need to code the following:


-Highest of 0 - 10 bars  > Highest of 10-20 bars

- RSI of highest bar of 0 - 10   <   RSI of highest of 10 - 20


I have;

int high10 = iHighest(NULL,0,MODE_OPEN, 10,0);

int high20 = iHighest(NULL,0,MODE_OPEN, 20,0);


double rsi10 = iRsi(0,Period(),14,PRICE_CLOSE,????????????????????????????????????);

double rsi20  =iRsi(0,Period(),14,PRICE_CLOSE,????????????????????????????????????);



So that I can sell when:     high10>high20 && rsi10<rsi20


Please asit

lippmaje
689
lippmaje  
Just read the documentation of iHighest and iRSI, it's quite easy to understand. Come back if your code is ready.
William Roeder
18652
William Roeder  
To add comments, please log in or register