IHighest and iRsi

 

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