if (i >= MathMin(5000-1, rates_total-1-50)) continu
Drop this (copied) BS and learn how to do your lookbacks correctly.&& iMACD(NULL, PERIOD_H1, && iStochastic(NULL, PERIOD_M15,
On MT4: Unless the current chart is that specific pair/TF referenced, you must handle 4066/4073 errors.
Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forumfor(int i = limit-1; i >= 0; i--){ if(iStochastic(NULL, PERIOD_H1, _K_periodH1, 3, SlowingH1, MODE_LWMA, 1, MODE_MAIN, 1+i)
You are mixing apples and oranges.
whroeder1:
- Drop this (copied) BS and learn how to do your lookbacks correctly.
- On MT4: Unless the current chart is that specific pair/TF referenced, you must handle 4066/4073 errors.
Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forum - You are mixing apples and oranges.
Thank you very much for that response. Not sure yet how will this help me to resolve the problem. Guess my knowledge level is too low. Think I will rather write an EA and be satisfied with some alerts.

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
I have written an indicator but it is not performing the way it should.
The problem is that the indicator does not take into consideration the higher time frame (H1) when posting the BUY and SELL arrows on the lower time frame (M15) chart.
If you can fix this we will have a fantastic indicator!
Here is the code: