#Hint: script shows the option price in the addlabel format on the option with expiration date you write in. Shows a N/A on strikes that do not exist. this will take a while to load, so please be patient.
# Option PRICE addlabel Indicator
#This code was heavily modified by mourningwood4521 from something #NPTrading made.
declare lower;
input optionSeriesPrefix = "210319"; #NPTrading : manually update option expiry date in format YYMMDD
input strikeSpacing = 10; #: { ".5", "1", "2.5", "5", default "10", "25" }; #default 10 for large price stock
## if you want to use todays last priceActionIndicator then use this function,
def PutStrike = if close < 1000 then Ceil(close / 10) * 10 else Ceil(close / 100) * 100;
def CallStrike = if close < 1000 then Floor(close / 10) * 10 else Floor(close / 100) * 100;
#otherwise, if you want to use yesterdays close use this function below, and delete the 2 hastags below and add hastags in front of the 2 lines above.
#def PutStrike = if close[1] < 1000 then Ceil(close[1] / 10) * 10 else Ceil(close[1] / 100) * 100;
#def CallStrike = if close[1] < 1000 then Floor(close[1] / 10) * 10 else Floor(close[1] / 100) * 100;
AddLabel(1, GetSymbol() + " Exp:" + optionSeriesPrefix + " CStrike:" + CallStrike + " PStrike:" + PutStrike , Color.WHITE);
input ShowAllLabels = no;
input Showput = no;
input Showput1 = no;
input Showput2 = no;
input Showput3 = no;
input Showput4 = no;
input Showput5 = no;
input Showput6 = no;
input Showput7 = no;
input Showput8 = no;
input Showput9 = no;
input Showput10 = no;
input Showput11 = no;
input Showput12 = no;
input Showput13 = no;
input Showput14 = no;
input Showput15 = no;
input Showput16 = no;
input Showput17 = no;
input Showput18 = no;
input Showput19 = no;
input Showput20 = no;
input Showput21 = no;
input Showput22 = no;
input Showput23 = no;
input Showput24 = no;
input Showput25 = no;
input Showput26 = no;
input Showput27 = no;
input Showput28 = no;
input Showput29 = no;
input Showput30 = no;
input Showput31 = no;
input Showput32 = no;
input Showput33 = no;
input Showput34 = no;
input Showput35 = no;
input Showput36 = no;
input Showput37 = no;
input Showput38 = no;
input Showput39 = no;
input Showput40 = no;
### Put Option Volume
def putOptionclose = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 0))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 0));
def putOptionclose1 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 1))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 1));
def putOptionclose2 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 2))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 2));
def putOptionclose3 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 3))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 3));
def putOptionclose4 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 4))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 4));
def putOptionclose5 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 5))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 5));
def putOptionclose6 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 6))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 6));
def putOptionclose7 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 7))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 7));
def putOptionclose8 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 8))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 8));
def putOptionclose9 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 9))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 9));
def putOptionclose10 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 10))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 10));
def putOptionclose11 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 11))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 11));
def putOptionclose12 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 12))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 12));
def putOptionclose13 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 13))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 13));
def putOptionclose14 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 14))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 14));
def putOptionclose15 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 15))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 15));
def putOptionclose16 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 16))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 16));
def putOptionclose17 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 17))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 17));
def putOptionclose18 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 18))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 18));
def putOptionclose19 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 19))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 19));
def putOptionclose20 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 20))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 20));
def putOptionclose21 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 21))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 21));
def putOptionclose22 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 22))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 22));
def putOptionclose23 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 23))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 23));
def putOptionclose24 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 24))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 24));
def putOptionclose25 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 25))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 25));
def putOptionclose26 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 26))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 26));
def putOptionclose27 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 27))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 27));
def putOptionclose28 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 28))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 28));
def putOptionclose29 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 29))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 29));
def putOptionclose30 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 30))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 30));
def putOptionclose31 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 31))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 31));
def putOptionclose32 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 32))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 32));
def putOptionclose33 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 33))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 33));
def putOptionclose34 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 34))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 34));
def putOptionclose35 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 35))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 35));
def putOptionclose36 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 36))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 36));
def putOptionclose37 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 37))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 37));
def putOptionclose38 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 38))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 38));
def putOptionclose39 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 39))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 39));
def putOptionclose40 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 40))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "P" + AsPrice(PutStrike - strikeSpacing * 40));
####Show Individual Put Volume Labels
AddLabel(Showput or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 0) + ": " + putOptionclose, color.red);
AddLabel(Showput1 or ShowAllLabels, "P" + AsPrice(PutStrike - (strikeSpacing * 1)) + ": " + putOptionclose1, color.red);
AddLabel(Showput2 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 2) + ": " + putOptionclose2, color.red);
AddLabel(Showput3 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 3) + ": " + putOptionclose3, color.red);
AddLabel(Showput4 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 4) + ": " + putOptionclose4, color.red);
AddLabel(Showput5 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 5) + ": " + putOptionclose5, color.red);
AddLabel(Showput6 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 6) + ": " + putOptionclose6, color.red);
AddLabel(Showput7 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 7) + ": " + putOptionclose7, color.red);
AddLabel(Showput8 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 8) + ": " + putOptionclose8, color.red);
AddLabel(Showput9 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 9) + ": " + putOptionclose9, color.red);
AddLabel(Showput10 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 10) + ": " + putOptionclose10, color.red);
AddLabel(Showput11 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 11) + ": " + putOptionclose11, color.red);
AddLabel(Showput12 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 12) + ": " + putOptionclose12, color.red);
AddLabel(Showput13 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 13) + ": " + putOptionclose13, color.red);
AddLabel(Showput14 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 14) + ": " + putOptionclose14, color.red);
AddLabel(Showput15 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 15) + ": " + putOptionclose15, color.red);
AddLabel(Showput16 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 16) + ": " + putOptionclose16, color.red);
AddLabel(Showput17 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 17) + ": " + putOptionclose17, color.red);
AddLabel(Showput18 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 18) + ": " + putOptionclose18, color.red);
AddLabel(Showput19 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 19) + ": " + putOptionclose19, color.red);
AddLabel(Showput20 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 20) + ": " + putOptionclose20, color.red);
AddLabel(Showput21 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 21) + ": " + putOptionclose21, color.red);
AddLabel(Showput22 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 22) + ": " + putOptionclose22, color.red);
AddLabel(Showput23 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 23) + ": " + putOptionclose23, color.red);
AddLabel(Showput24 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 24) + ": " + putOptionclose24, color.red);
AddLabel(Showput25 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 25) + ": " + putOptionclose25, color.red);
AddLabel(Showput26 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 26) + ": " + putOptionclose26, color.red);
AddLabel(Showput27 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 27) + ": " + putOptionclose27, color.red);
AddLabel(Showput28 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 28) + ": " + putOptionclose28, color.red);
AddLabel(Showput29 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 29) + ": " + putOptionclose29, color.red);
AddLabel(Showput30 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 30) + ": " + putOptionclose30, color.red);
AddLabel(Showput31 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 31) + ": " + putOptionclose31, color.red);
AddLabel(Showput32 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 32) + ": " + putOptionclose32, color.red);
AddLabel(Showput33 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 33) + ": " + putOptionclose33, color.red);
AddLabel(Showput34 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 34) + ": " + putOptionclose34, color.red);
AddLabel(Showput35 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 35) + ": " + putOptionclose35, color.red);
AddLabel(Showput36 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 36) + ": " + putOptionclose36, color.red);
AddLabel(Showput37 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 37) + ": " + putOptionclose37, color.red);
AddLabel(Showput38 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 38) + ": " + putOptionclose38, color.red);
AddLabel(Showput39 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 39) + ": " + putOptionclose39, color.red);
AddLabel(Showput40 or ShowAllLabels, "P" + AsPrice(PutStrike - strikeSpacing * 40) + ": " + putOptionclose40, color.red);
#calls######################################################################
input showcall = no;
input Showcall1 = no;
input Showcall2 = no;
input Showcall3 = no;
input Showcall4 = no;
input Showcall5 = no;
input Showcall6 = no;
input Showcall7 = no;
input Showcall8 = no;
input Showcall9 = no;
input Showcall10 = no;
input Showcall11 = no;
input Showcall12 = no;
input Showcall13 = no;
input Showcall14 = no;
input Showcall15 = no;
input Showcall16 = no;
input Showcall17 = no;
input Showcall18 = no;
input Showcall19 = no;
input Showcall20 = no;
input Showcall21 = no;
input Showcall22 = no;
input Showcall23 = no;
input Showcall24 = no;
input Showcall25 = no;
input Showcall26 = no;
input Showcall27 = no;
input Showcall28 = no;
input Showcall29 = no;
input Showcall30 = no;
input Showcall31 = no;
input Showcall32 = no;
input Showcall33 = no;
input Showcall34 = no;
input Showcall35 = no;
input Showcall36 = no;
input Showcall37 = no;
input Showcall38 = no;
input Showcall39 = no;
input Showcall40 = no;
###Call Option Volume
def callOptionclose = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 0))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 0));
def callOptionclose1 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 1))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 1));
def callOptionclose2 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 2))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 2));
def callOptionclose3 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 3))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 3));
def callOptionclose4 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 4))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 4));
def callOptionclose5 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 5))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 5));
def callOptionclose6 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 6))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 6));
def callOptionclose7 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 7))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 7));
def callOptionclose8 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 8))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 8));
def callOptionclose9 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 9))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 9));
def callOptionclose10 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 10))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 10));
def callOptionclose11 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 11))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 11));
def callOptionclose12 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 12))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 12));
def callOptionclose13 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 13))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 13));
def callOptionclose14 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 14))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 14));
def callOptionclose15 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 15))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 15));
def callOptionclose16 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 16))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 16));
def callOptionclose17 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 17))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 17));
def callOptionclose18 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 18))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 18));
def callOptionclose19 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 19))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 19));
def callOptionclose20 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 20))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 20));
def callOptionclose21 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 21))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 21));
def callOptionclose22 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 22))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 22));
def callOptionclose23 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 23))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 23));
def callOptionclose24 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 24))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 24));
def callOptionclose25 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 25))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 25));
def callOptionclose26 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 26))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 26));
def callOptionclose27 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 27))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 27));
def callOptionclose28 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 28))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 28));
def callOptionclose29 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 29))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 29));
def callOptionclose30 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 30))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 30));
def callOptionclose31 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 31))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 31));
def callOptionclose32 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 32))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 32));
def callOptionclose33 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 33))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 33));
def callOptionclose34 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 34))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 34));
def callOptionclose35 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 35))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 35));
def callOptionclose36 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 36))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 36));
def callOptionclose37 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 37))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 37));
def callOptionclose38 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 38))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 38));
def callOptionclose39 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 39))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 39));
def callOptionclose40 = if IsNaN(close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 40))) then double.nan else close("." + GetSymbol() + optionSeriesPrefix + "C" + AsPrice(CallStrike + strikeSpacing * 40));
#Show Individual Call Volume Labels
AddLabel(showcall or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 0) + ": " + callOptionclose, Color.green);
AddLabel(Showcall1 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 1) + ": " + callOptionclose1, Color.green);
AddLabel(Showcall2 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 2) + ": " + callOptionclose2, Color.green);
AddLabel(Showcall3 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 3) + ": " + callOptionclose3, Color.green);
AddLabel(Showcall4 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 4) + ": " + callOptionclose4, Color.green);
AddLabel(Showcall5 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 5) + ": " + callOptionclose5, Color.green);
AddLabel(Showcall6 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 6) + ": " + callOptionclose6, Color.green);
AddLabel(Showcall7 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 7) + ": " + callOptionclose7, Color.green);
AddLabel(Showcall8 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 8) + ": " + callOptionclose8, Color.green);
AddLabel(Showcall9 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 9) + ": " + callOptionclose9, Color.green);
AddLabel(Showcall10 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 10) + ": " + callOptionclose10, Color.green);
AddLabel(Showcall11 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 11) + ": " + callOptionclose11, Color.green);
AddLabel(Showcall12 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 12) + ": " + callOptionclose12, Color.green);
AddLabel(Showcall13 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 13) + ": " + callOptionclose13, Color.green);
AddLabel(Showcall14 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 14) + ": " + callOptionclose14, Color.green);
AddLabel(Showcall15 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 15) + ": " + callOptionclose15, Color.green);
AddLabel(Showcall16 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 16) + ": " + callOptionclose16, Color.green);
AddLabel(Showcall17 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 17) + ": " + callOptionclose17, Color.green);
AddLabel(Showcall18 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 18) + ": " + callOptionclose18, Color.green);
AddLabel(Showcall19 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 19) + ": " + callOptionclose19, Color.green);
AddLabel(Showcall20 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 20) + ": " + callOptionclose20, Color.green);
AddLabel(Showcall21 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 21) + ": " + callOptionclose21, Color.green);
AddLabel(Showcall22 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 22) + ": " + callOptionclose22, Color.green);
AddLabel(Showcall23 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 23) + ": " + callOptionclose23, Color.green);
AddLabel(Showcall24 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 24) + ": " + callOptionclose24, Color.green);
AddLabel(Showcall25 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 25) + ": " + callOptionclose25, Color.green);
AddLabel(Showcall26 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 26) + ": " + callOptionclose26, Color.green);
AddLabel(Showcall27 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 27) + ": " + callOptionclose27, Color.green);
AddLabel(Showcall28 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 28) + ": " + callOptionclose28, Color.green);
AddLabel(Showcall29 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 29) + ": " + callOptionclose29, Color.green);
AddLabel(Showcall30 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 30) + ": " + callOptionclose30, Color.green);
AddLabel(Showcall31 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 31) + ": " + callOptionclose31, Color.green);
AddLabel(Showcall32 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 32) + ": " + callOptionclose32, Color.green);
AddLabel(Showcall33 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 33) + ": " + callOptionclose33, Color.green);
AddLabel(Showcall34 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 34) + ": " + callOptionclose34, Color.green);
AddLabel(Showcall35 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 35) + ": " + callOptionclose35, Color.green);
AddLabel(Showcall36 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 36) + ": " + callOptionclose36, Color.green);
AddLabel(Showcall37 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 37) + ": " + callOptionclose37, Color.green);
AddLabel(Showcall38 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 38) + ": " + callOptionclose38, Color.green);
AddLabel(Showcall39 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 39) + ": " + callOptionclose39, Color.green);
AddLabel(Showcall40 or ShowAllLabels, "C" + AsPrice(CallStrike + strikeSpacing * 40) + ": " + callOptionclose40, Color.green);