2 Bar % Change Column

CoryW

CoryW

New member
VIP
I wrote this column but it loads very slow during intraday; and my computer performance is top notch and I have a lot of memory allocated to TOS. Any thoughts on optimization?

Code:
plot data = (((bid() + ask()) / 2 - close from 2 bars ago) * 100) / close from 2 bars ago;
def up = data > 0;
def down = data < 0;
data.AssignValueColor (Color.BLACK);
AssignBackgroundColor(if up then Color.GREEN else if down then Color.LIGHT_RED else Color.YELLOW);
Thanks!!
Cory
 

Similar threads

Top