NexusFi: Find Your Edge


Home Menu

 





RSI_CCI MULTI TIME FRAME (make money)


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one alagrande with 16 posts (26 thanks)
    2. looks_two astortx with 6 posts (1 thanks)
    3. looks_3 alexguate with 4 posts (0 thanks)
    4. looks_4 plastictrees with 3 posts (1 thanks)
    1. trending_up 16,227 views
    2. thumb_up 28 thanks given
    3. group 22 followers
    1. forum 39 posts
    2. attach_file 1 attachments




 
Search this Thread

RSI_CCI MULTI TIME FRAME (make money)

  #11 (permalink)
 alexguate 
Nashville
 
Experience: Beginner
Platform: TOS
Trading: Emini
Posts: 8 since Apr 2018
Thanks Given: 3
Thanks Received: 1


alagrande View Post
HAHA LOL, just practice with paper money or ONDEMAND, and you have to learn it on your own, i tell you this is a super great indicator!

Sadly i do not have any extra time to make a guide for it.
Play with it and you will get it.

I'm using it on demand, keep me post incase you update it! Cheers

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Ninja Mobile Trader VPS (ninjamobiletrader.com)
Trading Reviews and Vendors
Exit Strategy
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #12 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88


alexguate View Post
I'm using it on demand, keep me post incase you update it! Cheers

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.

Reply With Quote
Thanked by:
  #13 (permalink)
simonxda
Singapore
 
Posts: 6 since Oct 2017
Thanks Given: 0
Thanks Received: 0


Thank you for the latest version..
It work great for me. That is why I ask if you have a blog on the write up or usage.
Hope to see more of your work.

Reply With Quote
  #14 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88


simonxda View Post
Thank you for the latest version..
It work great for me. That is why I ask if you have a blog on the write up or usage.
Hope to see more of your work.

THANK YOU MUCH!
Here is the latest version.
I have added Force Index to the mix, i hope it helps you making tons of $$$$




#CODE...


######RSI_CCI_FI_MTF_V2.3########
#DESIGNED BY m0biledev ([email protected]) 3-3-18
declare lower;

input length = 4;#4
input over_Bought = 50;#70
input over_Sold = 20;
input price = close;
input averageType = AverageType.WILDERS;
#input aggregationPeriod1H = AggregationPeriod.HOUR;

#################
#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 NetChgAvg = MovingAverage(averageType, price - price[1], length);
def TotChgAvg = MovingAverage(averageType, AbsValue(price - price[1]), length);

def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;
plot RSI = 70 * (ChgRatio + 1);
RSI.HideBubble();


#plot OverSold = over_Sold;
#plot OverBought = over_Bought;
#RSI.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);




RSI.DefineColor("OverBought", Color.GREEN);
RSI.DefineColor("Normal", Color.PINK);
RSI.DefineColor("OverSold", Color.RED);
#RSI.AssignValueColor(if RSI > over_Bought then RSI.Color("OverBought") else if RSI < over_Sold then RSI.Color("OverSold") else RSI.Color("Normal"));
RSI.AssignValueColor(if RSI > over_Bought then RSI.Color("OverBought") else if RSI < over_Sold then RSI.Color("OverSold") else RSI.Color("Normal"));
#OverSold.SetDefaultColor(GetColor(8));
#OverBought.SetDefaultColor(GetColor(8));
RSI.SetLineWeight (1);

#plot DL = 100;
#DL.HideBubble();
#DL.SetDefaultColor(Color.WHITE);
#DL.SetLineWeight(1);

###############5MIN##############################################
#input averageType = AverageType.WILDERS;
def NetChgAvg5 = MovingAverage(averageType, close(period = AggregationPeriod.FIVE_MIN) - close(period = AggregationPeriod.FIVE_MIN)[1], length);
def TotChgAvg5 = MovingAverage(averageType, AbsValue(close(period = AggregationPeriod.FIVE_MIN) - close(period = AggregationPeriod.FIVE_MIN)[1]), length);

def ChgRatio5 = if TotChgAvg5 != 0 then NetChgAvg5 / TotChgAvg5 else 0;
plot RSI5 = 60 * (ChgRatio + 1);
RSI5.HideBubble();




###############################################
###########################10MIN###############
input length15 = 4;
input over_Bought15 = 70;
input over_Sold15 = 30;
input averageType15 = AverageType.WILDERS;

def NetChgAvg15 = MovingAverage(averageType15, close(period = AggregationPeriod.TEN_MIN) - close(period = AggregationPeriod.TEN_MIN)[1], length15);
def TotChgAvg15 = MovingAverage(averageType15, AbsValue(close(period = AggregationPeriod.TEN_MIN) - close(period = AggregationPeriod.TEN_MIN)[1]), length15);

def ChgRatio15 = if TotChgAvg15 != 0 then NetChgAvg15 / TotChgAvg15 else 0;
plot RSI15 = 70 * (ChgRatio15 + 1);
RSI15.HideBubble();

#plot RSI_10 = if close >= 0 then -240 else Double.NaN;
#RSI_10.HideBubble();
#RSI_10.SetPaintingStrategy (PaintingStrategy.squares);

#RSI_10.SetLineWeight (1);
#RSI_10.AssignValueColor(if RSI15 > over_Bought then RSI15.Color("OverBought") else if RSI15 < over_Sold then RSI15.Color("OverSold") else RSI15.Color("Normal"));


RSI15.DefineColor("OverBought", Color.YELLOW);
DefineGlobalColor("FillColor", Color.GRAY);#CreateColor(192, 192, 208));


RSI15.DefineColor("Normal", GlobalColor("FillColor" ));#GetColor(7));
RSI15.DefineColor("OverSold", Color.DARK_ORANGE);
RSI15.AssignValueColor(if RSI15 > over_Bought15 then RSI15.Color("OverBought") else if RSI15 < over_Sold15 then RSI15.Color("OverSold") else RSI15.Color("Normal"));
#OverSold15.SetDefaultColor(GetColor(8));
#OverBought15.SetDefaultColor(GetColor(8));
RSI15.SetLineWeight (3);

###############################################


##################################################################
##################################################################
#######################CCI#######################################
input lengthCCI = 20;#14
input over_soldCCI = -100;
input over_boughtCCI = 100;


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.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);

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"));

OverSoldCCI.SetDefaultColor(GetColor(8));
OverBoughtCCI.SetDefaultColor(GetColor(8));
CCI.SetLineWeight (2);

OverBoughtCCI.SetDefaultColor(GetColor(9));
ZeroLine.SetDefaultColor(GetColor(9));
OverSoldCCI.SetDefaultColor(GetColor(9));


################################################################
###############################################################
###################################
##################################


#TEST_MULTI_TIME_V2
#input price = close;
input superfast_length = 5;
input superfast_20 = 5;#20
input fast_length = 13;#50
input slow_length = 11;#200


#Label 1
######################
#####################
input lengthF = 13;
def FI = ExpAverage(data = (close - close[1]) * volume, lengthF);
def AccDistVolPr = AccumDist(high, close, low, open, volume);
def mov_avg4 = ExpAverage( close, superfast_length);
#AccDistVolPr.SetDefaultColor(GetColor(1));
##@@@@@@@@@@@@@@@@@@@@@@@


#SET FOR 5 MIN
input lengthF3 = 13;
input superfast_length3 = 5;
input superfast_203 = 5;#20
input fast_length3 = 13;#50
input slow_length3 = 11;#200
#input displace = 0;


def FI3 = ExpAverage(data = (close(period = AggregationPeriod.THREE_MIN) - close(period = AggregationPeriod.THREE_MIN)[5]) * volume, lengthF3);

def AccDistVolPr3 = AccumDist(high(period = AggregationPeriod.THREE_MIN), close(period = AggregationPeriod.THREE_MIN), close(period = AggregationPeriod.FIVE_MIN), open(period = AggregationPeriod.THREE_MIN), volume);

def mov_avg4_3 = ExpAverage( close(period = AggregationPeriod.THREE_MIN), superfast_length3);


####STUDY FOR MYWATCHLIST
#SET FOR 5 MIN
input lengthF5 = 13;
input superfast_length5 = 5;
input superfast_205 = 5;#20
input fast_length5 = 13;#50
input slow_length5 = 11;#200
#input displace = 0;


def FI5 = ExpAverage(data = (close(period = AggregationPeriod.FIVE_MIN) - close(period = AggregationPeriod.FIVE_MIN)[5]) * volume, lengthF5);

def AccDistVolPr5 = AccumDist(high(period = AggregationPeriod.FIVE_MIN), close(period = AggregationPeriod.FIVE_MIN), close(period = AggregationPeriod.FIVE_MIN), open(period = AggregationPeriod.FIVE_MIN), volume);

def mov_avg4_5 = ExpAverage( close(period = AggregationPeriod.FIVE_MIN), superfast_length5);
#AccDistVolPr.SetDefaultColor(GetColor(1));


####STUDY FOR MYWATCHLIST
#SET FOR 10 M
input superfast_length10 = 5;
input superfast_2010 = 5;#20
input fast_length10 = 13;#50
input slow_length10 = 11;#200
input lengthF10 = 13;
#@@@@@@@@@@@@@@@@
#input price = close;

def FI10 = ExpAverage(data = (close(period = AggregationPeriod.TEN_MIN) - close(period = AggregationPeriod.TEN_MIN)[5]) * volume, lengthF10);
def AccDistVolPr10 = AccumDist(high(period = AggregationPeriod.TEN_MIN), close(period = AggregationPeriod.TEN_MIN), close(period = AggregationPeriod.TEN_MIN), open(period = AggregationPeriod.TEN_MIN), volume);

def mov_avg4_10 = ExpAverage( close(period = AggregationPeriod.TEN_MIN), superfast_length10);
#AccDistVolPr.SetDefaultColor(GetColor(1));####STUDY FOR MYWATCHLIST
#SET FOR 10 M

####################################################
#SET FOR 30 M
input superfast_length30 = 5;
input superfast_2030 = 5;#20
input fast_length30 = 13;#50
input slow_length30 = 11;#200
input lengthF30 = 13;
#

def FI30 = ExpAverage(data = (close(period = AggregationPeriod.FIFTEEN_MIN) - close(period = AggregationPeriod.FIFTEEN_MIN)[5]) * volume, lengthF30);

def AccDistVolPr30 = AccumDist(high(period = AggregationPeriod.FIFTEEN_MIN), close(period = AggregationPeriod.FIFTEEN_MIN), close(period = AggregationPeriod.FIFTEEN_MIN), open(period = AggregationPeriod.FIFTEEN_MIN), volume);

def mov_avg4_30 = ExpAverage( close(period = AggregationPeriod.FIFTEEN_MIN), superfast_length30);



####################################################
#SET FOR 30 M
input superfast_length20 = 5;
input superfast_2020 = 5;#20
input fast_length20 = 13;#50
input slow_length20 = 11;#200
input lengthF20 = 13;
#

def FI20 = ExpAverage(data = (close(period = AggregationPeriod.TWENTY_MIN) - close(period = AggregationPeriod.TWENTY_MIN)[5]) * volume, lengthF20);

def AccDistVolPr20 = AccumDist(high(period = AggregationPeriod.TWENTY_MIN), close(period = AggregationPeriod.TWENTY_MIN), close(period = AggregationPeriod.TWENTY_MIN), open(period = AggregationPeriod.TWENTY_MIN), volume);

def mov_avg4_20 = ExpAverage( close(period = AggregationPeriod.TWENTY_MIN), superfast_length20);



#SET FOR 1 hours######################################
input superfast_length1h = 5;
input superfast_201h = 5;#20
input fast_length1h = 13;#50
input slow_length1h = 11;#200
input lengthF1h = 13;
input aggregationPeriod1H = AggregationPeriod.HOUR;
#
#ExpAverage(close(period = AGGREGATIONPERIOD1H)
def FI1h = ExpAverage(data = (close(period = aggregationperiod.HOUR) - close(period = aggregationperiod.HOUR)) * volume, lengthF1h);

def AccDistVolPr1h = AccumDist(high(period = aggregationperiod.HOUR), close(period = aggregationperiod.HOUR), close(period = aggregationperiod.HOUR), open(period = aggregationperiod.HOUR), volume);

#def mov_avg4_1h = ExpAverage(close(period = AggregationPeriod.HOUR), superfast_length1h);
def mov_avg4_1h = ExpAverage(close(period = aggregationperiod.HOUR), superfast_length1h);

#@@@@@@@@@@@@@@@@@@@@@@@@@@@@

#SET FOR DAY######################################
input superfast_length1D = 5;
input superfast_201D = 5;#20
input fast_length1D = 13;#50
input slow_length1D = 11;#200
input lengthF1D = 13;
#

def FI1D = ExpAverage(data = (close(period = AggregationPeriod.DAY) - close(period = AggregationPeriod.DAY)) * volume, lengthF1D);

def AccDistVolPr1D = AccumDist(high(period = AggregationPeriod.DAY), close(period = AggregationPeriod.DAY), close(period = AggregationPeriod.DAY), open(period = AggregationPeriod.DAY), volume);

def mov_avg4_1D = ExpAverage( close(period = AggregationPeriod.DAY), superfast_length1D);

#@@@@@@@@@@@@@@@@@@@@@@@@@@@@


#@@!!#####$$$$$$$ all 0,5,10...

#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);

Alert( FI1h > FI1h[1] and mov_avg4_1h > mov_avg4_1h, "1hour", Alert.BAR, Sound.Ding );




#END CODE

Reply With Quote
  #15 (permalink)
 eparra 
San Jose CA/USA
 
Experience: Beginner
Platform: TradeStation
Trading: Emini ES
Posts: 1 since Apr 2018
Thanks Given: 0
Thanks Received: 0

Any chance someone could explain v2.2 or v2.3?

Thanks!

Reply With Quote
  #16 (permalink)
astortx
Austin, TX USA
 
Posts: 13 since Apr 2018
Thanks Given: 17
Thanks Received: 2

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?

Reply With Quote
  #17 (permalink)
cowspoo
chicago IL
 
Posts: 1 since Jun 2018
Thanks Given: 1
Thanks Received: 0

This doesn't work on TOS. I see the lower was created, but the box is blank and all the features say N/A.


Reply With Quote
  #18 (permalink)
astortx
Austin, TX USA
 
Posts: 13 since Apr 2018
Thanks Given: 17
Thanks Received: 2


cowspoo View Post
This doesn't work on TOS. I see the lower was created, but the box is blank and all the features say N/A.


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.

Reply With Quote
Thanked by:
  #19 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88


astortx View Post
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.

Hi am glad you have figure it out.

Here is a better study u need to try out, this is a lot better, i hope u make tons of $$$




declare lower;
#RSI_war_v3

input emaLength = 12;#6
input rsiLength = 14;


input nFE = 13;#hint nFE: length for Fractal Energy calculation.
input price = close;
# Variables:
def o;
def h;
def l;
def c;
def CU1;
def CU2;
def CU;
def CD1;
def CD2;
def CD;
def L0;
def L1;
def L2;
def L3;
plot RSI;
RSI.Hide();
RSI.HideBubble();
plot OS;
plot OB;

# Calculations
o = (open + close[1]) / 2;
h = Max(high, close[1]);
l = Min(low, close[1]);
c = (o + h + l + close) / 4;
plot gamma = Log(Sum((Max(high, close[1]) - Min(low, close[1])), nFE) /
(Highest(high, nFE) - Lowest(low, nFE)))
/ Log(nFE);
gamma.SetDefaultColor(Color.GRAY);
GAMMA.HideBubble();
GAMMA.HIDE();
gamma.AssignValueColor(if gamma < .4 then Color.RED else if gamma > .6 then Color.GREEN else Color.GRAY);
L0 = (1 – gamma) * c + gamma * L0[1];
L1 = -gamma * L0 + L0[1] + gamma * L1[1];
L2 = -gamma * L1 + L1[1] + gamma * L2[1];
L3 = -gamma * L2 + L2[1] + gamma * L3[1];
if L0 >= L1
then {
CU1 = L0 - L1;
CD1 = 0;
} else {
CD1 = L1 - L0;
CU1 = 0;
}
if L1 >= L2
then {
CU2 = CU1 + L1 - L2;
CD2 = CD1;
} else {
CD2 = CD1 + L2 - L1;
CU2 = CU1;
}
if L2 >= L3
then {
CU = CU2 + L2 - L3;
CD = CD2;
} else {
CU = CU2;
CD = CD2 + L3 - L2;
}

RSI = if CU + CD <> 0 then CU / (CU + CD) else 0;
RSI.SetDefaultColor(Color.CYAN);
OS = if IsNaN(close) then Double.NaN else 0.2;
OS.SetDefaultColor(Color.GRAY);
OS.HideBubble();
OS.HideTitle();
OB = if IsNaN(close) then Double.NaN else 0.8;
OB.SetDefaultColor(Color.GRAY);
OB.HideBubble();
OB.HideTitle();
plot FEh = if IsNaN(close) then Double.NaN else .618;
FEh.SetStyle(Curve.LONG_DASH);
FEh.HideBubble();
FEh.SetDefaultColor(Color.DARK_GRAY);
FEh.HideTitle();
plot FEl = if IsNaN(close) then Double.NaN else .382;
FEl.SetStyle(Curve.LONG_DASH);
FEl.SetDefaultColor(Color.DARK_GRAY);
FEl.HideBubble();
FEl.HideTitle();
AddCloud(0, OS, Color.GREEN, Color.RED);
AddCloud(OB, 1, Color.RED, Color.GREEN);
Alert(RSI crosses below .9, "", Alert.BAR, Sound.Ding);
Alert(RSI crosses above .1, "", Alert.BAR, Sound.Bell);

# End Code RSI_Laguerre Self Adjusting with Fractal Energy



##COLORED LINE ###########
def ema = ExpAverage(close, emaLength);
def netChgAvgS = ExpAverage(close - ema, rsiLength);
def totChgAvgS = ExpAverage(AbsValue(close - ema), rsiLength);
def chgRatioS = if totChgAvgS != 0 then netChgAvgS / totChgAvgS else 0;

plot SlowRSI = .5* (chgRatioS + 1);#70*
SlowRSI.HideBubble();
#SLOWRSI.HIDE();#############################

SlowRSI.AssignValueColor(if SlowRSI > SlowRSI[1] then Color.WHITE else if SlowRSI < SlowRSI[1] then Color.RED else Color.LIGHT_GRAY);
SlowRSI.SetLineWeight(2);
#################
##################

###GRAY LINE#######
input emaLength2 = 14;#2
input rsiLength2 = 9;#5

def ema2 = ExpAverage(close, emaLength2);
def netChgAvgS2 = ExpAverage(close - ema2, rsiLength2);
def totChgAvgS2 = ExpAverage(AbsValue(close - ema2), rsiLength2);
def chgRatioS2 = if totChgAvgS2 != 0 then netChgAvgS2 / totChgAvgS2 else 0;

plot SlowRSI2 = .7* (chgRatioS2 + .7);#90*
#SlowRSI2.Hide();#####################
SlowRSI2.setDefaultColor(color.gray);
SlowRSI2.HideBubble();

AddCloud(SlowRSI, SlowRSI2, Color.YELLOW, CreateColor(0, 153, 191));

# percentR ########
input lengthR = 14;
input over_Sold = .2;
input over_Bought = .8;

def highest = Highest(high, lengthR);
def divisor = highest - Lowest(low, lengthR);

plot "%R" = .01* if divisor equals 0 then 0 else 100 - 100 * (highest - close) / divisor;

"%R".DefineColor("OverBought", GetColor(1));
"%R".DefineColor("Normal", GetColor(7));
"%R".DefineColor("OverSold", GetColor(5));
"%R".AssignValueColor(if "%R" > over_Bought then "%R".color("OverBought") else if "%R" < over_Sold then "%R".color("OverSold") else "%R".color("Normal"));

#end code

Reply With Quote
Thanked by:
  #20 (permalink)
 plastictrees 
Dallas
 
Experience: Beginner
Platform: ninjatrader
Trading: crude cl
Posts: 5 since Aug 2016
Thanks Given: 0
Thanks Received: 1



alagrande View Post
Hi am glad you have figure it out.

Here is a better study u need to try out, this is a lot better, i hope u make tons of $$$




declare lower;
#RSI_war_v3

input emaLength = 12;#6
input rsiLength = 14;


input nFE = 13;#hint nFE: length for Fractal Energy calculation.
input price = close;
# Variables:
def o;
def h;
def l;
def c;
def CU1;
def CU2;
def CU;
def CD1;
def CD2;
def CD;
def L0;
def L1;
def L2;
def L3;
plot RSI;
RSI.Hide();
RSI.HideBubble();
plot OS;
plot OB;

# Calculations
o = (open + close[1]) / 2;
h = Max(high, close[1]);
l = Min(low, close[1]);
c = (o + h + l + close) / 4;
plot gamma = Log(Sum((Max(high, close[1]) - Min(low, close[1])), nFE) /
(Highest(high, nFE) - Lowest(low, nFE)))
/ Log(nFE);
gamma.SetDefaultColor(Color.GRAY);
GAMMA.HideBubble();
GAMMA.HIDE();
gamma.AssignValueColor(if gamma < .4 then Color.RED else if gamma > .6 then Color.GREEN else Color.GRAY);
L0 = (1 – gamma) * c + gamma * L0[1];
L1 = -gamma * L0 + L0[1] + gamma * L1[1];
L2 = -gamma * L1 + L1[1] + gamma * L2[1];
L3 = -gamma * L2 + L2[1] + gamma * L3[1];
if L0 >= L1
then {
CU1 = L0 - L1;
CD1 = 0;
} else {
CD1 = L1 - L0;
CU1 = 0;
}
if L1 >= L2
then {
CU2 = CU1 + L1 - L2;
CD2 = CD1;
} else {
CD2 = CD1 + L2 - L1;
CU2 = CU1;
}
if L2 >= L3
then {
CU = CU2 + L2 - L3;
CD = CD2;
} else {
CU = CU2;
CD = CD2 + L3 - L2;
}

RSI = if CU + CD <> 0 then CU / (CU + CD) else 0;
RSI.SetDefaultColor(Color.CYAN);
OS = if IsNaN(close) then Double.NaN else 0.2;
OS.SetDefaultColor(Color.GRAY);
OS.HideBubble();
OS.HideTitle();
OB = if IsNaN(close) then Double.NaN else 0.8;
OB.SetDefaultColor(Color.GRAY);
OB.HideBubble();
OB.HideTitle();
plot FEh = if IsNaN(close) then Double.NaN else .618;
FEh.SetStyle(Curve.LONG_DASH);
FEh.HideBubble();
FEh.SetDefaultColor(Color.DARK_GRAY);
FEh.HideTitle();
plot FEl = if IsNaN(close) then Double.NaN else .382;
FEl.SetStyle(Curve.LONG_DASH);
FEl.SetDefaultColor(Color.DARK_GRAY);
FEl.HideBubble();
FEl.HideTitle();
AddCloud(0, OS, Color.GREEN, Color.RED);
AddCloud(OB, 1, Color.RED, Color.GREEN);
Alert(RSI crosses below .9, "", Alert.BAR, Sound.Ding);
Alert(RSI crosses above .1, "", Alert.BAR, Sound.Bell);

# End Code RSI_Laguerre Self Adjusting with Fractal Energy



##COLORED LINE ###########
def ema = ExpAverage(close, emaLength);
def netChgAvgS = ExpAverage(close - ema, rsiLength);
def totChgAvgS = ExpAverage(AbsValue(close - ema), rsiLength);
def chgRatioS = if totChgAvgS != 0 then netChgAvgS / totChgAvgS else 0;

plot SlowRSI = .5* (chgRatioS + 1);#70*
SlowRSI.HideBubble();
#SLOWRSI.HIDE();#############################

SlowRSI.AssignValueColor(if SlowRSI > SlowRSI[1] then Color.WHITE else if SlowRSI < SlowRSI[1] then Color.RED else Color.LIGHT_GRAY);
SlowRSI.SetLineWeight(2);
#################
##################

###GRAY LINE#######
input emaLength2 = 14;#2
input rsiLength2 = 9;#5

def ema2 = ExpAverage(close, emaLength2);
def netChgAvgS2 = ExpAverage(close - ema2, rsiLength2);
def totChgAvgS2 = ExpAverage(AbsValue(close - ema2), rsiLength2);
def chgRatioS2 = if totChgAvgS2 != 0 then netChgAvgS2 / totChgAvgS2 else 0;

plot SlowRSI2 = .7* (chgRatioS2 + .7);#90*
#SlowRSI2.Hide();#####################
SlowRSI2.setDefaultColor(color.gray);
SlowRSI2.HideBubble();

AddCloud(SlowRSI, SlowRSI2, Color.YELLOW, CreateColor(0, 153, 191));

# percentR ########
input lengthR = 14;
input over_Sold = .2;
input over_Bought = .8;

def highest = Highest(high, lengthR);
def divisor = highest - Lowest(low, lengthR);

plot "%R" = .01* if divisor equals 0 then 0 else 100 - 100 * (highest - close) / divisor;

"%R".DefineColor("OverBought", GetColor(1));
"%R".DefineColor("Normal", GetColor(7));
"%R".DefineColor("OverSold", GetColor(5));
"%R".AssignValueColor(if "%R" > over_Bought then "%R".color("OverBought") else if "%R" < over_Sold then "%R".color("OverSold") else "%R".color("Normal"));

#end code

Thanks! trying it out now. does this work on all time frames?

Reply With Quote
Thanked by:




Last Updated on December 22, 2019


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts