Join useThinkScript to post your question to a community of 21,000+ developers and traders.
I use the default but have tried others. My settings are 8.13,8. A while back I put 3 RSILg's in lowers to compare them. That's the best way to see the diff on multiple time frames. The beta deviation can make good and bad changes as I understand it.@markos Have you played with the settings in the RSI Lagurre...Or are you using the default...
Mostly daily time-frame but will use hourly at times for a different point of view.Are you using 15 minute chart primarily?
RSILg | def BuySignal = RSI crosses above .10 and gamma < .382; | def BuySignal = RSI crosses above .10 and gamma > .60; | |||||||||
def SellSignal = RSI crosses below .90 and gamma < .382; | def SellSignal = RSI crosses below .90 and gamma > .60; | ||||||||||
3200 Tick | 3200 Tick | ||||||||||
Date | Profit/Loss | Date | Profit/Loss | ||||||||
4-Mar | $20.00 | 1 Hr 90 days | 4-Mar | $1,920.00 | 1 Hr 90 days | ||||||
11-Mar | $2,000.00 | ($10,460.00) | 11-Mar | $2,350.00 | $5,690.00 | ||||||
18-Mar | $650.00 | 18-Mar | ($990.00) | ||||||||
25-Mar | $850.00 | 4 Hr 180 days | 25-Mar | ($1,430.00) | 4 Hr 180 days | ||||||
1-Apr | $2,810.00 | $3,070.00 | 1-Apr | ($2,500.00) | ($3,460.00) | ||||||
8-Apr | $350.00 | 8-Apr | ($1,770.00) | ||||||||
15-Apr | $360.00 | 1 day 1yr | 15-Apr | $270.00 | 1 day 1yr | ||||||
22-Apr | ($2,810.00) | $16,170.00 | 22-Apr | ($1,780.00) | ($1,840.00) | ||||||
29-Apr | $890.00 | 29-Apr | ($1,020.00) | ||||||||
6-May | ($1,860.00) | 1 day 5yr | 6-May | $920.00 | 1 day 5yr | ||||||
13-May | $1,140.00 | $39,620.00 | 13-May | $1,580.00 | ($37,450.00) | ||||||
22-May | $1,680.00 | 22-May | ($2,840.00) | ||||||||
27-May | ($2,300.00) | 3 day 5yr | 27-May | $3,650.00 | 3 day 5yr | ||||||
3-Jun | ($3,210.00) | ($29,970.00) | 3-Jun | $80.00 | ($1,040.00) | ||||||
10-Jun | ($1,580.00) | 10-Jun | $1,660.00 | ||||||||
17-Jun | $610.00 | 1 wk 10 yr | 17-Jun | $1,380.00 | 1 wk 10 yr | ||||||
24-Jun | ($3,530.00) | ($16,900.00) | 24-Jun | ($3,440.00) | $17,880.00 | ||||||
1-Jul | $670.00 | 1-Jul | ($730.00) | ||||||||
8-Jul | $750.00 | 8-Jul | $4,260.00 | ||||||||
15-Jul | $0.00 | 15-Jul | $630.00 | ||||||||
($2,510.00) | $2,200.00 | ||||||||||
Yes, the upper study is older. Archive it.Hey @markos, was wondering if there were any updates to the script posted? The current RSI script I'm using looks a bit outdated and was curious to what the changes were made.
So far it looks like the overbought/sold boxes are flipped and the FE looks a bit different. I like how the new FE is moving so will be switching over to the updated code. I think the current code I'm using is from the Theo trades videos and that could be where the discrepancy in the codes are from.
declare lower;
input compBars = 6;
input paintBars = no;
input RSI_BullishTrigger = .2;
input RSI_BearishTrigger = .8;
input soundBullAlerts = no; ## 5.15.2018 new code
input soundBearAlerts = no; ## 5.15.2018 new code
input nFE = 13;#hint nFE: length for Fractal Energy calculation.
input length = 14;
input calcLength = 5;
input smoothLength = 3;
def o = open;
def c = close;
def data = fold i = 0 to length
with s
do s + (if c > GetValue(o, i)
then 1
else if c < GetValue(o, i)
then - 1
else 0);
def EMA5 = ExpAverage(data, calcLength);
def Main = ExpAverage(EMA5, smoothLength);
def Signal = ExpAverage(Main, smoothLength);
# Variables:
def oh;
def h;
def l;
def ch;
def CU1;
def CU2;
def CU;
def CD1;
def CD2;
def CD;
def L0;
def L1;
def L2;
def L3;
def RSI;
def OS;
def OB;
def TrendUp = Double.NaN;
def TrendDown = Double.NaN;
# Calculations
oh = (open + close[1]) / 2;
h = Max(high, close[1]);
l = Min(low, close[1]);
ch = (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.YELLOW);
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;
OS = if IsNaN(close) then Double.NaN else 0.2;
OB = if IsNaN(close) then Double.NaN else 0.8;
def data1 = (RSI > RSI_BearishTrigger) or ((RSI >= RSI[1]) and (RSI > RSI_BullishTrigger));
def data2 = (RSI < RSI_BullishTrigger) or ((RSI < RSI[1]) and (RSI < RSI_BearishTrigger));
def data3 = trenddown is true;
def data4 = trendup is true;
plot x = (Main > Signal) and (RSI > RSI_BearishTrigger) or ((RSI >= RSI[1]) and (RSI > RSI_BullishTrigger)) and (trendup is true);
plot q = (Main < Signal) and (RSI < RSI_BullishTrigger) or ((RSI < RSI[1]) and (RSI < RSI_BearishTrigger)) and (trenddown is true);
@BenTen@markos I just fixed the formatting for you.
When you insert a code use at the beginning and at the end of the code block.
How to save this Grid Code. Im able to see the Grid from link. But not sure how to save it.Grid Code: https://tos.mx/LldzdS
with the new update 1960 released this weekend they finally have figured out how to put the name of the grid on the chart similar to how it is in the style settings now, once you name your grid it will appear to the left of the grid box where the red circle (above) is showing the grid box. currently the name will be right next to it, this is one of the best additions added recently which I asked for at least 5 years ago and multiple times after that as well, at least we have it now.
Thanks @BenTenwith the new update 1960 released this weekend they finally have figured out how to put the name of the grid on the chart similar to how it is in the style settings now, once you name your grid it will appear to the left of the grid box where the red circle (above) is showing the grid box. currently the name will be right next to it, this is one of the best additions added recently which I asked for at least 5 years ago and multiple times after that as well, at least we have it now.
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.