How to make multi time frame and multi currency pair scanner with i custom buffer alert for mt4 indicator
Elterry: At the moment it works on just the current chart time frame. I have been difficulty trying to make it scan multiple currency pairs accross multiple time
- Your indicator is fine.
- Have your EA handle 4066 errors and then read the indicator from whatever Symbols/TFs you want.
On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26 № 4 2019.05.20 - If you code your EA to only process the current symbol then and only then can you use any predefined variables. Code it and put it on multiple charts.
Predefined variables: Ask, Bars, Bid, Close[], High[], Low[], Open[], Point, Time[], Volume[]
RefreshRates - Timeseries and Indicators Access - MQL4 Reference
Predefined Variables - MQL4 Reference
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
Hello,
I am new to Meta trader 4 programing . I have this moving average indicator that display Blue (buy) and Red(sell) when certain conditions are met.
At the moment it works on just the current chart time frame. I have been difficulty trying to make it scan multiple currency pairs accross multiple time frame so as to save time finding pairs that meet condition of the inidcator.
It is to say which code will I need to add to current indicator code so that ones the indicator is loaded in a single chart it will scan multiple time frames using the list of currency pairs (major and minor) available in the Market Watch window or using preset currency pair input. Ones the indicator detects a currency pair, it will alert it in a dash board .
Please if you have any idea kindly share. Thank yo
Please code below: