eatingwagyu2
New member
Hello, I am looking for an indicator that can plot the VAH and VAL of the previous day onto the current days chart. just 2 clean simple lines
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Hello, I am looking for an indicator that can plot the VAH and VAL of the previous day onto the current days chart. just 2 clean simple lines
# Previous Days POC, High Value Area and Low Value Area
# Mobius
# V01.01.2015
def cond1 = getTime() % AggregationPeriod.Day == 0;
def x = barNumber();
def c = close;
def nan = double.nan;
def RTH_x1 = if(SecondsTillTime(0930) == 0, x, RTH_x1[1]);
profile volP = VolumeProfile("startNewProfile" = cond1, "onExpansion" = no);
def poc = volP.GetPointOfControl();
def HVA = volP.GetHighestValueArea();
def LVA = volP.GetLowestValueArea();
def x1 = if(cond1, x, x1[1]);
def poc_2 = if(cond1, poc[1], poc_2[1]);
def HVA_2 = if(cond1, HVA[1], HVA_2[1]);
def LVA_2 = if(cond1, LVA[1], LVA_2[1]);
def x2 = if(cond1, x1[1], x2[1]);
plot poc2 = if(x >= highestAll(x1), highestAll(if(isNaN(c[1]), poc_2, nan)), nan);
plot HVA2 = if(x >= highestAll(x1), highestAll(if(isNaN(c[1]), HVA_2, nan)), nan);
plot LVA2 = if(x >= highestAll(x1), highestAll(if(isNaN(c[1]), LVA_2, nan)), nan);
# End Code
Can i get this on a tick chart ? only working on minute chartsFor use on intraday aggregations (less than Daily) with Extended Hours ON and at least 10 bars of right extension on.
Ruby:# Previous Days POC, High Value Area and Low Value Area # Mobius # V01.01.2015 def cond1 = getTime() % AggregationPeriod.Day == 0; def x = barNumber(); def c = close; def nan = double.nan; def RTH_x1 = if(SecondsTillTime(0930) == 0, x, RTH_x1[1]); profile volP = VolumeProfile("startNewProfile" = cond1, "onExpansion" = no); def poc = volP.GetPointOfControl(); def HVA = volP.GetHighestValueArea(); def LVA = volP.GetLowestValueArea(); def x1 = if(cond1, x, x1[1]); def poc_2 = if(cond1, poc[1], poc_2[1]); def HVA_2 = if(cond1, HVA[1], HVA_2[1]); def LVA_2 = if(cond1, LVA[1], LVA_2[1]); def x2 = if(cond1, x1[1], x2[1]); plot poc2 = if(x >= highestAll(x1), highestAll(if(isNaN(c[1]), poc_2, nan)), nan); plot HVA2 = if(x >= highestAll(x1), highestAll(if(isNaN(c[1]), HVA_2, nan)), nan); plot LVA2 = if(x >= highestAll(x1), highestAll(if(isNaN(c[1]), LVA_2, nan)), nan); # End Code
# Points Of Control Support / Resistance Areas
# Mobius
# V01.03.08.2016
# Locates last 10 Points of Control based on RTH only
#declare Hide_On_Daily;
#input cloudSize= 1.25;
#INPUT cloudSizePOC = 0.01;
#INPUT PBT1 = 3905.75;
#INPUT PBT2 = 3905.75;
#INPUT PBT3 = 3905.75;
#INPUT PBT4 = 3905.75;
#INPUT PBT5 = 3905.75;
input RthBegin = 930; #hint RthBegin: Regular Trading Hours Begin. #0
input RthEnd = 1615; #hint RthEnd: Regular Trading Hours End. #1715
input AtrLength = 4; #hint AtrLength: Length for Average True Range Calculation.
input RoundingFunction = 1; #hint RoundingFunction: Round to nearest ?
input MaxRisk = 2.00; #hint MaxRisk: Maximum Risk around pivots.
def c = close;
def locate = isNaN(close[13]) and !isNaN(close[14]);
def RTH = SecondsFromTime(RthBegin) > 0 and SecondsTillTime(RthEnd) >= 0;
#####################prev vah
def yyyymmdd = GetYYYYMMDD();
def day_number = DaysFromDate(First(yyyymmdd)) + GetDayOfWeek(First(yyyymmdd));
#def period = Floor(day_number / 7);
def period = countTradingDays(min(first(yyyymmdd), yyyymmdd), yyyymmdd) - 1; # need for profile to show daily not full chart
def cond2 = 0 < period - period[1];
profile volvah = VolumeProfile("startNewProfile" = cond2,
"onExpansion" = no, "pricePerRow" = PricePerRow.TICKSIZE);
# volvah.Show("va color" = Color.YELLOW); # UNCHECK TO SEE VOL PROFILE
DEF MYprevVAH = volvah.GetHighestValueArea();
def prevVAH = if RTH
then (volvah.GetHighestValueArea() )
else Double.NaN;
def prevVAH1 = if !RTH and RTH[1]
then prevVAH[1]
else prevVAH1[1];
def prevVAH2 = if !RTH and RTH[1]
then prevVAH1[1]
else prevVAH2[1];
def prevVAH3 = if !RTH and RTH[1]
then prevVAH2[1]
else prevVAH3[1];
def prevVAH4 = if !RTH and RTH[1]
then prevVAH3[1]
else prevVAH4[1];
def prevVAH5 = if !RTH and RTH[1]
then prevVAH4[1]
else prevVAH5[1];
def prevVAH6 = if !RTH and RTH[1]
then prevVAH5[1]
else prevVAH6[1];
def prevVAH7 = if !RTH and RTH[1]
then prevVAH6[1]
else prevVAH7[1];
def prevVAH8 = if !RTH and RTH[1]
then prevVAH7[1]
else prevVAH8[1];
def prevVAH9 = if !RTH and RTH[1]
then prevVAH8[1]
else prevVAH9[1];
def prevVAH10 = if !RTH and RTH[1]
then prevVAH9[1]
else prevVAH10[1];
def prevVAH11 = if !RTH and RTH[1]
then prevVAH10[1]
else prevVAH11[1];
def prevVAH12 = if !RTH and RTH[1]
then prevVAH11[1]
else prevVAH12[1];
def prevVAH13 = if !RTH and RTH[1]
then prevVAH12[1]
else prevVAH13[1];
def prevVAH14 = if !RTH and RTH[1]
then prevVAH13[1]
else prevVAH14[1];
def prevVAH15 = if !RTH and RTH[1]
then prevVAH14[1]
else prevVAH15[1];
DEF VAH = HighestAll(if isNaN(c[-1])
then prevVAH
else double.nan);
# vah.SetStyle(Curve.Firm);
# vah.SetLineWeight(2);
#############cloud
#addCloud(vah-cloudSize, vah+cloudSize, createColor(150,7,5), createColor(150,7,5));
#ADDCHartBubble(locate, vah, "", createColor(150,7,5), yes);
PLOT VAH1 = HighestAll(if isNaN(c[-1])
then prevVAH1
else double.nan);
# vah1.SetStyle(Curve.Long_Dash);
#addCloud(vah1-cloudSize, vah1+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah1, " 1", createColor(150,7,5), yes);
PLOT VAH2 = HighestAll(if isNaN(c[-1])
then prevVAH2
else double.nan);
# vah2.SetStyle(Curve.Long_Dash);
#addCloud(vah2-cloudSize, vah2+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah2, " 2", createColor(150,7,5), yes);
PLOT VAH3 = HighestAll(if isNaN(c[-1])
then prevVAH
else double.nan);
# vah3.SetStyle(Curve.Long_Dash);
#addCloud(vah3-cloudSize, vah3+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah3, " 3", createColor(150,7,5), yes);
PLOT VAH4 = HighestAll(if isNaN(c[-1])
then prevVAH4
else double.nan);
# vah4.SetStyle(Curve.Long_Dash);
#addCloud(vah4-cloudSize, vah4+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah4, " 4", createColor(150,7,5), yes);
PLOT VAH5 = HighestAll(if isNaN(c[-1])
then prevVAH5
else double.nan);
# vah5.SetStyle(Curve.Long_Dash);
#addCloud(vah5-cloudSize, vah5+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah5, " 5", createColor(150,7,5), yes);
PLOT VAH6 = HighestAll(if isNaN(c[-1])
then prevVAH6
else double.nan);
# vah6.SetStyle(Curve.Long_Dash);
#addCloud(vah6-cloudSize, vah6+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah6, " 6", createColor(150,7,5), yes);
PLOT VAH7 = HighestAll(if isNaN(c[-1])
then prevVAH7
else double.nan);
# vah7.SetStyle(Curve.Long_Dash);
#addCloud(vah7-cloudSize, vah7+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah7, " 7", createColor(150,7,5), yes);
PLOT VAH8 = HighestAll(if isNaN(c[-1])
then prevVAH8
else double.nan);
# vah8.SetStyle(Curve.Long_Dash);
#addCloud(vah8-cloudSize, vah8+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah8, " 8", createColor(150,7,5), yes);
PLOT VAH9 = HighestAll(if isNaN(c[-1])
then prevVAH9
else double.nan);
# vah9.SetStyle(Curve.Long_Dash);
#addCloud(vah9-cloudSize, vah9+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah9, " 9", createColor(150,7,5), yes);
PLOT VAH10 = HighestAll(if isNaN(c[-1])
then prevVAH10
else double.nan);
# vah10.SetStyle(Curve.Long_Dash);
#addCloud(vah10-cloudSize, vah10+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah10, " 10", createColor(150,7,5), yes);
PLOT VAH11 = HighestAll(if isNaN(c[-1])
then prevVAH11
else double.nan);
# vah11.SetStyle(Curve.Long_Dash);
#addCloud(vah11-cloudSize, vah11+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah11, " 11", createColor(150,7,5), yes);
PLOT VAH12 = HighestAll(if isNaN(c[-1])
then prevVAH12
else double.nan);
# vah12.SetStyle(Curve.Long_Dash);
#addCloud(vah12-cloudSize, vah12+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah12, " 12", createColor(150,7,5), yes);
PLOT VAH13 = HighestAll(if isNaN(c[-1])
then prevVAH13
else double.nan);
# vah13.SetStyle(Curve.Long_Dash);
#addCloud(vah13-cloudSize, vah13+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah13, " 13", createColor(150,7,5), yes);
PLOT VAH14 = HighestAll(if isNaN(c[-1])
then prevVAH14
else double.nan);
# vah14.SetStyle(Curve.Long_Dash);
#addCloud(vah14-cloudSize, vah14+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah14, " 14", createColor(150,7,5), yes);
PLOT VAH15 = HighestAll(if isNaN(c[-1])
then prevVAH15
else double.nan);
# vah15.SetStyle(Curve.Long_Dash);
#addCloud(vah15-cloudSize, vah15+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, vah5, " 5", createColor(150,7,5), yes);
#############cloud end
#####################prev VAH end ###############################
##################### prev VAL
########################################################
##########################################
profile volval = VolumeProfile("startNewProfile" = cond2,
"onExpansion" = no, "pricePerRow" = PricePerRow.TICKSIZE);
# volval.Show("va color" = Color.YELLOW);
DEF MYprevVAL = volval.GetLowestValueArea();
################## CopY Paste Start below
def prevVAL = if RTH
then (volval.GetLowestValueArea() )
else Double.NaN;
def prevVAL1 = if !RTH and RTH[1]
then prevVAL[1]
else prevVAL1[1];
def prevVAL2 = if !RTH and RTH[1]
then prevVAL1[1]
else prevVAL2[1];
def prevVAL3 = if !RTH and RTH[1]
then prevVAL2[1]
else prevVAL3[1];
def prevVAL4 = if !RTH and RTH[1]
then prevVAL3[1]
else prevVAL4[1];
def prevVAL5 = if !RTH and RTH[1]
then prevVAL4[1]
else prevVAL5[1];
def prevVAL6 = if !RTH and RTH[1]
then prevVAL5[1]
else prevVAL6[1];
def prevVAL7 = if !RTH and RTH[1]
then prevVAL6[1]
else prevVAL7[1];
def prevVAL8 = if !RTH and RTH[1]
then prevVAL7[1]
else prevVAL8[1];
def prevVAL9 = if !RTH and RTH[1]
then prevVAL8[1]
else prevVAL9[1];
def prevVAL10 = if !RTH and RTH[1]
then prevVAL9[1]
else prevVAL10[1];
def prevVAL11 = if !RTH and RTH[1]
then prevVAL10[1]
else prevVAL11[1];
def prevVAL12 = if !RTH and RTH[1]
then prevVAL11[1]
else prevVAL12[1];
def prevVAL13 = if !RTH and RTH[1]
then prevVAL12[1]
else prevVAL13[1];
def prevVAL14 = if !RTH and RTH[1]
then prevVAL13[1]
else prevVAL14[1];
def prevVAL15 = if !RTH and RTH[1]
then prevVAL14[1]
else prevVAL15[1];
DEF VAL = HighestAll(if isNaN(c[-1])
then prevVAL
else double.nan);
# VAL.SetStyle(Curve.Firm);
# VAL.SetLineWeight(2);
#############cloud
#addCloud(VAL-cloudSize, VAL+cloudSize, createColor(150,7,5), createColor(150,7,5));
#ADDCHartBubble(locate, VAL, "", createColor(150,7,5), yes);
PLOT VAL1 = HighestAll(if isNaN(c[-1])
then prevVAL1
else double.nan);
# VAL1.SetStyle(Curve.Long_Dash);
#addCloud(VAL1-cloudSize, VAL1+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL1, " 1", createColor(150,7,5), yes);
PLOT VAL2 = HighestAll(if isNaN(c[-1])
then prevVAL2
else double.nan);
# VAL2.SetStyle(Curve.Long_Dash);
#addCloud(VAL2-cloudSize, VAL2+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL2, " 2", createColor(150,7,5), yes);
PLOT VAL3 = HighestAll(if isNaN(c[-1])
then prevVAL
else double.nan);
# VAL3.SetStyle(Curve.Long_Dash);
#addCloud(VAL3-cloudSize, VAL3+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL3, " 3", createColor(150,7,5), yes);
PLOT VAL4 = HighestAll(if isNaN(c[-1])
then prevVAL4
else double.nan);
# VAL4.SetStyle(Curve.Long_Dash);
#addCloud(VAL4-cloudSize, VAL4+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL4, " 4", createColor(150,7,5), yes);
PLOT VAL5 = HighestAll(if isNaN(c[-1])
then prevVAL5
else double.nan);
# VAL5.SetStyle(Curve.Long_Dash);
#addCloud(VAL5-cloudSize, VAL5+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL5, " 5", createColor(150,7,5), yes);
PLOT VAL6 = HighestAll(if isNaN(c[-1])
then prevVAL6
else double.nan);
# VAL6.SetStyle(Curve.Long_Dash);
#addCloud(VAL6-cloudSize, VAL6+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL6, " 6", createColor(150,7,5), yes);
PLOT VAL7 = HighestAll(if isNaN(c[-1])
then prevVAL7
else double.nan);
# VAL7.SetStyle(Curve.Long_Dash);
#addCloud(VAL7-cloudSize, VAL7+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL7, " 7", createColor(150,7,5), yes);
PLOT VAL8 = HighestAll(if isNaN(c[-1])
then prevVAL8
else double.nan);
# VAL8.SetStyle(Curve.Long_Dash);
#addCloud(VAL8-cloudSize, VAL8+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL8, " 8", createColor(150,7,5), yes);
PLOT VAL9 = HighestAll(if isNaN(c[-1])
then prevVAL9
else double.nan);
# VAL9.SetStyle(Curve.Long_Dash);
#addCloud(VAL9-cloudSize, VAL9+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL9, " 9", createColor(150,7,5), yes);
PLOT VAL10 = HighestAll(if isNaN(c[-1])
then prevVAL10
else double.nan);
# VAL10.SetStyle(Curve.Long_Dash);
#addCloud(VAL10-cloudSize, VAL10+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL10, " 10", createColor(150,7,5), yes);
PLOT VAL11 = HighestAll(if isNaN(c[-1])
then prevVAL11
else double.nan);
# VAL11.SetStyle(Curve.Long_Dash);
#addCloud(VAL11-cloudSize, VAL11+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL11, " 11", createColor(150,7,5), yes);
PLOT VAL12 = HighestAll(if isNaN(c[-1])
then prevVAL12
else double.nan);
# VAL12.SetStyle(Curve.Long_Dash);
#addCloud(VAL12-cloudSize, VAL12+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL12, " 12", createColor(150,7,5), yes);
PLOT VAL13 = HighestAll(if isNaN(c[-1])
then prevVAL13
else double.nan);
# VAL13.SetStyle(Curve.Long_Dash);
#addCloud(VAL13-cloudSize, VAL13+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL13, " 13", createColor(150,7,5), yes);
PLOT VAL14 = HighestAll(if isNaN(c[-1])
then prevVAL14
else double.nan);
# VAL14.SetStyle(Curve.Long_Dash);
#addCloud(VAL14-cloudSize, VAL14+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL14, " 14", createColor(150,7,5), yes);
PLOT VAL15 = HighestAll(if isNaN(c[-1])
then prevVAL15
else double.nan);
# VAL15.SetStyle(Curve.Long_Dash);
#addCloud(VAL15-cloudSize, VAL15+cloudSize, color.gray, color.gray);
#ADDCHartBubble(locate, VAL5, " 5", createColor(150,7,5), yes);
#############cloud end
#####################prev VAL end
##################POC
#def yyyymmdd = GetYYYYMMDD();
#def day_number = DaysFromDate(First(yyyymmdd)) + GetDayOfWeek(First(yyyymmdd));
#def period = Floor(day_number / 7);
#def period = countTradingDays(min(first(yyyymmdd), yyyymmdd), yyyymmdd) - 1;
#def cond = 0 < period - period[1];
profile volpoc = VolumeProfile("startNewProfile" = cond2,
"onExpansion" = no, "pricePerRow" = PricePerRow.TICKSIZE);
#tpo.Show();
def myprevpoc = volpoc.GetPointOfControl();
#######################
################## CopY Paste Start below
def prevpoc = if RTH
then (volpoc.GetPointOfControl() )
else Double.NaN;
def prevpoc1 = if !RTH and RTH[1]
then prevpoc[1]
else prevpoc1[1];
def prevpoc2 = if !RTH and RTH[1]
then prevpoc1[1]
else prevpoc2[1];
def prevpoc3 = if !RTH and RTH[1]
then prevpoc2[1]
else prevpoc3[1];
def prevpoc4 = if !RTH and RTH[1]
then prevpoc3[1]
else prevpoc4[1];
def prevpoc5 = if !RTH and RTH[1]
then prevpoc4[1]
else prevpoc5[1];
def prevpoc6 = if !RTH and RTH[1]
then prevpoc5[1]
else prevpoc6[1];
def prevpoc7 = if !RTH and RTH[1]
then prevpoc6[1]
else prevpoc7[1];
def prevpoc8 = if !RTH and RTH[1]
then prevpoc7[1]
else prevpoc8[1];
def prevpoc9 = if !RTH and RTH[1]
then prevpoc8[1]
else prevpoc9[1];
def prevpoc10 = if !RTH and RTH[1]
then prevpoc9[1]
else prevpoc10[1];
def prevpoc11 = if !RTH and RTH[1]
then prevpoc10[1]
else prevpoc11[1];
def prevpoc12 = if !RTH and RTH[1]
then prevpoc11[1]
else prevpoc12[1];
def prevpoc13 = if !RTH and RTH[1]
then prevpoc12[1]
else prevpoc13[1];
def prevpoc14 = if !RTH and RTH[1]
then prevpoc13[1]
else prevpoc14[1];
def prevpoc15 = if !RTH and RTH[1]
then prevpoc14[1]
else prevpoc15[1];
PLOT poc = HighestAll(if isNaN(c[-1])
then prevpoc
else double.nan);
# poc.SetStyle(Curve.Firm);
# poc.SetLineWeight(2);
#############cloud
#############cloud
#addCloud(poc-cloudSize, poc+cloudSize, createColor(150,7,5), createColor(150,7,5));
ADDCHartBubble(locate, poc, "0", color.gray, yes);
plot poc1 = HighestAll(if isNaN(c[-1])
then prevpoc1
else double.nan);
poc1.SetStyle(Curve.Long_Dash);
#addCloud(poc1-cloudSize, poc1+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc1, "1", color.gray, yes);
plot poc2 = HighestAll(if isNaN(c[-1])
then prevpoc2
else double.nan);
poc2.SetStyle(Curve.Long_Dash);
#addCloud(poc2-cloudSize, poc2+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc2, "2", color.gray, yes);
plot poc3 = HighestAll(if isNaN(c[-1])
then prevpoc
else double.nan);
poc3.SetStyle(Curve.Long_Dash);
#addCloud(poc3-cloudSize, poc3+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc3, "3", color.gray, yes);
plot poc4 = HighestAll(if isNaN(c[-1])
then prevpoc4
else double.nan);
poc4.SetStyle(Curve.Long_Dash);
#addCloud(poc4-cloudSize, poc4+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc4, "4", color.gray ,yes);
plot poc5 = HighestAll(if isNaN(c[-1])
then prevpoc5
else double.nan);
poc5.SetStyle(Curve.Long_Dash);
#addCloud(poc5-cloudSize, poc5+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc5, "5", color.gray, yes);
plot poc6 = HighestAll(if isNaN(c[-1])
then prevpoc6
else double.nan);
poc6.SetStyle(Curve.Long_Dash);
#addCloud(poc6-cloudSize, poc6+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc6, "6", color.gray, yes);
plot poc7 = HighestAll(if isNaN(c[-1])
then prevpoc7
else double.nan);
poc7.SetStyle(Curve.Long_Dash);
#addCloud(poc7-cloudSize, poc7+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc7, "7", color.gray ,yes);
plot poc8 = HighestAll(if isNaN(c[-1])
then prevpoc8
else double.nan);
poc8.SetStyle(Curve.Long_Dash);
#addCloud(poc8-cloudSize, poc8+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc8, "8", color.gray ,yes);
plot poc9 = HighestAll(if isNaN(c[-1])
then prevpoc9
else double.nan);
poc9.SetStyle(Curve.Long_Dash);
#addCloud(poc9-cloudSize, poc9+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc9, "9", color.gray, yes);
plot poc10 = HighestAll(if isNaN(c[-1])
then prevpoc10
else double.nan);
poc10.SetStyle(Curve.Long_Dash);
#addCloud(poc10-cloudSize, poc10+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc10, "10", color.gray ,yes);
plot poc11 = HighestAll(if isNaN(c[-1])
then prevpoc11
else double.nan);
poc11.SetStyle(Curve.Long_Dash);
#addCloud(poc11-cloudSize, poc11+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc11, "11", color.gray ,yes);
plot poc12 = HighestAll(if isNaN(c[-1])
then prevpoc12
else double.nan);
poc12.SetStyle(Curve.Long_Dash);
#addCloud(poc12-cloudSize, poc12+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc12, "12", color.gray ,yes);
plot poc13 = HighestAll(if isNaN(c[-1])
then prevpoc13
else double.nan);
poc13.SetStyle(Curve.Long_Dash);
##addCloud(poc13-cloudSize, poc13+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc13, "13", color.gray, yes);
plot poc14 = HighestAll(if isNaN(c[-1])
then prevpoc14
else double.nan);
poc14.SetStyle(Curve.Long_Dash);
#addCloud(poc14-cloudSize, poc14+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc14, "14", color.gray, yes);
plot poc15 = HighestAll(if isNaN(c[-1])
then prevpoc15
else double.nan);
poc15.SetStyle(Curve.Long_Dash);
#addCloud(poc15-cloudSize, poc15+cloudSize, color.gray, color.gray);
ADDCHartBubble(locate, poc15, "15", color.gray, yes);
#############cloud end
#####################prev poc end
####################POC END
################ ADD PBT HIGH
#addCloud(PBT1-cloudSize, PBT1+cloudSize, color.gray, color.green);
#addCloud(PBT2-cloudSize, PBT2+cloudSize, color.gray, color.green);
#addCloud(PBT3-cloudSize, PBT3+cloudSize, color.gray, color.green);
#addCloud(PBT4-cloudSize, PBT4+cloudSize, color.gray, color.green);
#addCloud(PBT5-cloudSize, PBT5+cloudSize, color.gray, color.green);
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
C | Auto Fibonacci From Previous High & Low w/ Percentages & Alerts For ThinkOrSwim | Custom | 2 | |
S | Previous HOD and LOD for Supply Demand for ThinkOrSwim | Custom | 1 | |
C | Repaints AGAIG Previous Day High Low For ThinkOrSwim | Custom | 0 | |
G | Display Previous High/Low In ThinkOrSwim | Custom | 10 | |
![]() |
Previous OHLCR Labels For ThinkOrSwim | Custom | 0 |
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.