0.0714 always? - center of gravity on iCustom tick
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?
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?