Hi all coders,
I need some help to with an issue I have when loading a dashboard.
I have modified a dashboard to display the status of the trend for multiple symbols and time frames. The trend is defined by price to MA and MACD to MACD Signal line.
However the IMACD only calculates the values based on the EMA. But I want to use the LWMA to calculate it.
So I used a custom MACD indicator and call it with the iCustom into the dashboard.
It works but i takes ages to load the data for a hadfull of pair and if I list all the 28 pairs I want to monitor then Metatrader hangs in a loop.
My problem is that in the MACD inidcator the values are stored in arrays , but in dashboard the values used for testing the conditions are stored in variables.
I would appreciate if someone could give me the solution as my coding knowledge is overwhelmed.
Here are the various indicators I have
Please reduce the number of bars. exap. if(Bars>1000) limit=900;
When working with LFX parities, checking the transaction with each click is slow. Instead, checking once a time makes your job easier. For example (
if(iTime(Symbol(),0,0) == prevtime) return(0); prevtime = iTime(Symbol(),0,0);
) M5 like 1 time check. You can also make this process easier as an expert. and Does not slow down the system.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all coders,
I need some help to with an issue I have when loading a dashboard.
I have modified a dashboard to display the status of the trend for multiple symbols and time frames. The trend is defined by price to MA and MACD to MACD Signal line.
However the IMACD only calculates the values based on the EMA. But I want to use the LWMA to calculate it.
So I used a custom MACD indicator and call it with the iCustom into the dashboard.
It works but i takes ages to load the data for a hadfull of pair and if I list all the 28 pairs I want to monitor then Metatrader hangs in a loop.
My problem is that in the MACD inidcator the values are stored in arrays , but in dashboard the values used for testing the conditions are stored in variables.
I would appreciate if someone could give me the solution as my coding knowledge is overwhelmed.
Here are the various indicators I have