B
bubz
New member
VIP
@marine Thanks I will try that out.
no problem@marine Thanks I will try that out.
Yeah it didn't work. I will have to call to figure this out.@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.
Sorry guys if this was already answered, but would it be possible to add up and down arrow on the upper chart when the Laguerre RSI crosses oversold and overbought line?
# TheoTrade RSI in Laguerre Time Self Adjusting With Fractal Energy
# Mobius
# V03.06.15.2016
#Bwiz modified to paint arrows and adjust OB_OS values.
#04_26_20
#Inputs:
input nFE = 13;#hint nFE: length for Fractal Energy calculation.
# 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;
input OS = .2;
input OB = .8;
# 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
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;
plot isAbove = RSI crosses above OS;
plot isBelow = RSI crosses below OB;
isAbove.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
isBelow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
# End Code RSI_Laguerre Self Adjusting with Fractal Energy
Hey Mansor,Guys - This thread has too many pages to go through, and too many variations of the script. Can anyone please advice which version works for 1min1day with accuracy. Thank you all in advance!
@J007RMC - it didn't quote the original reply for some reason - I'm referring to RSI_Laguerre_Lines_wTargetsHi @J007RMC
Is there a a separate thread for this? I have questions which I'm sure would already have been answered if there is.
Thanks
-J
declare lower;
#Inputs:
input nFE = 8;#hint nFE: length for Fractal Energy calculation.
input AlertOn = no;
input Glength = 13;
input betaDev = 8;
input length = 14;
input price = close;
input averageType = AverageType.WILDERS;
input showBreakoutSignals = no;
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;
def data = chgratio;
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;
# Calculations
o = (Go + Gc[1]) / 2;
h = Max(Gh, Gc[1]);
l = Min(Gl, Gc[1]);
c = (o + h + l + Gc) / 4;
plot gamma =2* (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;
}
@martyrjohn add this to the bottom of your study. That's the arrow part of the study. Someone else will have to assist w scan for you, unless you find the scans that exist in other threads. There are a few...Is there a way to make an up arrow and scanner on a chart when the RSI line is hooking out of oversold territory and the fractal is starting to go up?
@J-Fearless Check the Tutorials and the similar threads at the page bottom.@J007RMC - it didn't quote the original reply for some reason - I'm referring to RSI_Laguerre_Lines_wTargets
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
D | RSI Laguerre Indicator without Fractal Energy, Red/Green | Questions | 19 | |
RSI in Laguerre Time Self Adjusting With Fractal Energy Usage Notes | Tutorials | 50 | ||
T | RSI in Laguerre Time MTF for ThinkorSwim | Indicators | 49 | |
Need help with TTM Trend and RSI Laguerre strategy | Questions | 5 | ||
TMO or RSI in Laguerre Time with FE - Q&A | Tutorials | 26 |