I am trying to do something similar with the VolumeUpDown indicator.
That is, draw an up arrow when there is an increase in volume from the previous bar.
I added the following code below OBU in the VolumeUpDown indicator (in MS Notepad, since it is locked).
Recall, in the VolumeUpDown indicator that Calculate = Calculate.OnBarClose;
//Add your custom indicator logic here. if (CurrentBar < 2) return; #region Increase Volume if (Volume[0] > Volume[1]) { Draw.ArrowUp(this, "Volume1"+CurrentBar.ToString(), false, 0, Volume[0], Brushes.White); } #endregion
However, if the bar is developing or the bar has just finished, then there are issues.
- If the volume bar is developing, it actually moves from that volume bar to the developing bar. It then moves back and forth until the bar is complete.
So I find myself always pressing F5.
Do you get the same bug, if so why and how can it be fixed?
Please see two screen shots.
Thanks Irv
Comment