Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893

- www.mql5.com

- www.mql5.com
I've create a custom symbol ,like 5_second chart which is base on the tick data of XAUUSD. But there's no related functions like iMACD() to get the indicator data of this custom symbol, all of the Technical Indicator Function must be used with predefined standard timeframe.
So, is there a good method to solve this issue.THX.
You can apply any indicator to a custom symbol in the same way as with standard symbol. Use the same timeframe which you used in your generator of rates of the custom symbol.
If you mean that you have problems with updating indicators on 5-second's "micro-bars", shifting too guickly to the left, then yes - you need somehow to update them with higher frequency. Probably, you can find something useful in the blogpost, describing adaptation of a renko-indicator, which has similar problems with boxes, generated asynchronously with regular bars.

- www.mql5.com
You can apply any indicator to a custom symbol in the same way as with standard symbol. Use the same timeframe which you used in your generator of rates of the custom symbol.
If you mean that you have problems with updating indicators on 5-second's "micro-bars", shifting too guickly to the left, then yes - you need somehow to update them with higher frequency. Probably, you can find something useful in the blogpost, describing adaptation of a renko-indicator, which has similar problems with boxes, generated asynchronously with regular bars.
I've dwelt on the non-standard timeframes of the custom symbol, and wanted to abtain indicator data of it for my EA, which was loaded on a XAUUSD M5 CHART.
As you said, the custom symbol can be created on a M1 chart. And with the custom symbol name,your suggestion works good,like handle=iMA("XAU5S",PERIOD_M1,50,0,MODE_SMA,PRICE_CLOSE);
It is a great help!appreciate that.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I've create a custom symbol ,like 5_second chart which is base on the tick data of XAUUSD. But there's no related functions like iMACD() to get the indicator data of this custom symbol, all of the Technical Indicator Function must be used with predefined standard timeframe.
So, is there a good method to solve this issue.THX.