IHighest and iRsi New comment Optimus-Primus 2019.04.24 20:24 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 High and RSI divergence Find the highest value of an indicator in a period X Problem with iHighest William Roeder 2019.04.24 21:42 #1 Don't double post! General rules and best pratices of the Forum. - General - MQL5 programming forum New comment
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