Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
the cyan line is the CCI, the yellow line is RSI (10 min time frame) and the it crosses above the white 100 level it is when high probability set up is ON.
#################
#SQUEEZ## ## ###
plot Outsqueeze = if (reference BollingerBands()."upperband" - KeltnerChannels()."upper_band”) <= 0 then 30 else Double.NaN;
Outsqueeze.HideBubble();
Outsqueeze.SetPaintingStrategy (PaintingStrategy.LINE);
Outsqueeze.SetDefaultColor(Color.YELLOW);
Outsqueeze.SetLineWeight (4);
Outsqueeze.AssignValueColor(if Outsqueeze < 0 then Color.BLUE else Color.MAGENTA);
########
###AddLabel (yes, " ", Color.GRAY);
#AddLabel (yes, ((" ")), if PRICE> PRICE[3] AND UPPerBand> UPPerBand[3] AND LOWERBand > LOWERBand[3] then Color.GREEN else IF PRICE< PRICE[3] AND UPPerBand< UPPerBand[3] AND LOWERBand < LOWERBand[3] then Color.DARK_ORANGE ELSE COLOR.light_GRAY );
###AddLabel (yes, " ", Color.GRAY);
#####AddLabel (yes, ((" ")), if PRICE> PRICE[3] AND UPPerBand> UPPerBand[3] AND LOWERBand < LOWERBand[3] then Color.GREEN else IF PRICE< PRICE[3] AND UPPerBand> UPPerBand[3] AND LOWERBand < LOWERBand[3] then Color.DARK_ORANGE ELSE COLOR.light_GRAY );
def priceCCI = close + low + high;
def linDev = LinDev(priceCCI, lengthCCI);
plot CCI = if linDev == 0 then 0 else (priceCCI - Average(priceCCI, lengthCCI)) / linDev / 0.015;#/ 0.015;
plot OverBoughtCCI = over_boughtCCI;
CCI.HideBubble();
plot ZeroLine = -0;
plot OverSoldCCI = over_soldCCI;
plot UpSignal = if Crosses(CCI, ZeroLine, CrossingDirection.ABOVE) then ZeroLine else Double.NaN;
plot DownSignal = if Crosses(CCI, over_boughtCCI, CrossingDirection.BELOW) then ZeroLine else Double.NaN;
########## CCI LINES #############################
plot CCI_0 = if close >= 0 then -40 else Double.NaN;
CCI_0.HideBubble();
CCI_0.SetPaintingStrategy (PaintingStrategy.LINE);
###upsugnal.SetDefaultColor(Color.green);
CCI_0.SetLineWeight (3);
CCI_0.AssignValueColor(if CCI > ZeroLine then CCI.Color("OverBought") else if CCI < 0 then CCI.Color("OverSold") else CCI.Color("Normal"));
plot CCI_1 = if close >= 0 then -60 else Double.NaN;
CCI_1.HideBubble();
CCI_1.SetPaintingStrategy (PaintingStrategy.LINE);
###upsugnal.SetDefaultColor(Color.green);
CCI_1.SetLineWeight (3);
CCI_1.AssignValueColor(if CCI > CCI[3] then Color.CYAN else if CCI < CCI[3] then Color.PINK else CCI.Color("Normal"));
CCI.SetDefaultColor(GetColor(9));
CCI.DefineColor("OverBought", GetColor(1));
CCI.DefineColor("Normal", GetColor(7));
CCI.DefineColor("OverSold", Color.RED);
#CCI.AssignValueColor(if CCI > over_soldCCI then CCI.Color("OverBought") else if CCI < over_boughtCCI then CCI.Color("OverSold") else CCI.Color("Normal"));
CCI.AssignValueColor(if CCI > ZeroLine then CCI.Color("OverBought") else if CCI < ZeroLine then CCI.Color("OverSold") else CCI.Color("Normal"));
def mov_avg4_10 = ExpAverage( close(period = AggregationPeriod.TEN_MIN), superfast_length10);
#AccDistVolPr.SetDefaultColor(GetColor(1));####STUDY FOR MYWATCHLIST
#SET FOR 10 M
#LABEL3
#######
#######
AddLabel (yes, (("AL")), if AccDistVolPr > AccDistVolPr[1] and AccDistVolPr5 > AccDistVolPr5[5] and AccDistVolPr10 > AccDistVolPr10[10] and price > price[3] and FI > FI[3] and FI5 > FI5[5] and FI10 > FI10[10] and mov_avg4 > mov_avg4[3] and mov_avg4_5 > mov_avg4_5[5] and mov_avg4_10 > mov_avg4_10[10] then Color.GREEN else
if AccDistVolPr < AccDistVolPr[1] and AccDistVolPr5 < AccDistVolPr5[5] and AccDistVolPr10 < AccDistVolPr10[10] and price < price[3] and FI < FI[3] and FI5 < FI5[5] and FI10 < FI10[10] and mov_avg4 < mov_avg4[3] and mov_avg4_5 < mov_avg4_5[5] and mov_avg4_10 < mov_avg4_10[10] then Color.RED else Color.WHITE);
#AddLabel (yes, "/", Color.GRAY);
######
#######
AddLabel (yes, (("AL1")), if AccDistVolPr > AccDistVolPr[1] and price > price[3] and FI > FI[3] and mov_avg4 > mov_avg4[3] then Color.GREEN else
if AccDistVolPr < AccDistVolPr[1] and price < price[3] and FI < FI[3] and mov_avg4 < mov_avg4[3] then Color.RED else Color.WHITE);
#AddLabel (yes, "/", Color.GRAY);
######
#######
AddLabel (yes, (("AL3")), if AccDistVolPr3 > AccDistVolPr3[3] and price > price[3] and FI3 > FI3[3] and mov_avg4_3 > mov_avg4_3[3] then Color.GREEN else
if AccDistVolPr3 < AccDistVolPr3[3] and price < price[3] and FI3 < FI3[3] and mov_avg4_3 < mov_avg4_3[3] then Color.RED else Color.WHITE);
#AddLabel (yes, "/", Color.GRAY);
######
#######
AddLabel (yes, (("AL5")), if AccDistVolPr5 > AccDistVolPr5[5] and price > price[3] and FI5 > FI5[5] and mov_avg4_5 > mov_avg4_5[5] then Color.GREEN else
if AccDistVolPr3 < AccDistVolPr5[5] and price < price[3] and FI5 < FI5[5] and mov_avg4_5 < mov_avg4_5[5] then Color.RED else Color.WHITE);
#AddLabel (yes, "/", Color.GRAY);
######
#######
############## MIX LABELS AGG PERIODS #############################
AddLabel (yes, "/", Color.GRAY);
AddLabel (yes, ((" 0 ")), if price > price[3] and FI > FI[3] and FI > FI[6] and mov_avg4 > mov_avg4[1] then Color.CYAN else if price < price[3] and price < price[9] and FI < FI[3] and FI < FI[6] and mov_avg4 < mov_avg4[1] then CreateColor(255, 90, 19) else Color.GRAY);
##### ALL PLOT SQUARES ###########################
plot ALL = if price >= 0 then -120 else Double.NaN;
ALL.SetPaintingStrategy (PaintingStrategy.SQUARES);
ALL.AssignValueColor(if AccDistVolPr > AccDistVolPr[3] and close > close[3] and FI > FI[3] and FI > FI[6] and mov_avg4 > mov_avg4[3] then Color.CYAN else if AccDistVolPr < AccDistVolPr[3] and close < close[3] and close < close[6] and FI < FI[3] and FI < FI[6] and mov_avg4 < mov_avg4[3] then Color.RED else Color.GRAY);
#ALL3.SetLineWeight (3);
plot ALL3 = if price >= 0 then -140 else Double.NaN;
ALL3.SetPaintingStrategy (PaintingStrategy.SQUARES);
ALL3.AssignValueColor(if AccDistVolPr3 > AccDistVolPr3[3] and close > close[3] and FI3 > FI3[3] and mov_avg4_3 > mov_avg4_3[3] then Color.CYAN else if AccDistVolPr3 < AccDistVolPr3[3] and close < close[3] and close < close[3] and FI3 < FI3[3] and mov_avg4_3 < mov_avg4_3[3] then Color.RED else Color.GRAY);
#ALL3.SetLineWeight (3);
plot ALL5 = if price >= 0 then -160 else Double.NaN;
ALL5.SetPaintingStrategy (PaintingStrategy.SQUARES);
ALL5.AssignValueColor(if AccDistVolPr5 > AccDistVolPr5[5] and close > close[5] and FI5 > FI5[5] and mov_avg4_5 > mov_avg4_5[5] then Color.CYAN else if AccDistVolPr5 < AccDistVolPr5[5] and close < close[5] and close < close[10] and FI5 < FI5[5] and mov_avg4_5 < mov_avg4_5[5] then Color.RED else Color.GRAY);
#ALL3.SetLineWeight (3);
plot ALL10 = if price >= 0 then -180 else Double.NaN;
ALL10.SetPaintingStrategy (PaintingStrategy.SQUARES);
ALL10.AssignValueColor(if AccDistVolPr10 > AccDistVolPr10[10] and close > close[10] and FI10 > FI10[10] and FI10 > FI10[10] and mov_avg4_10 > mov_avg4_10[10] then Color.CYAN else if AccDistVolPr10 < AccDistVolPr10[10] and close < close[10] and close < close[20] and FI10 < FI10[10] and FI10 < FI10[10] and mov_avg4_10 < mov_avg4_10[10] then Color.RED else Color.GRAY);
#ALL3.SetLineWeight (3);
###AddLabel (yes, ((" 5. ")),if AccDistVolPr5 > AccDistVolPr5[5]and price > price[5] and FI5 > FI5[5] and FI5 > FI5[10] and mov_avg4_5 > mov_avg4_5[5] then Color.blue else if AccDistVolPr5 < AccDistVolPr5[5] and price < price[5] and price < price[10] and FI5 < FI5[5] and FI5 < FI5[10] and mov_avg4_5 < mov_avg4_5[5] then Color.white else Color.gray);
#####
AddLabel (yes, ((" 3 ")), if close > close[5] and FI3 > FI3[3] and FI3 > FI3[6] and mov_avg4_3 > mov_avg4_3[3] then Color.CYAN else if close < close[5] and FI3 < FI3[3] and FI3 < FI3[6] and mov_avg4_3 < mov_avg4_3[3] then CreateColor(255, 105, 19) else Color.GRAY);
#####
AddLabel (yes, ((" 5 ")), if close > close[5] and FI5 > FI5[5] and FI5 > FI5[10] and mov_avg4_5 > mov_avg4_5[5] then Color.CYAN else if close < close[5] and FI5 < FI5[5] and FI5 < FI5[10] and mov_avg4_5 < mov_avg4_5[5] then CreateColor(255, 125, 19) else Color.GRAY);
#def FI5 = ExpAverage(data = (close - close[1]) * volume, lengthF);
#def AccDistVolPr = AccumDist(high, close, low, open, volume);
#####
AddLabel (yes, ((" 10 ")), if close > close[10] and FI10 > FI10[10] and FI10 > FI10[20] and mov_avg4_10 > mov_avg4_10[10] then Color.CYAN else if close < close[10] and FI10 < FI10[10] and FI10 < FI10[20] and mov_avg4_10 < mov_avg4_10[10] then CreateColor(255, 145, 19) else Color.GRAY);
AddLabel (yes, ((" 15 ")), if close > close[15] and FI30 > FI30[15] and FI30 > FI30[30] and mov_avg4_30 > mov_avg4_30[15] then Color.CYAN else if close < close[15] and FI30 < FI30[15] and FI30 < FI30[30] and mov_avg4_30 < mov_avg4_30[15] then CreateColor(255, 165, 19) else Color.GRAY);
#AddLabel (yes, ((" 20 ")), if Close(period = AggregationPeriod.TWENTY_MIN) > Close(period = AggregationPeriod.TWENTY_MIN)[20] AND FI20 > FI20[20] AND mov_avg4_20 > mov_avg4_20[20] then Color.CYAN else if Close(period = AggregationPeriod.TWENTY_MIN) < Close(period = AggregationPeriod.TWENTY_MIN)[20] and FI20 < FI20[20] AND mov_avg4_20 < mov_avg4_20[20] then Color.DARK_ORANGE else Color.GRAY);
########################################
################### 1H ##################
###########################################
AddLabel (yes, ((" 1-H ")), if FI1h > FI1h[60] and mov_avg4_1h > mov_avg4_1h[60] then Color.CYAN else if FI1h < FI1h[60] and mov_avg4_1h < mov_avg4_1h[60] then Color.DARK_ORANGE else Color.GRAY);
works great on CL, but doesn't work for ES as the lines gets flat, I believe due the number 2680's ES carries, if there is a variable needs to be changed then it will be great, I am not a script programmer, if alagrande can fix that?
I figured out, it works only 3 min or less charts, you may need to adjust the angle. I cant post picture as I am new.
I trade PA( bar by bar), so it helps me confirm my readings. Great tool.