IndicatorBuffers(1); SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1,White); SetIndexBuffer(0,draw);
Belongs in init so the array can be resized before the call to startif(B<Bars){B=Bars;ArrayInitialize(price,EMPTY_VALUE);ArrayInitialize(cog,EMPTY_VALUE);...
How could you initialize those arrays, when you havn't resized them yet?
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
Comment shows 0.0714 always, why? this center of gravity calculation works on normal indicators! I have been successful in getting iCustom to display ticks only for the current bar and i am following rules to never display empty values.
If I do:
the indicator only increases. I fail to see what is wrong here. Can you spot my mistake?