In a perfect world MT4 would let me draw buffers from one indicator into both a separate window and the chart window. I have an indicator in a separate window that does some calcs and draws a modified MACD. But I also need to do some calcs on the chart window and display stuff there. I tried using iCustom, but i need 3 pieces of data from the separate window for the chart window. each iCustom call takes about 10 seconds for 65k bars on the chart. so the total load time is 30 seconds. way too slow.
I know I could just draw objects on the chart window, but I prefer having it in buffers so that my EA can easily extract the information.
Are there any good workarounds to this?
If you have the source codes for all indicators, you can merge/optimise them into one, so you'll only be calling one indicator. Or even better, merge them all into your EA.
Your indicator is too slow... - Indices - MQL4 and MetaTrader 4 - MQL4 programming forum #1 № 6
If you have the source codes for all indicators, you can merge/optimise them into one, so you'll only be calling one indicator. Or even better, merge them all into your EA.
if it takes too long to compute, reduce Tools → Options (control-O) → Charts → Max bars in chart to something reasonable (like 1K.) Or, as a last resort, use my segmented OnCalculate include file.
Your indicator is too slow... - Indices - MQL4 and MetaTrader 4 - MQL4 programming forum #1 № 6
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
In a perfect world MT4 would let me draw buffers from one indicator into both a separate window and the chart window. I have an indicator in a separate window that does some calcs and draws a modified MACD. But I also need to do some calcs on the chart window and display stuff there. I tried using iCustom, but i need 3 pieces of data from the separate window for the chart window. each iCustom call takes about 10 seconds for 65k bars on the chart. so the total load time is 30 seconds. way too slow.
I know I could just draw objects on the chart window, but I prefer having it in buffers so that my EA can easily extract the information.
Are there any good workarounds to this?