RSI in Laguerre Time with Fractal Energy - Momentum/Trend Indicator

J007RMC

J007RMC

Active member
2019 Donor
VIP
Gaussian Laguerre that works on mobile finally.


Applied Gaussian RSI Laguerre to AlphaInvestors input selectable Volatility Measure
Gaussian Filtered Price and Volatility RSI in Laguerre Time
Code:
# Mobius Gaussian RSI Laguerre
# Nube applied Gaussian RSI Laguerre to AlphaInvestors input selectable Volatility Measure
# Gaussian Filtered Price and Volatility RSI in Laguerre Time
# 4.24.18
# https://tos.mx/hbY7BG
# Correct poor alternate aggregation logic - now works on mobile
# 4.24.18
# https://tos.mx/OCPIDa
# IV now recursive
# 4.25.18
declare lower;
input length      = 4;
input whichVix = {default "VixFix", "ATR", "IV"};
input altVixAgg = no;
input VixAgg = AggregationPeriod.Five_Min;
input Cloud = no;
input Alerts      = yes;
def na = Double.NaN;
# Mobius Gaussian Filter
# Nube changed to use length input as a filter length setting
script p {
input data = close;
input length = 20;
def w = (2 * Double.Pi / length);
def beta = (1 - Cos(w)) / (Power(1.414, 2.0 / length) - 1);
def alpha = (-beta + Sqrt(beta * beta + 2 * beta));
    def a = Power(alpha, 4) * data + 4 * (1 - alpha) * a[1] - 6 * Power(1 - alpha, 2) * a[2] + 4 * Power(1 - alpha, 3) * a[3] - Power(1 - alpha, 4) * a[4];
    plot line = a;
}
def o = p(open, length);
def h = p(high, length);
def l = p(low, length);
def c = p(close, length);
def aggregation = if   altVixAgg
then VixAgg
                  else GetAggregationPeriod();
def vo = p(open(period = aggregation), Length = Length);
def vl = p(low(period = aggregation), Length = Length);
def vh = p(high(period = aggregation), Length = Length);
def vc = p(close(period = aggregation), Length = Length);
# Sometimes impl_volatility data is voidish
def ImpliedVol = if !IsNaN(imp_volatility(period = aggregation))
then imp_volatility(period = aggregation)
                 else ImpliedVol[1];
def Vix;
switch (whichVix) {
case "VixFix":
Vix = (Highest(vc, length) - vl) / (Highest(vc, length));
case "ATR":
Vix = Average(TrueRange(vh, vc, vl), length);
case "IV":
    Vix = ImpliedVol;
}
# Mobius Fractal Energy Equation
def gamma = Log(Sum(Max(h, c[1]) - Min(l, c[1]), length) /
(Highest(h, length) - Lowest(l, length))) /
Log(length);
# end Mobius Fractal Energy Equation
# RSI in Laguerre Time Self Adjusting With Fractal Energy
# Mobius
# V02.07.2014
# Variables:
def CU1;
def CU2;
def CU;
def CD1;
def CD2;
def CD;
def L0;
def L1;
def L2;
def L3;
plot RSI;
# Calculations
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(CreateColor(225, 225, 175));

def vCU1;
def vCU2;
def vCU;
def vCD1;
def vCD2;
def vCD;
def vL0;
def vL1;
def vL2;
def vL3;
    plot vRSI;
# Calculations
    vL0 = (1 – gamma) * Vix + gamma * vL0[1];
vL1 = -gamma * vL0 + vL0[1] + gamma * vL1[1];
vL2 = -gamma * vL1 + vL1[1] + gamma * vL2[1];
vL3 = -gamma * vL2 + vL2[1] + gamma * vL3[1];
if vL0 >= vL1
then {
vCU1 = vL0 - vL1;
vCD1 = 0;
} else {
vCD1 = vL1 - vL0;
vCU1 = 0;
}
if vL1 >= vL2
then {
vCU2 = vCU1 + vL1 - vL2;
vCD2 = vCD1;
} else {
vCD2 = vCD1 + vL2 - vL1;
vCU2 = vCU1;
}
if vL2 >= vL3
then {
vCU = vCU2 + vL2 - vL3;
vCD = vCD2;
} else {
vCU = vCU2;
vCD = vCD2 + vL3 - vL2;
}
        vRSI = if vCU + vCD <> 0 then vCU / (vCU + vCD) else 0;
        vRSI.SetDefaultColor(CreateColor(225, 125, 125));
        AddCloud(If(Cloud, RSI, na), vRSI,
CreateColor(40, 100, 40), CreateColor(120, 40, 40));
        Alert(Alerts && RSI crosses below vRSI,
" Cross Below ", Alert.ONCE, Sound.Chimes);
Alert(Alerts && RSI crosses above vRSI,
" Crosses Above ", Alert.ONCE, Sound.Chimes);

# f/ Gaussian Filtered Price and Volatility RSI in Laguerre Time
 
Last edited:
D

d1david

New member
VIP
@horserider how did you get the price bars to change colors like that?
 
horserider

horserider

Well-known member
VIP
@d1david Post 134 ? Most likely RSI colored candles but do not remember exactly.
 
K

Ken_Adams

New member
@markos I have been diving into Laguerre RSI since I read your post and it’s been fun. Thanks for sharing.

Having a could problems that I would love input on. User error on my end due to lack of knowledge of thinkscript.
I turned the code into a strategy and also added plots on the charts to see and it doesnt look like the scan and plot match. What’s my issue?

How far does the scan look back?

Also I have been checking the scan against the lower study can’t figure out why the scan picks up certain tickers. I would hope to see one of my plots aligned with the scan but haven’t.

Lastly, want to send a text alert to my phone when one of my plots is added to the chart. Is that possible?

Otherwise the the P/L looks interesting. Thanks for all your time with this.
 
markos

markos

Well-known member
VIP
@Ken_Adams welcome to useThinkscript.com, I'm glad you're here!
If you have read all 10 pages of this thread, I absolutely applaud you!
Also, please look below, at the bottom of the page as there are more threads that will help you place things together. I have posted several threads into the tutorial section and many people have added their excellent thoughts.

What is the primary timeframe that you would like to use this indicator on? It works on any and all TF's but it will help anyone that could help.
Are you learning options trading through a service? If so, do you mind saying which service? That information may also help us help you.

My time here has been very short lately due to work overload. Please piece out your question above by using pictures and posting the code you are using so all here can compare what you are doing and seeing with what the results that they have.

There are a number of great people on this site that can help you if I am away from the site for a period of time. useThinkscript is worldwide and I'm glad to have been part of it's growth.

To post a picture go to Imgur.com, posting is free there, you just need to click on the three dots on the right-hand side of the picture and choose BB Code and then paste that code directly here.
Once your picture and code are posted here we will have a better picture of how best to assist you.

Little piece of advice, please learn from just one chart type and code type until you get better at using this indicator. There is a lot of nuance to it. Markos
 
Last edited:
A

amalia

New member
@J007RMC a little background info. jcseattle spends most of his days and evenings trading /YM. What I don't know is if he used this study for that.
anywho, thought you might like to know that the indicator was probably built with short term trading in mind. Hopefully it's helpful, otherwise useless trivia...
Spot on ;)
 
B

boogz101

New member
VIP
Gaussian Laguerre that works on mobile finally.


Applied Gaussian RSI Laguerre to AlphaInvestors input selectable Volatility Measure
Gaussian Filtered Price and Volatility RSI in Laguerre Time
Code:
# Mobius Gaussian RSI Laguerre
# Nube applied Gaussian RSI Laguerre to AlphaInvestors input selectable Volatility Measure
# Gaussian Filtered Price and Volatility RSI in Laguerre Time
# 4.24.18
# https://tos.mx/hbY7BG
# Correct poor alternate aggregation logic - now works on mobile
# 4.24.18
# https://tos.mx/OCPIDa
# IV now recursive
# 4.25.18
declare lower;
input length      = 4;
input whichVix = {default "VixFix", "ATR", "IV"};
input altVixAgg = no;
input VixAgg = AggregationPeriod.Five_Min;
input Cloud = no;
input Alerts      = yes;
def na = Double.NaN;
# Mobius Gaussian Filter
# Nube changed to use length input as a filter length setting
script p {
input data = close;
input length = 20;
def w = (2 * Double.Pi / length);
def beta = (1 - Cos(w)) / (Power(1.414, 2.0 / length) - 1);
def alpha = (-beta + Sqrt(beta * beta + 2 * beta));
    def a = Power(alpha, 4) * data + 4 * (1 - alpha) * a[1] - 6 * Power(1 - alpha, 2) * a[2] + 4 * Power(1 - alpha, 3) * a[3] - Power(1 - alpha, 4) * a[4];
    plot line = a;
}
def o = p(open, length);
def h = p(high, length);
def l = p(low, length);
def c = p(close, length);
def aggregation = if   altVixAgg
then VixAgg
                  else GetAggregationPeriod();
def vo = p(open(period = aggregation), Length = Length);
def vl = p(low(period = aggregation), Length = Length);
def vh = p(high(period = aggregation), Length = Length);
def vc = p(close(period = aggregation), Length = Length);
# Sometimes impl_volatility data is voidish
def ImpliedVol = if !IsNaN(imp_volatility(period = aggregation))
then imp_volatility(period = aggregation)
                 else ImpliedVol[1];
def Vix;
switch (whichVix) {
case "VixFix":
Vix = (Highest(vc, length) - vl) / (Highest(vc, length));
case "ATR":
Vix = Average(TrueRange(vh, vc, vl), length);
case "IV":
    Vix = ImpliedVol;
}
# Mobius Fractal Energy Equation
def gamma = Log(Sum(Max(h, c[1]) - Min(l, c[1]), length) /
(Highest(h, length) - Lowest(l, length))) /
Log(length);
# end Mobius Fractal Energy Equation
# RSI in Laguerre Time Self Adjusting With Fractal Energy
# Mobius
# V02.07.2014
# Variables:
def CU1;
def CU2;
def CU;
def CD1;
def CD2;
def CD;
def L0;
def L1;
def L2;
def L3;
plot RSI;
# Calculations
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(CreateColor(225, 225, 175));

def vCU1;
def vCU2;
def vCU;
def vCD1;
def vCD2;
def vCD;
def vL0;
def vL1;
def vL2;
def vL3;
    plot vRSI;
# Calculations
    vL0 = (1 – gamma) * Vix + gamma * vL0[1];
vL1 = -gamma * vL0 + vL0[1] + gamma * vL1[1];
vL2 = -gamma * vL1 + vL1[1] + gamma * vL2[1];
vL3 = -gamma * vL2 + vL2[1] + gamma * vL3[1];
if vL0 >= vL1
then {
vCU1 = vL0 - vL1;
vCD1 = 0;
} else {
vCD1 = vL1 - vL0;
vCU1 = 0;
}
if vL1 >= vL2
then {
vCU2 = vCU1 + vL1 - vL2;
vCD2 = vCD1;
} else {
vCD2 = vCD1 + vL2 - vL1;
vCU2 = vCU1;
}
if vL2 >= vL3
then {
vCU = vCU2 + vL2 - vL3;
vCD = vCD2;
} else {
vCU = vCU2;
vCD = vCD2 + vL3 - vL2;
}
        vRSI = if vCU + vCD <> 0 then vCU / (vCU + vCD) else 0;
        vRSI.SetDefaultColor(CreateColor(225, 125, 125));
        AddCloud(If(Cloud, RSI, na), vRSI,
CreateColor(40, 100, 40), CreateColor(120, 40, 40));
        Alert(Alerts && RSI crosses below vRSI,
" Cross Below ", Alert.ONCE, Sound.Chimes);
Alert(Alerts && RSI crosses above vRSI,
" Crosses Above ", Alert.ONCE, Sound.Chimes);

# f/ Gaussian Filtered Price and Volatility RSI in Laguerre Time
This is beautiful!! Thank you!
 
K

Ken_Adams

New member
@Ken_Adams welcome to useThinkscript.com, I'm glad you're here!
If you have read all 10 pages of this thread, I absolutely applaud you!
Also, please look below, at the bottom of the page as there are more threads that will help you place things together. I have posted several threads into the tutorial section and many people have added their excellent thoughts.

What is the primary timeframe that you would like to use this indicator on? It works on any and all TF's but it will help anyone that could help.
Are you learning options trading through a service? If so, do you mind saying which service? That information may also help us help you.

My time here has been very short lately due to work overload. Please piece out your question above by using pictures and posting the code you are using so all here can compare what you are doing and seeing with what the results that they have.

There are a number of great people on this site that can help you if I am away from the site for a period of time. useThinkscript is worldwide and I'm glad to have been part of it's growth.

To post a picture go to Imgur.com, posting is free there, you just need to click on the three dots on the right-hand side of the picture and choose BB Code and then paste that code directly here.
Once your picture and code are posted here we will have a better picture of how best to assist you.

Little piece of advice, please learn from just one chart type and code type until you get better at using this indicator. There is a lot of nuance to it. Markos
Thanks for your time and the effort you have put into this thread.

Sorry for my late response.

I TRY to swing trade, due to lack of time, but always find myself looking at lower time frames. Maybe due to FOMO(fear of missing out) Finally removed 1m and 5 min from my charts forcing me to look at bigger time frames, 1 hr, 4hr. Daily, weekly. Trade on my phone so limited with somethings.

Some of the indicators I have been using are:
(Don’t know their real names)

Swings
auto_fib @BenTen posted
Mama, FAMA crossover (3 ema, 8 ema)
LRSI with fractal energy
Suggestion for a Volume indicator?

Shorter term which I need not to trade lol

Market vol short term
Z score
Hi low lines
Hulling moving average
zscore

Have spent a lot of time listening to the tastytrade guys, and recently unsubscribed from optionplayers. Optionplayers is great. Much respect for Steve and the guys over there. They have something special going on. I was just undisciplined, lost more than I made, and stepped back to paper trade. hopefully will take one of their courses soon.

As for my scan and signals I mentioned, my codes were off. My fault.
 
T

Thomas

Active member
Thanks for your time and the effort you have put into this thread.

Sorry for my late response.

I TRY to swing trade, due to lack of time, but always find myself looking at lower time frames. Maybe due to FOMO(fear of missing out) Finally removed 1m and 5 min from my charts forcing me to look at bigger time frames, 1 hr, 4hr. Daily, weekly. Trade on my phone so limited with somethings.

Some of the indicators I have been using are:
(Don’t know their real names)

Swings
auto_fib @BenTen posted
Mama, FAMA crossover (3 ema, 8 ema)
LRSI with fractal energy
Suggestion for a Volume indicator?

Shorter term which I need not to trade lol

Market vol short term
Z score
Hi low lines
Hulling moving average
zscore

Have spent a lot of time listening to the tastytrade guys, and recently unsubscribed from optionplayers. Optionplayers is great. Much respect for Steve and the guys over there. They have something special going on. I was just undisciplined, lost more than I made, and stepped back to paper trade. hopefully will take one of their courses soon.

As for my scan and signals I mentioned, my codes were off. My fault.
Opinion: if you have time between building and testing indicators, please watch this. I as well as Doug had a chart with so many indicators but, I made a conscience decision to take em all off except volume, or MoneyFlow........and just read price........https://youtu.be/7sX9Ju1guww. My intention was only to suggest an easier way. I use a white chart with B&W candles......
 
K

Ken_Adams

New member
Opinion: if you have time between building and testing indicators, please watch this. I as well as Doug had a chart with so many indicators but, I made a conscience decision to take em all off except volume, or MoneyFlow........and just read price........https://youtu.be/7sX9Ju1guww. My intention was only to suggest an easier way. I use a white chart with B&W candles......
Thanks for the suggestion. Any recommendations on where to start? Video one? Lol

Truth is I have probably always just jumped from study to study looking for the holy grail, that isn't out there.
Knowing a little amount of information about a lot of stuff hasn't been working. Thanks for pointing out simplicity.
 
T

Thomas

Active member
Thanks for the suggestion. Any recommendations on where to start? Video one? Lol

Truth is I have probably always just jumped from study to study looking for the holy grail, that isn't out there.
Knowing a little amount of information about a lot of stuff hasn't been working. Thanks for pointing out simplicity.
Ken, although this is about indicators I will not be silent when I know what you are doing and how to fix it. I was there, Doug was there
but he fixed it, and I was just floored when I saw his first video explaining who he was. I've learned from Stockbee, Jesse Stine, and Doug.......I don't need anything more..........just look at charts,......find one or two confirming indicators,.....and something you can rely on to give you what you understand in the market,......I like NASI myself............self efficacy. Start here,.....move past the sales pitches,...listen...
in fact, he was mentioning, "holy grail,".....hahahaha,......the books, "In the Zone," etc...all crap from failed traders,......you must look at charts, 1000's
before you understand.....it just takes a couple weeks......https://www.youtube.com/playlist?list=PLN2_zWunRO2KgnAHgluEmMgXa15WlyAMI
 
B

bdbald

New member
Hello,,,, One of you guys was kind enough to help me a lot with the code I will paste here for RSI LaGuerre. All it does is provide stocks that full scale oversold (= 0 ) I had the RSI set to 13 and 2-Hour bars. Could I please request your help to just reverse the logic and give full scale overbought (= 100) ? That sure would be appreciated. Here is the "oversold" code...... Thank you!! --------------

Code:
# Scan for RSI in Laguerre Time With Fractal Energy
# Mobius
# V02.07.2014
# V03.06.15.2016
#Scan
#Inputs:
input nFE = 13;
# 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;
def RSI;
# Calculations
o = (open + close[1]) / 2;
h = Max(high, close[1]);
l = Min(low, close[1]);
c = (o + h + l + close) / 4;
def gamma = Log(Sum((Max(high, close[1]) - Min(low, close[1])), nFE) /
(Highest(high, nFE) - Lowest(low, nFE)))
/ Log(nFE);
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
 
Last edited by a moderator:
T

TradeUp

Member
2019 Donor
@bdbald The last statement (if L1>=L2) shows invalid. Can you please double check and repost? Thank you for sharing.
 
H

hjc5812

New member
VIP
I love this indicator but have a question. Every time I shut down TOS and launch it again, this indicator never shows up in it's original space underneath the chart. I have to copy the script and paste it to create a new study and only then it will work. The old study will become red in color and won't be avaiable to use. I have to do this everytime I turn off tos and come back in. Has anybody have this issue?
 
markos

markos

Well-known member
VIP
@bdbald The last statement (if L1>=L2) shows invalid. Can you please double check and repost? Thank you for sharing.
@bdbald that is not the complete code. Please start over with the one in the first post on page 1. That has the correct code to do what you want to see.
 
markos

markos

Well-known member
VIP
I love this indicator but have a question. Every time I shut down TOS and launch it again, this indicator never shows up in it's original space underneath the chart. I have to copy the script and paste it to create a new study and only then it will work. The old study will become red in color and won't be avaiable to use. I have to do this everytime I turn off tos and come back in. Has anybody have this issue?
@hjc5812 2 things, get my original study from page 1 of this post and be sure to save the chart. If you still have trouble, please call this help number: 800-672-2098. Good luck. I'm not here often but someone can help further if you still need it.
 
B

bubz

New member
VIP
Anyone know if there is RSI Laguerre that works for Tick Charts?
 
M

marine

New member
Lifetime
@bubz this one work really good

Code:
# RSI-Laguerre Self Adjusting With Fractal Energy Gaussian Price Filter  # Mobius  # V01.12.2016
# Both Fractal Energy and RSI are plotted. RSI in cyan and FE in yellow. Look for trend exhaustion in the FE and a reversal of RSI or Price compression in FE and an RSI reversal.
# Rename Study to RSILg_FE_Gssn1 for compatability with Scanning
# Adjusted for compatability with scanner 7-14-19 Markos

declare lower;

#Inputs:
input nFE = 8;#hint nFE: length for Fractal Energy calculation.
input AlertOn = no;
input Glength  = 13;
input betaDev =  8;
input data = close;

def w = (2 * Double.Pi / Glength);
def beta = (1 - Cos(w)) / (Power(1.414, 2.0 / betaDev) - 1 );
def alpha = (-beta + Sqrt(beta * beta + 2 * beta));
def Go = Power(alpha, 4) * open +
             4 * (1 – alpha) * Go[1] – 6 * Power( 1 - alpha, 2 ) * Go[2] +
             4 * Power( 1 - alpha, 3 ) * Go[3] - Power( 1 - alpha, 4 ) * Go[4];
def Gh = Power(alpha, 4) * high +
             4 * (1 – alpha) * Gh[1] – 6 * Power( 1 - alpha, 2 ) * Gh[2] +
             4 * Power( 1 - alpha, 3 ) * Gh[3] - Power( 1 - alpha, 4 ) * Gh[4];
def Gl = Power(alpha, 4) * low +
             4 * (1 – alpha) * Gl[1] – 6 * Power( 1 - alpha, 2 ) * Gl[2] +
             4 * Power( 1 - alpha, 3 ) * Gl[3] - Power( 1 - alpha, 4 ) * Gl[4];
def Gc = Power(alpha, 4) * data +
             4 * (1 – alpha) * Gc[1] – 6 * Power( 1 - alpha, 2 ) * Gc[2] +
             4 * Power( 1 - alpha, 3 ) * Gc[3] - Power( 1 - alpha, 4 ) * Gc[4];
# 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;
plot OS;
plot OB;
plot M;

# Calculations
o = (Go + Gc[1]) / 2;
h = Max(Gh, Gc[1]);
l = Min(Gl, Gc[1]);
c = (o + h + l + Gc) / 4;
plot gamma = Log(Sum((Max(Gh, Gc[1]) - Min(Gl, Gc[1])), nFE) /
        (Highest(gh, nFE) - Lowest(Gl, nFE)))
            / Log(nFE);
gamma.SetDefaultColor(Color.Yellow);
L0 = (1 – gamma) * Gc + 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(c) then Double.NaN else 0.2;
OS.SetDefaultColor(Color.RED);
OS.HideBubble();
OS.HideTitle();
OB = if IsNaN(c) then Double.NaN else 0.8;
OB.SetDefaultColor(Color.GREEN);
OB.HideBubble();
OB.HideTitle();
M = if IsNaN(c) then Double.NaN else 0.5;
M.SetStyle(Curve.long_dash);
M.SetDefaultColor(Color.Gray);
M.HideBubble();
M.HideTitle();
plot FEh = if isNaN(c) then double.nan else .618;
FEh.SetStyle(Curve.short_DASH);
FEh.HideBubble();
FEh.SetDefaultColor(Color.GRAY);
FEh.HideTitle();
plot FEl = if isNaN(c) then double.nan else .382;
FEl.SetStyle(Curve.short_DASH);
FEl.SetDefaultColor(Color.GRAY);
FEl.HideBubble();
FEl.HideTitle();
AddCloud(0, OS, Color.RED, Color.RED);
AddCloud(OB, 1, Color.Green, Color.Green);
Alert(AlertOn and RSI crosses below .8, "", Alert.BAR, Sound.Bell);
Alert(AlertOn and RSI crosses above .2, "", Alert.BAR, Sound.Bell);

# End Code RSI_Laguerre Self Adjusting with Fractal Energy
 
Last edited by a moderator:
J007RMC

J007RMC

Active member
2019 Donor
VIP
I have not had a laguerre work with tick charts.
 

Similar threads

Top