I was hoping someone could show me how to make the following text label calculate and print the difference between the current bar's indicator value, and the prior bar's indicator value. As it is written, it prints the value of the current bar's indicator only. The indicator I am plotting is called vSignal.
Thanks,
Steve
//== draw text labels
if ( isLastBarOnChart() ) {
drawTextRelative( 2, vSignal, vSignal.toFixed(2) + " = Volume", Color.black, null, Text.VCENTER | Text.BOLD, null, 18, "OO-2" );
}
Thanks,
Steve
//== draw text labels
if ( isLastBarOnChart() ) {
drawTextRelative( 2, vSignal, vSignal.toFixed(2) + " = Volume", Color.black, null, Text.VCENTER | Text.BOLD, null, 18, "OO-2" );
}
Comment