NexusFi: Find Your Edge


Home Menu

 





My newest and best indicator EVER


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one alagrande with 26 posts (23 thanks)
    2. looks_two tracer888 with 5 posts (3 thanks)
    3. looks_3 FunTrade with 2 posts (0 thanks)
    4. looks_4 Big Mike with 1 posts (7 thanks)
      Best Posters
    1. looks_one tigertrader with 11 thanks per post
    2. looks_two Big Mike with 7 thanks per post
    3. looks_3 alagrande with 0.9 thanks per post
    4. looks_4 tracer888 with 0.6 thanks per post
    1. trending_up 14,793 views
    2. thumb_up 50 thanks given
    3. group 17 followers
    1. forum 44 posts
    2. attach_file 16 attachments




 
Search this Thread

My newest and best indicator EVER

  #11 (permalink)
alagrande
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

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Futures True Range Report
The Elite Circle
NexusFi Journal Challenge - April 2024
Feedback and Announcements
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Deepmoney LLM
Elite Quantitative GenAI/LLM
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
26 thanks
The Program
18 thanks
  #12 (permalink)
alagrande
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

Reply With Quote
Thanked by:
  #13 (permalink)
 
tracer888's Avatar
 tracer888 
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)

Reply With Quote
Thanked by:
  #14 (permalink)
alagrande
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

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-05-19 at 12.54.24 PM.png
Views:	308
Size:	126.6 KB
ID:	299542  
Reply With Quote
Thanked by:
  #15 (permalink)
 
JonnyBoy's Avatar
 JonnyBoy 
Montreal, Quebec
 
Experience: Advanced
Platform: NinjaTrader 8
Broker: Kinetick
Trading: ES
Posts: 1,561 since Apr 2012
Thanks Given: 706
Thanks Received: 3,854


alagrande View Post
I STILL DONT HAVE A NAME FOR IT.

its a HISTOGRAM NOWAttachment 299123

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 -
--------------------------------------------------------
Reply With Quote
Thanked by:
  #16 (permalink)
alagrande
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.

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-05-21 at 12.26.10 PM.png
Views:	352
Size:	296.8 KB
ID:	299803  
Reply With Quote
  #17 (permalink)
alagrande
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...

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-05-21 at 9.36.04 PM.png
Views:	338
Size:	197.2 KB
ID:	299842  
Reply With Quote
  #18 (permalink)
alagrande
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

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-05-22 at 10.01.40 AM.png
Views:	355
Size:	211.3 KB
ID:	299868  
Reply With Quote
Thanked by:
  #19 (permalink)
Skittish
Seattle Washington
 
Posts: 1 since Aug 2016
Thanks Given: 0
Thanks Received: 0

Will it click the mouse button for me?

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



Skittish View Post
Will it click the mouse button for me?

no!

Reply With Quote




Last Updated on October 20, 2020


© 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