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
Hey,
I wanna visualize the M5 trend (sma 20 and sma 500) by drawing rectangles on the full chart height. This should be draw for example for the current week.
This should work in M5, M15 and H1 timeframes. I coded the following indicator and it works in M5 timeframe perfectly.
Problem:
When I change the timeframe for M15 or H1, it draws thousands of rectangles and is going into a stack overflow!
Thanks for suggestions to improve my indicator!