im attempting to create/modify a script that plots a line on a daily chart at 5% 10% 20% 25% respective pullbacks from both HOY and ATH (the option to switch between the two) so 4 lines on daily chart. im missing something and getting stuck here. I've attached screenshot of what the script should look like applied to chart.
input daily_percent_bubbles = yes;
input Move_bubble_left = 33; #hint Move_bubble_left: This will move the Weekly EM Bubbles left and right
input bubble_left = 15; #hint bubble_left: This will move the % Bubbles left and right
input ShowTodayOnly = yes;
input lite_chart = yes;
def showPlot = !ShowTodayOnly ;
def PH = high(period = AggregationPeriod.YEAR)[1];
def PL = low(period = AggregationPeriod.YEAR)[1];
def PC = close(period = AggregationPeriod.YEAR)[1];
def Dn_5 = close - ((close * 5.0)*0.01);
def Dn_10 = close - ((close * 10.0)*0.01);
def Dn_20 = close - ((close * 20.0)*0.01);
def Dn_25 = close - ((close * 25.0)*0.01);
plot percent_5;
plot neg_pct_10;
plot neg_pct_25;
plot neg_pct_10;
Thanks in Advance
To follow up, this is what a finished version would look like via TOS, the above code was taken from pictured script.
thanks Again
input daily_percent_bubbles = yes;
input Move_bubble_left = 33; #hint Move_bubble_left: This will move the Weekly EM Bubbles left and right
input bubble_left = 15; #hint bubble_left: This will move the % Bubbles left and right
input ShowTodayOnly = yes;
input lite_chart = yes;
def showPlot = !ShowTodayOnly ;
def PH = high(period = AggregationPeriod.YEAR)[1];
def PL = low(period = AggregationPeriod.YEAR)[1];
def PC = close(period = AggregationPeriod.YEAR)[1];
def Dn_5 = close - ((close * 5.0)*0.01);
def Dn_10 = close - ((close * 10.0)*0.01);
def Dn_20 = close - ((close * 20.0)*0.01);
def Dn_25 = close - ((close * 25.0)*0.01);
plot percent_5;
plot neg_pct_10;
plot neg_pct_25;
plot neg_pct_10;
Thanks in Advance
To follow up, this is what a finished version would look like via TOS, the above code was taken from pictured script.
thanks Again
Last edited by a moderator: