Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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