Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
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)
Updated October 20, 2020
Top Posters
looks_one
alagrande
with 26 posts (23 thanks)
looks_two
tracer888
with 5 posts (3 thanks)
looks_3
FunTrade
with 2 posts (0 thanks)
looks_4
Big Mike
with 1 posts (7 thanks)
Best Posters
looks_one
tigertrader
with 11 thanks per post
looks_two
Big Mike
with 7 thanks per post
looks_3
alagrande
with 0.9 thanks per post
looks_4
tracer888
with 0.6 thanks per post
trending_up
15,820 views
thumb_up
50 thanks given
group
17 followers
forum
44 posts
attach_file
16 attachments
May 18th, 2020, 02:21 PM
glendale ca usa
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88
#histogram
declare lower;
input Channel_Length = 10; #10
input Average_Length = 20; #20, 11
input over_bought_1 = 60;
input over_bought_2 = 53;
input over_sold_1 = -60;
input over_sold_2 = -53;
input show_bubbles = yes;
input show_sec_bbls = no;
input show_alerts = yes;
def ap = hlc3;
def esa = ExpAverage(ap, Channel_Length);
def d = ExpAverage(AbsValue(ap - esa), Channel_Length);
def ci = (ap - esa) / (0.015 * d);
def tci = ExpAverage(ci, Average_Length);
def wt1 = tci;
def wt2 = SimpleMovingAvg(wt1, 2);
#plot zerobase =0;
#zerobase.setLineWeight(2);
#zerobase.setDefaultColor(color.white);
plot wt3 = (wt1 - wt2);
wt3.SetLineWeight(2);
wt3.SetDefaultColor(Color.YELLOW);
wt3.setStyle(1);
wt3.hide();
#---------------------------------
input length3 = 2;
input length3b =6;
input price = close;
input averageType = AverageType.WILDERS;
def NetChgAvg3 = MovingAverage(averageType, price - price[1], length3);
def TotChgAvg3 = MovingAverage(averageType, AbsValue(price - price[1]), length3b);
def ChgRatio3 = if TotChgAvg3 != 0 then NetChgAvg3 / TotChgAvg3 else 0;
plot RSI3 = 10 * (ChgRatio3 + 1) - 10;
rsi3.SETDefaultColor(color.WHITE);
rsi3.setLineWeight(2);
rsi3.hide();
input lengthr = 84;
#input price = close;
input averageType2 = AverageType.WILDERS;
def NetChgAvg = MovingAverage(averageType2, price - price[1], lengthr);
def TotChgAvg = MovingAverage(averageType2, AbsValue(price - price[1]), lengthr);
def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;
def RSI = 50 * (ChgRatio + 1)-50;
DEF RS = average(RSI, 2);
def RS_ = average(RS, 3);
#def all = (rs-rs_);
def diff = 6*(rs-rs_);
#diff.setDefaultColor(color.yellow);
plot rana = (diff-rsi3);
RANA.SETDefaultColor(color.red);
RANA.setLineWeight(2);
RANA.hide();
#plot diff_ = -16* average(rsi-rs_, 2);
#diff.setDefaultColor(color.gray);
#RSI2--------------------------------------
input length2 = 14;
#input price = close;
#input averageType = AverageType.WILDERS;
def NetChgAvg2 = MovingAverage(averageType, price - price[1], length2);
def TotChgAvg2 = MovingAverage(averageType, AbsValue(price - price[1]), length2);
def ChgRatio2 = if TotChgAvg2 != 0 then NetChgAvg2 / TotChgAvg2 else 0;
def RSI0 = 50 * (ChgRatio2 + 1) - 50;
def RSI2 = Average(RSI0, 1);
def rsi2_ = Average(RSI2, 2);
####
plot rall = (RSI2 - rsi2_);
rall.SetDefaultColor(Color.cyan);
rall.SetLineWeight(5);#5
rall.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
RALL.assignValueColor(if rall>0then color.cyan else color.pink);
#DASH
plot all = (wt3 - rall);
#all.SetStyle(3);
all.SetLineWeight(2);
all.SetDefaultColor(Color.green);
all.SetLineWeight(5);#5
all.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
ALL.assignValueColor(if all>0then color.green else color.DARK_GREEN);
###
plot diff0 = 2* (RSI2 - rsi2_);
diff0.SetLineWeight(5);#5
diff0.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
diff0.setDefaultColor(color.gray);
plot total = (RSI2 - diff0);
total.SetDefaultColor(Color.blue);
total.SetLineWeight(1);
total.Hide();
plot total2 = (all - rall);
#total2.SetStyle(3);
total2.SetLineWeight(2);
total2.SetDefaultColor(Color.red);
total2.assignValueColor(if total2>0 then color.red else createcolor(0, 100, 100));
total2.SetLineWeight(5);#5
total2.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
#wt3.SetLineWeight(5);#5
#wt3.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
#end code
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
May 18th, 2020, 02:23 PM
glendale ca usa
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88
here is the code...
I made it into a histogram
Attachment 299354
May 18th, 2020, 02:26 PM
Ashburn, VA
Experience: Beginner
Platform: NT8, ThinkorSwim
Broker: TD Ameritrade (currently)
Trading: MES MNQ
Posts: 65 since Feb 2014
Thanks Given: 24
Thanks Received: 65
Mine works sooooo how does the magic work?
(pasted screenshot )
May 19th, 2020, 03:55 PM
glendale ca usa
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88
#histogram
declare lower;
input Channel_Length = 10; #10
input Average_Length = 20; #20, 11
input over_bought_1 = 60;
input over_bought_2 = 53;
input over_sold_1 = -60;
input over_sold_2 = -53;
input show_bubbles = yes;
input show_sec_bbls = no;
input show_alerts = yes;
def ap = hlc3;
def esa = ExpAverage(ap, Channel_Length);
def d = ExpAverage(AbsValue(ap - esa), Channel_Length);
def ci = (ap - esa) / (0.015 * d);
def tci = ExpAverage(ci, Average_Length);
def wt1 = tci;
def wt2 = SimpleMovingAvg(wt1, 2);
#plot zerobase =0;
#zerobase.setLineWeight(2);
#zerobase.setDefaultColor(color.white);
plot wt3 = (wt1 - wt2);
wt3.SetLineWeight(2);
wt3.SetDefaultColor(Color.YELLOW);
wt3.setStyle(1);
wt3.hide();
#---------------------------------
input length3 = 2;
input length3b =6;
input price = close;
input averageType = AverageType.WILDERS;
def NetChgAvg3 = MovingAverage(averageType, price - price[1], length3);
def TotChgAvg3 = MovingAverage(averageType, AbsValue(price - price[1]), length3b);
def ChgRatio3 = if TotChgAvg3 != 0 then NetChgAvg3 / TotChgAvg3 else 0;
plot RSI3 = 10 * (ChgRatio3 + 1) - 10;
rsi3.SETDefaultColor(color.WHITE);
rsi3.setLineWeight(2);
rsi3.hide();
input lengthr = 84;
#input price = close;
input averageType2 = AverageType.WILDERS;
def NetChgAvg = MovingAverage(averageType2, price - price[1], lengthr);
def TotChgAvg = MovingAverage(averageType2, AbsValue(price - price[1]), lengthr);
def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;
def RSI = 50 * (ChgRatio + 1)-50;
DEF RS = average(RSI, 2);
def RS_ = average(RS, 3);
#def all = (rs-rs_);
def diff = 6*(rs-rs_);
#diff.setDefaultColor(color.yellow);
plot rana = (diff-rsi3);
RANA.SETDefaultColor(color.red);
RANA.setLineWeight(2);
RANA.hide();
#plot diff_ = -16* average(rsi-rs_, 2);
#diff.setDefaultColor(color.gray);
#RSI2--------------------------------------
input length2 = 14;
#input price = close;
#input averageType = AverageType.WILDERS;
def NetChgAvg2 = MovingAverage(averageType, price - price[1], length2);
def TotChgAvg2 = MovingAverage(averageType, AbsValue(price - price[1]), length2);
def ChgRatio2 = if TotChgAvg2 != 0 then NetChgAvg2 / TotChgAvg2 else 0;
def RSI0 = 50 * (ChgRatio2 + 1) - 50;
def RSI2 = Average(RSI0, 1);
def rsi2_ = Average(RSI2, 2);
####
plot rall = (RSI2 - rsi2_);
rall.SetDefaultColor(Color.cyan);
rall.SetLineWeight(5);#5
rall.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
RALL.assignValueColor(if rall>0then color.cyan else color.pink);
#DASH
plot all = (wt3 - rall);
#all.SetStyle(3);
all.SetLineWeight(2);
all.SetDefaultColor(Color.green);
all.SetLineWeight(5);#5
all.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
ALL.assignValueColor(if all>0then color.green else color.DARK_GREEN);
###
plot diff0 = 2* (RSI2 - rsi2_);
diff0.SetLineWeight(5);#5
diff0.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
diff0.setDefaultColor(color.gray);
plot total = (RSI2 - diff0);
total.SetDefaultColor(Color.blue);
total.SetLineWeight(1);
total.Hide();
plot total2 = (all - rall);
#total2.SetStyle(3);
total2.SetLineWeight(2);
total2.SetDefaultColor(Color.red);
total2.assignValueColor(if total2>0 then color.red else createcolor(0, 100, 100));
total2.SetLineWeight(5);#5
total2.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
#wt3.SetLineWeight(5);#5
#wt3.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
#end code
May 20th, 2020, 08:57 AM
Montreal, Quebec
Experience: Advanced
Platform: NinjaTrader 8
Broker: Kinetick
Trading: ES
Posts: 1,561 since Apr 2012
Thanks Given: 706
Thanks Received: 3,860
alagrande
You can't leave us hanging with such an enticing thread title! I am not on TOS so I have no skin in the game here, but I am intrigued how you use this and why it is your best indicator ever!
--------------------------------------------------------
- Trade what you see. Invest in what you believe -
--------------------------------------------------------
May 21st, 2020, 03:29 PM
glendale ca usa
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88
version 2.... on clouds form, and i have named "UGLY DUCK"
this is even better... still working on it but it is really promissing on paper money.
May 22nd, 2020, 12:32 AM
glendale ca usa
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88
soon i will have the ultimate version of this project, and only one lucky member will get the final code...
May 22nd, 2020, 01:04 PM
glendale ca usa
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88
here is a different version... hope you like it.
#UGLY_DUCK
#torque_rsi
declare lower;
input Channel_Length = 10; #10
input Average_Length = 10; #20, 11
input over_bought_1 = 60;
input over_bought_2 = 53;
input over_sold_1 = -60;
input over_sold_2 = -53;
input show_bubbles = yes;
input show_sec_bbls = no;
input show_alerts = yes;
def ap = hlc3;
def esa = ExpAverage(ap, Channel_Length);
def d = ExpAverage(AbsValue(ap - esa), Channel_Length);
def ci = (ap - esa) / (0.015 * d);
def tci = ExpAverage(ci, Average_Length);
def wt1 = tci;
DEF wt2 = SimpleMovingAvg(wt1, 3);
plot zerobase =0;
zerobase.setLineWeight(2);
zerobase.setDefaultColor(color.white);
plot yellow = (wt1 - wt2);
yellow.SetLineWeight(1);
yellow.SetDefaultColor(Color.YELLOW);
yellow.setStyle(1);
yellow.setPaintingStrategy(paintingStrategy.HISTOGRAM);
addcloud(yellow, 0, color.yellow, color.yellow);
input lengthr = 84;
input price = close;
input averageType2 = AverageType.WILDERS;
def NetChgAvg = MovingAverage(averageType2, price - price[1], lengthr);
def TotChgAvg = MovingAverage(averageType2, AbsValue(price - price[1]), lengthr);
def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;
def RSI = 50 * (ChgRatio + 1)-50;
DEF RS = average(RSI, 2);
def RS_ = average(RS, 3);
#def all = (rs-rs_);
def diff = 6*(rs-rs_);#16
#diff.setDefaultColor(color.green);
#plot diff_ = -16* average(rsi-rs_, 2);
#diff.setDefaultColor(color.gray);
#RSI2--------------------------------------
input length2 = 14;
#input price = close;
input averageType = AverageType.WILDERS;
def NetChgAvg2 = MovingAverage(averageType, price - price[1], length2);
def TotChgAvg2 = MovingAverage(averageType, AbsValue(price - price[1]), length2);
def ChgRatio2 = if TotChgAvg2 != 0 then NetChgAvg2 / TotChgAvg2 else 0;
def RSI0 = 50 * (ChgRatio2 + 1) - 50;
def RSI2 = Average(RSI0, 2);
def rsi2_ = Average(RSI2, 3);
####
def white = 3* (RSI2 - rsi2_);
#white.SetDefaultColor(Color.white);
#DASH
input Showmagenta = Yes;
#magenta.SetHiding(!Showmagenta);
plot magenta = (yellow - white);
magenta.SetStyle(3);
magenta.SetLineWeight(2);
magenta.SetDefaultColor(Color.magenta);
###
#magenta.hide();
#plot sum = (yellow-magenta);
def diff0 = (RSI2 - rsi2_);
plot total = (RSI2 - diff0);
total.SetDefaultColor(createcolor(0, 160,100));
total.SetLineWeight(1);
total.Hide();
plot total2 = (magenta - white);
#total2.SetStyle(3);
total2.SetLineWeight(2);
total2.SetDefaultColor(Color.red);
total2.hide();
#addlabel(yes, "1", if white<magenta then color.red else if white>magenta then color.green else color.gray);
#-----------------
input length3 = 2;
input length3b =8;
#input price = close;
#input averageType = AverageType.WILDERS;
def NetChgAvg3 = MovingAverage(averageType, price - price[1], length3);
def TotChgAvg3 = MovingAverage(averageType, AbsValue(price - price[1]), length3b);
def ChgRatio3 = if TotChgAvg3 != 0 then NetChgAvg3 / TotChgAvg3 else 0;
plot RSI3 = 50 * (ChgRatio3 + 1) - 50;
rsi3.SETDefaultColor(color.green);
plot rana = (diff-rsi3);
RANA.SETDefaultColor(color.red);
addlabel(yes, "RSI", if white<diff and white>white[1] and white>0 then color.green else if white>diff and white<white[1] and white<0 then color.red else color.gray);
AddLabel( yellow<white and white<magenta, " go ", color.red);
AddLabel( yellow>white and white>magenta, " go ", color.GREEN);
#AddLabel( white<magenta, " 1 ", color.red);
AddLabel( yellow<diff0 and diff0<magenta, " go2 ", color.red);
AddLabel( yellow>diff0 and diff0>magenta, " go2 ", color.GREEN);
addlabel(yes, "W", if WHITE>YELLOW then color.green else if WHITE<YELLOW then color.red else color.gray);
addlabel(yes, "G", if RSI3>YELLOW then color.green else if RSI3<YELLOW then color.red else color.gray);
addlabel(yes, "RSIų", if white<diff and white>white[1] and white>0 then color.green else if white>diff and white<white[1] and white<0 then color.red else color.gray);
addlabel(yes, "M", if magenta>magenta[1] then color.cyan else if magenta<magenta[1] then color.magenta else color.gray);
#END CODE
May 24th, 2020, 03:32 PM
Seattle Washington
Posts: 1 since Aug 2016
Thanks Given: 0
Thanks Received: 0
Will it click the mouse button for me?
May 24th, 2020, 11:27 PM
glendale ca usa
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88
Last Updated on October 20, 2020