I am trying to add a show year % difference of the year high and low. Then I want to do a month version as well.
I added in the def % = % ( period = aggregationperiod.Year); but that is nor working.
I have the difference of high and low showing but I also want it to show as a % up for the year.
How can I get the % of year high low difference working?
-------------------------------
I added in the def % = % ( period = aggregationperiod.Year); but that is nor working.
I have the difference of high and low showing but I also want it to show as a % up for the year.
How can I get the % of year high low difference working?
-------------------------------
Code:
declare upper;
def yH = high(period = aggregationperiod.Year);
def yL = low( period = aggregationperiod.Year);
def % = % ( period = aggregationperiod.Year);
def diff = yH - yL - %;
AddLabel(yes, "Year H L Diff " + diff, Color.LIGHT_GREEN);
Last edited by a moderator: