Download MetaTrader 5

Question about IndicatorCounted()

To add comments, please log in or register
Agent86
914
Agent86  
Hi

https://docs.mql4.com/customind/indicatorcounted

How does IndicatorCounted() know which indicator, if there are more then 1 launched on the chart; and what if they have different array sizes ?

Will IndicatorCounted() handle this automatically for all arrays and sizes ?

Please advise

whroeder1
15577
whroeder1  
Agent86: How does IndicatorCounted() know which indicator, and what if they have different array sizes ?
  1. It's the indicator that calls it.
  2. You must manage your own arrays. The indicator buffers have already been enlarged to Bars before OnStart/start is called.

Agent86
914
Agent86  
Thanks
To add comments, please log in or register