Just read the documentation of iHighest and iRSI, it's quite easy to understand. Come back if your code is ready.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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