Ronaldo Franco De Oliveira Cardoso:
Hello,
I'm looking for optimizations in the indicators and would like a suggestion. To prevent the indicator from representing empty_values, I am considering the function:
PlotIndexSetDouble(index buffer, PLOT_EMPTY_VALUE, 0.0);
My question is whether the best place to include this code is OnInit() or OnCalculate().
can anybody help me?
Thanks.
In OnInit() unless it's changing dynamically, which is certainly not a good idea unless you know what your are doing.
Also the first parameter is a plot index and not a buffer index. Could be different.
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
Hello,
I'm looking for optimizations in the indicators and would like a suggestion. To prevent the indicator from representing empty_values, I am considering the function:
PlotIndexSetDouble(index buffer, PLOT_EMPTY_VALUE, 0.0);
My question is whether the best place to include this code is OnInit() or OnCalculate().
can anybody help me?
Thanks.