May Indicator Initiation (in function) slow down the peformance?
- Don't "worry." Don't speculate. Measure when you have a problem.
- Indicators: Code it properly so it only recomputes bar zero (after the initial run.)
How to do your lookbacks correctly.
Or, reduce Tools → Options (control-O) → Charts → Max bars in chart to something reasonable (like 1K.)
Hi all,
You know to use an indicator in EA you should initiate it in OnInit function.
However sometimes I need to Initiate an indicator in a function instead of just Copy data from already initiated indicator.
But I use at least 8 indicators and I worry if I over initiate indicators (by initiating them in every different function)
what do you think?