Hello, Happy New Year!!!
I've looked everywhere for a script that would provide a lower label that would show the percent positive or negative of the previous bar or bar range.
Example: Current Bar: 1071 | Last Bar: 877 | 122%
The 122% would change to Green from Gray
0R a % of an average range of last 2 or 5 or 10 volume bars (the range could be a selection)
Example: 5 Bar Average Range 1479 | Current Bar: 877 | 168%
The 168% would change to Green from Gray
If the bar percentage is less an current bar the label would be RED with a "-"
Example: -23%
Here is the code for the LastBar and CurrentBar
declare lower;
#Volume of Current Bar
AddLabel(yes, "CurrentBar Vol: " + volume, Color.LIGHT_GREEN);
####################################################################################
#Volume of the Last Bar
AddLabel(yes, "LastBar Vol: " + volume[1], Color.LIGHT_ORANGE);
####################################################################################
Thank you so much!!
Sean
I've looked everywhere for a script that would provide a lower label that would show the percent positive or negative of the previous bar or bar range.
Example: Current Bar: 1071 | Last Bar: 877 | 122%
The 122% would change to Green from Gray
0R a % of an average range of last 2 or 5 or 10 volume bars (the range could be a selection)
Example: 5 Bar Average Range 1479 | Current Bar: 877 | 168%
The 168% would change to Green from Gray
If the bar percentage is less an current bar the label would be RED with a "-"
Example: -23%
Here is the code for the LastBar and CurrentBar
declare lower;
#Volume of Current Bar
AddLabel(yes, "CurrentBar Vol: " + volume, Color.LIGHT_GREEN);
####################################################################################
#Volume of the Last Bar
AddLabel(yes, "LastBar Vol: " + volume[1], Color.LIGHT_ORANGE);
####################################################################################
Thank you so much!!
Sean