I usually have a routine I only run one time ti initialize variables.
Recently, I added some drawTextAbsolute stmts to this routine and could not get the text to draw.
if(start1==0){
drawTextAbsolute( -26, pt2*100, "+"+(pt2*100).toFixed(0), Color.red, null, v|bb, "Comic Sans MS", 14, -55 );
drawTextAbsolute( -26, pt8*100, (pt8*100).toFixed(0), Color.green, null, v|bb, "Comic Sans MS", 14, -66 );
start1 = 1;
}
if I changed the IF stmt to
if(start1==0&&getCurrentBarIndex()==0){
the text would draw.
Recently, I added some drawTextAbsolute stmts to this routine and could not get the text to draw.
if(start1==0){
drawTextAbsolute( -26, pt2*100, "+"+(pt2*100).toFixed(0), Color.red, null, v|bb, "Comic Sans MS", 14, -55 );
drawTextAbsolute( -26, pt8*100, (pt8*100).toFixed(0), Color.green, null, v|bb, "Comic Sans MS", 14, -66 );
start1 = 1;
}
if I changed the IF stmt to
if(start1==0&&getCurrentBarIndex()==0){
the text would draw.
Comment