OneTallGuy
New member
Hi all,
I wish to add a column to my small stock watchlist that would show the % change from a particular time to now on this day's open activities.
I am currently using:
def x = open;
def y = close;
plot percentchange = ((y-x)/x) *100;
AssignBackgroundColor(if percentchange > 0.99 then Color.Green else if percentchange < -0.99 then Color.RED else Color.White);
percentchange.AssignValueColor( if percentchange >0.99 then color.Black else if percentchange <-0.99 then color.Black else color.violet) ;
This gives a % change from the Stock Trading Open of 0830 CST. I want to make another column to give a % change for this date from 0845 or 0900 or any time I want to put in.
I have done a search for this but have not found anything that matches my needs. I am sure the way to do this is simple, I just can not find out how.
Thanks for any help given.
I wish to add a column to my small stock watchlist that would show the % change from a particular time to now on this day's open activities.
I am currently using:
def x = open;
def y = close;
plot percentchange = ((y-x)/x) *100;
AssignBackgroundColor(if percentchange > 0.99 then Color.Green else if percentchange < -0.99 then Color.RED else Color.White);
percentchange.AssignValueColor( if percentchange >0.99 then color.Black else if percentchange <-0.99 then color.Black else color.violet) ;
This gives a % change from the Stock Trading Open of 0830 CST. I want to make another column to give a % change for this date from 0845 or 0900 or any time I want to put in.
I have done a search for this but have not found anything that matches my needs. I am sure the way to do this is simple, I just can not find out how.
Thanks for any help given.