My newest and best indicator EVER - futures io
futures io



My newest and best indicator EVER


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one alagrande with 26 posts (22 thanks)
    2. looks_two tracer888 with 5 posts (3 thanks)
    3. looks_3 FunTrade with 2 posts (0 thanks)
    4. looks_4 tigertrader with 1 posts (11 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.8 thanks per post
    4. looks_4 tracer888 with 0.6 thanks per post
    1. trending_up 8,523 views
    2. thumb_up 49 thanks given
    3. group 17 followers
    1. forum 44 posts
    2. attach_file 16 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

My newest and best indicator EVER

(login for full post details)
  #1 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

its called UGLY DUCK
and it consist of 4 RSI lines plus THE BLUE WAVE a script by Lazy Bear.
I am working on different versions. so far the best results are with the clouds version.
I have added coloured blocks to indicate bear or bull conditions depending on the position and combination of each RSI frequencies.
I will be sharing the codes for the diff versions with exception of the final code which i will share it with only one lucky member choose at random.

its a HISTOGRAM NOW
below is the code....

#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
The following 4 users say Thank You to alagrande for this post:

Can you help answer these questions
from other members on futures io?
PowerLanguage: change bars types, size and number of min …
MultiCharts
Is there a way to rename an existing trade?
MultiCharts
AMP discontinuing its co-location server? Which futures …
Brokers
Weather services for trading NG
Trading Reviews and Vendors
Futures education program reviews
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on futures io
How much do you know about Bitcoin?
129 thanks
I finally blew up an account
42 thanks
The Crude Dude Oil Trading System
34 thanks
Big Mike in Ecuador
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
 
(login for full post details)
  #2 (permalink)
 tracer888 
Ashburn, VA
 
Experience: Beginner
Platform: NT8, ThinkorSwim
Broker: TD Ameritrade (currently)
Trading: MES MNQ
 
tracer888's Avatar
 
Posts: 65 since Feb 2014
Thanks: 24 given, 65 received


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

I think your RSI might have exploded there

I'm assuming it's trying to trigger a trend reversal with the spike?

Reply With Quote
 
(login for full post details)
  #3 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received


YES, exactly. i been lucky this time, maybe i will share the code.

Reply With Quote
 
(login for full post details)
  #4 (permalink)
 tracer888 
Ashburn, VA
 
Experience: Beginner
Platform: NT8, ThinkorSwim
Broker: TD Ameritrade (currently)
Trading: MES MNQ
 
tracer888's Avatar
 
Posts: 65 since Feb 2014
Thanks: 24 given, 65 received

That'd be great! I still have TOS around here somewhere, would love to apply it to a few charts.

Reply With Quote
The following user says Thank You to tracer888 for this post:
 
(login for full post details)
  #5 (permalink)
CryptoBuffalo
Honolulu
 
 
Posts: 2 since May 2020
Thanks: 0 given, 1 received

Would love the TOS code please. If you're looking for name suggestions, the chart reminds me of that old Atari game, Tempest. You might be too young to remember that game. I'm talking about the OG gaming console of the early 80s. My name suggestion would be RSI_Tempest_Spike.

Reply With Quote
The following 2 users say Thank You to CryptoBuffalo for this post:
 
(login for full post details)
  #6 (permalink)
 loantelligence 
Syracuse, NY
 
Experience: Intermediate
Platform: Ninja Trader
Broker: Mirus Futures/Zen-Fire
Trading: NQ
 
Posts: 134 since Jan 2011
Thanks: 22 given, 102 received

your Red and Green lines resemble a DM which includes the ADX also and the Vortex indicator.......not sure where the RSI is....but then again I don't use the 5 min chart...is the RSI your Red and Green lines....after further review your RSI is your tighter Green and White ...right?...How are you trying to use this indicator....looks like a mish mash....

Reply With Quote
The following user says Thank You to loantelligence for this post:
 
(login for full post details)
  #7 (permalink)
 Big Mike 
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: Custom solution
Trading: Futures & Crypto
 
Big Mike's Avatar
 
Posts: 50,094 since Jun 2009
Thanks: 32,558 given, 98,593 received

I honestly, genuinely, thought this was a joke when I saw it earlier today!

But seeing other people responding in a serious way, I guess some find it useful and I'm wrong.

Sent using the futures.io mobile app

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/

Visit other sites? Please spread the word about your experience with our community!
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following 7 users say Thank You to Big Mike for this post:
 
(login for full post details)
  #8 (permalink)
 tigertrader 
Philly, Pa
 
Experience: Master
Platform: NinjaTrader
Trading: ES, ZB
 
tigertrader's Avatar
 
Posts: 6,255 since Jul 2010
Thanks: 6,574 given, 34,957 received


Big Mike View Post
I honestly, genuinely, thought this was a joke when I saw it earlier today!

But seeing other people responding in a serious way, I guess some find it useful and I'm wrong.

Sent using the futures.io mobile app

ROFLMAO!

Some things never change!

From another thread; but should be mandatory reading on all newbie threads.

I find it ironic, but not surprising that this thread is currently the most active thread on the forum. In the almost 10 years that I've been a member, (and @Big Mike will attest to this fact) we've gone through many, many, iterations of discussions on this very topic. It's almost a cyclical phenomenon. Another generation of aspiring traders embarking on what they think is going to be a walk-in-the-park, until they discover that achieving success in trading isn't quite as easy as they had envisioned.

Most of them are under-capitalized, and the majority of them don't know the difference between a stock and a bond. A lot of them believe the market owes them a living, and will blame the market for their lack of success, when in fact they lack the self-determination to succeed. There is nothing novel about this phenomenon. And, there is certainly nothing surprising about the response it is generating.

Other aspiring traders are eager to offer their advice. What's ironic is most of these traders are experiencing the same problems, and are incompetent at trading themselves. Incompetent traders are at a double disadvantage, since they are not only incompetent, but they are unawre of it. Almost 1/2 of them couldn't even pony up the $ to become elite members, most are on SIM and have no skin in the game, and I truly wonder how many of the others are consistently profitable to the point, where they can actually support themselves and a family, from their trading. Yet they are crawling all over themselves to tell-like-it-is; to explain how they have reinvented the wheel, and found the answer to the eternal question.

Their advice is a panoply of retail aphorisms and urban trading myths that have been propagated over the years, and regurgitated to the newbie masses. And, it's the same worthless garbage every time. You have to find your edge! Trade your plan! Find what suits you and makes you comfortable. Find a nice indicator you can settle down with and crank out 4 tics at a time. I haven't heard one expert that was offering advice say, "learn how the markets work" before you attempt to trade it.

What's ironic, Is that you'll never see these "experts" participating in threads about the markets and trading, because they really have little knowledge of how markets function, and little idea of what it really takes to make consistent and scalable profits. But they are very inclined to tell a newbie how to trade, and dispense advice with no uncertainty, blissfully ignorant of their own ineptitude. This only serves to perpetuate the cycle of retail mis-information, and re-cycle uninformed, unprepared traders that provide the winners their fresh and unknowing counterparts.

Most people are unlikely to think highly of anyone whose views they oppose. So when the newbie thinks about which person to listen to, whose advice to respect, and where to get his information, itís likely that he will choose the one that parallels his views, even though it may not be in his best interest. There have been countless times that @Big Mike and I have tried to steer people in the right direction, but people hear what they want to hear and disregard the rest. And what's sad, not ironic, is that these words will probably fall on deaf ears, or not really be comprehended nor believed, and most assuredly, they will be ignored by most

Follow me on Twitter Reply With Quote
The following 11 users say Thank You to tigertrader for this post:
 
(login for full post details)
  #9 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

hi, my friends
the code is coming soon, i am just tweecking it.
And yes, the red and green are RSI lines.

Reply With Quote
 
(login for full post details)
  #10 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received



loantelligence View Post
your Red and Green lines resemble a DM which includes the ADX also and the Vortex indicator.......not sure where the RSI is....but then again I don't use the 5 min chart...is the RSI your Red and Green lines....after further review your RSI is your tighter Green and White ...right?...How are you trying to use this indicator....looks like a mish mash....

YES red ad green RSI's

Reply With Quote
 
(login for full post details)
  #11 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

#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
The following user says Thank You to alagrande for this post:
 
(login for full post details)
  #12 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

here is the code...
I made it into a histogram
Attachment 299354

Reply With Quote
The following user says Thank You to alagrande for this post:
 
(login for full post details)
  #13 (permalink)
 tracer888 
Ashburn, VA
 
Experience: Beginner
Platform: NT8, ThinkorSwim
Broker: TD Ameritrade (currently)
Trading: MES MNQ
 
tracer888's Avatar
 
Posts: 65 since Feb 2014
Thanks: 24 given, 65 received

Mine works sooooo how does the magic work?


(pasted screenshot)

Reply With Quote
The following user says Thank You to tracer888 for this post:
 
(login for full post details)
  #14 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

#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:	116
Size:	126.6 KB
ID:	299542  
Reply With Quote
The following user says Thank You to alagrande for this post:
 
(login for full post details)
  #15 (permalink)
 JonnyBoy 
Market Wizard
Montreal, Quebec
 
Experience: Advanced
Platform: NinjaTrader 8
Broker: Kinetick
Trading: ES
 
JonnyBoy's Avatar
 
Posts: 1,559 since Apr 2012
Thanks: 706 given, 3,751 received


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
The following user says Thank You to JonnyBoy for this post:
 
(login for full post details)
  #16 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

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:	164
Size:	296.8 KB
ID:	299803  
Reply With Quote
 
(login for full post details)
  #17 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

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:	159
Size:	197.2 KB
ID:	299842  
Reply With Quote
 
(login for full post details)
  #18 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

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:	158
Size:	211.3 KB
ID:	299868  
Reply With Quote
The following 2 users say Thank You to alagrande for this post:
 
(login for full post details)
  #19 (permalink)
Skittish
Seattle Washington
 
 
Posts: 1 since Aug 2016
Thanks: 0 given, 0 received

Will it click the mouse button for me?

Reply With Quote
 
(login for full post details)
  #20 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received


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

no!

Reply With Quote
 
(login for full post details)
  #21 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

2 different new versions... they look cute The top one is a histogram v2 and the bottom one a cloud ver sion or a combination of 2 clouds one on top on the other.

HERE is the script for histogran2


#histogram2
#torque_rsi
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(1);
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.green);
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_);

plot diff = 5*(rs-rs_);
diff.setDefaultColor(color.white);
diff.setPaintingStrategy(paintingStrategy.HISTOGRAM);

plot rana = (diff-rsi3);
RANA.SETDefaultColor(color.red);
RANA.setLineWeight(4);
rana.setPaintingStrategy(paintingStrategy.HISTOGRAM);
rana.assignValueColor(if rana>wt3 then color.red else createcolor(0, 120, 180));


plot rana2 = (rsi3-rana);
rana2.SETDefaultColor(color.green);
rana2.setLineWeight(4);
rana2.setPaintingStrategy(paintingStrategy.HISTOGRAM);

rana2.assignValueColor(if rana2>wt3 then color.green else createcolor(200, 200, 10));
#end code

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-05-26 at 2.47.41 PM.png
Views:	189
Size:	139.7 KB
ID:	300014  
Reply With Quote
The following 2 users say Thank You to alagrande for this post:
 
(login for full post details)
  #22 (permalink)
 tracer888 
Ashburn, VA
 
Experience: Beginner
Platform: NT8, ThinkorSwim
Broker: TD Ameritrade (currently)
Trading: MES MNQ
 
tracer888's Avatar
 
Posts: 65 since Feb 2014
Thanks: 24 given, 65 received

How are you using this in your trades? As a filter? An Entrance or exit?

Reply With Quote
The following user says Thank You to tracer888 for this post:
 
(login for full post details)
  #23 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

hi, the target is to develop something to make trading EASY with the tools that the MASTER (TOS) has offered us.
THE best tool for me would be access to market depth but not offered by most platforms.

So... i am doing paper money on 30 min time frame which i have find out its the best for this study, and i enter when i see green clouds are scaling up and exit when green (over all) is scaling down or red scaling up.

TRY IT your self and see.

Reply With Quote
 
(login for full post details)
  #24 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

and here is THE CLOUD version. it works better on a 30 min time frame....



#UGLY_2clouds
#created by alagrande 05/19/20
#Thanks to Lazy Bear for THE BLUE WAVE.
#torque_rsi
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);
plot tci = .5* ExpAverage(ci, Average_Length);
tci.setLineWeight(2);
tci.hide();
def wt1 = tci;
plot wt2 = SimpleMovingAvg(wt1, 2);
wt2.hide();

plot yellow_ = (wt1 - wt2);


input lengthr = 34;
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 diff = 3 * (RS - RS_);#16

#-----------------
input length3 = 2;
input length3b = 2;
#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 green1 = 20 * (ChgRatio3 + 1) - 20;
green1.SetDefaultColor(Color.GREEN);
#green1.SetLineWeight(1);
#green1.SetStyle(3);
green1.Hide();

plot red1 = 1 * (diff - green1);
red1.SetDefaultColor(Color.RED);
#red1.SetLineWeight(1);
#red1.SetStyle(3);
red1.Hide();

AddCloud(green1, 0, Color.GREEN, Color.RED);
AddCloud(0, red1, Color.GREEN, Color.RED);

AddCloud(green1, 0, Color.GREEN, Color.RED);
AddCloud(0, red1, Color.GREEN, Color.RED);



addlabel(green1>green1[1], " ",
color.green);
addlabel(green1<green1[1], " ", color.red);

#end code


input lengthr2 = 34;
#input price = close;
#input averageType2 = AverageType.WILDERS;

def NetChgAvg2 = MovingAverage(averageType2, price - price[1], lengthr2);
def TotChgAvg2 = MovingAverage(averageType2, AbsValue(price - price[1]), lengthr2);
def ChgRatio2 = if TotChgAvg2 != 0 then NetChgAvg2 / TotChgAvg2 else 0;

def RSI2 = 50 * (ChgRatio2 + 1) - 50;
def RS2 = Average(RSI2, 2);
def RS2_ = Average(RS2, 3);
#def all = (rs-rs_);

def diff2 = 3 * (RS2 - RS2_);#16

#RSI2--------------------------------------
input length4 = 14;
#input price = close;
#input averageType = AverageType.WILDERS;

def NetChgAvg4 = MovingAverage(averageType, price - price[1], length4);
def TotChgAvg4 = MovingAverage(averageType, AbsValue(price - price[1]), length4);
def ChgRatio4 = if TotChgAvg4 != 0 then NetChgAvg4 / TotChgAvg4 else 0;

def RSI0 = 50 * (ChgRatio4 + 1) - 50;
def RSI4 = Average(RSI0, 2);
def rsi4_ = Average(RSI4, 3);

####
def white = 3 * (RSI4 - rsi4_);


plot yellow = 2* (yellow_ - white);
yellow.SetStyle(1);
yellow.SetLineWeight(1);
yellow.SetDefaultColor(Color.yellow);
#yellow.hide();
#-----------------
input length5 = 2;
input length5b = 8;
#input price = close;
#input averageType = AverageType.WILDERS;
def NetChgAvg5 = MovingAverage(averageType, price - price[1], length5);
def TotChgAvg5 = MovingAverage(averageType, AbsValue(price - price[1]), length5b);
def ChgRatio5 = if TotChgAvg5 != 0 then NetChgAvg5 / TotChgAvg5 else 0;

plot green_ = 20 * (ChgRatio5 + 1) - 20;
green_.SetDefaultColor(Color.GREEN);
green_.SetLineWeight(1);
green_.SetStyle(3);
#green_.Hide();

plot red_ = 1 * (diff - green_);
red_.SetDefaultColor(Color.RED);
red_.SetLineWeight(1);
red_.SetStyle(3);
#red_.Hide();

AddCloud(green_, 0, Color.GREEN, Color.RED);
AddCloud(0, red_, Color.GREEN, Color.RED);

addlabel(green_>green_[1], " ",
color.green);
addlabel(green_<green_[1], " ", color.red);
#

plot cyan = (white-yellow_);
cyan.SETDefaultColor(color.cyan);
cyan.setLineWeight(2);
cyan.hide();

plot green =(cyan-red_);
green.SETDefaultColor(color.green);
#green.setStyle(3);
#rest.hide();
plot red = (wt2-green);
red.SETDefaultColor(color.red);

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-05-29 at 3.02.36 PM.png
Views:	142
Size:	219.7 KB
ID:	300291  
Reply With Quote
The following 2 users say Thank You to alagrande for this post:
 
(login for full post details)
  #25 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

INCREDIBLE!!!

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-05-31 at 10.15.48 AM.png
Views:	116
Size:	171.1 KB
ID:	300336  
Reply With Quote
 
(login for full post details)
  #26 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

I DID IT!!!! my best indicator ever!!!!

3 years of hard work.

Here is a pic

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-06-04 at 9.47.23 PM.png
Views:	227
Size:	221.6 KB
ID:	300815  
Reply With Quote
The following 2 users say Thank You to alagrande for this post:
 
(login for full post details)
  #27 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received


CryptoBuffalo View Post
Would love the TOS code please. If you're looking for name suggestions, the chart reminds me of that old Atari game, Tempest. You might be too young to remember that game. I'm talking about the OG gaming console of the early 80s. My name suggestion would be RSI_Tempest_Spike.

HI, my friend i have choose you to get the final code. you and only you will get it. Are you interested?

Reply With Quote
 
(login for full post details)
  #28 (permalink)
 FunTrade 
Union City CA/USA
 
Experience: Beginner
Platform: ThinkOrSwim
Trading: Equity
 
Posts: 9 since Sep 2017
Thanks: 0 given, 2 received

First off, Congratulations!!!! I see all your hard work finally coming through. Would you please share the final version of the code?

Thanks

Reply With Quote
 
(login for full post details)
  #29 (permalink)
 TraderDoc007 
Detroit MI/USA
 
Experience: Advanced
Platform: Multicharts, Custom own
Trading: All Futures
 
Posts: 65 since Sep 2017
Thanks: 41 given, 193 received


alagrande View Post
I DID IT!!!! my best indicator ever!!!!

3 years of hard work.

Here is a pic

Are you really serious or is this just a fun thread for amusement?

Reply With Quote
The following 2 users say Thank You to TraderDoc007 for this post:
 
(login for full post details)
  #30 (permalink)
 tracer888 
Ashburn, VA
 
Experience: Beginner
Platform: NT8, ThinkorSwim
Broker: TD Ameritrade (currently)
Trading: MES MNQ
 
tracer888's Avatar
 
Posts: 65 since Feb 2014
Thanks: 24 given, 65 received


alagrande View Post
HI, my friend i have choose you to get the final code. you and only you will get it. Are you interested?

Kinda looks like a flower blooming.

Reply With Quote
 
(login for full post details)
  #31 (permalink)
petergunz
Detroit, MI
 
 
Posts: 22 since May 2020
Thanks: 9 given, 20 received


tigertrader View Post
ROFLMAO!

Some things never change!

From another thread; but should be mandatory reading on all newbie threads.

I find it ironic, but not surprising that this thread is currently the most active thread on the forum. In the almost 10 years that I've been a member, (and @Big Mike will attest to this fact) we've gone through many, many, iterations of discussions on this very topic. It's almost a cyclical phenomenon. Another generation of aspiring traders embarking on what they think is going to be a walk-in-the-park, until they discover that achieving success in trading isn't quite as easy as they had envisioned.

Most of them are under-capitalized, and the majority of them don't know the difference between a stock and a bond. A lot of them believe the market owes them a living, and will blame the market for their lack of success, when in fact they lack the self-determination to succeed. There is nothing novel about this phenomenon. And, there is certainly nothing surprising about the response it is generating.

Other aspiring traders are eager to offer their advice. What's ironic is most of these traders are experiencing the same problems, and are incompetent at trading themselves. Incompetent traders are at a double disadvantage, since they are not only incompetent, but they are unawre of it. Almost 1/2 of them couldn't even pony up the $ to become elite members, most are on SIM and have no skin in the game, and I truly wonder how many of the others are consistently profitable to the point, where they can actually support themselves and a family, from their trading. Yet they are crawling all over themselves to tell-like-it-is; to explain how they have reinvented the wheel, and found the answer to the eternal question.

Their advice is a panoply of retail aphorisms and urban trading myths that have been propagated over the years, and regurgitated to the newbie masses. And, it's the same worthless garbage every time. You have to find your edge! Trade your plan! Find what suits you and makes you comfortable. Find a nice indicator you can settle down with and crank out 4 tics at a time. I haven't heard one expert that was offering advice say, "learn how the markets work" before you attempt to trade it.

What's ironic, Is that you'll never see these "experts" participating in threads about the markets and trading, because they really have little knowledge of how markets function, and little idea of what it really takes to make consistent and scalable profits. But they are very inclined to tell a newbie how to trade, and dispense advice with no uncertainty, blissfully ignorant of their own ineptitude. This only serves to perpetuate the cycle of retail mis-information, and re-cycle uninformed, unprepared traders that provide the winners their fresh and unknowing counterparts.

Most people are unlikely to think highly of anyone whose views they oppose. So when the newbie thinks about which person to listen to, whose advice to respect, and where to get his information, itís likely that he will choose the one that parallels his views, even though it may not be in his best interest. There have been countless times that @Big Mike and I have tried to steer people in the right direction, but people hear what they want to hear and disregard the rest. And what's sad, not ironic, is that these words will probably fall on deaf ears, or not really be comprehended nor believed, and most assuredly, they will be ignored by most

Thanks for posting this. I have only one indicator and it's the one I used to trade physical gold and silver coins.

I was successful in the buying and selling of physical gold and silver coins so I figured that I'd go to the futures market and get some leverage. I've actually learned a lot about the differences between trading paper vs physical gold in the last month since I started. What I find ironic is that most pros don't understand gold and silver.

The amount of blogs/articles I see that claim that gold is going to explode past $1800 for reasons that every seasoned gold veteran knows isn't true by so-called professional bloggers is hilarious. I shorted gold and silver despite the bullish sentiment and made some good cash yesterday.

What I would like to learn here are ways to maximize the daily fluctuations rather than buy and hold because by the time the data comes out that says that gold and silver are headed back up, the market would've already decided that I think. I do believe that live trading is the only way to learn. I SIM traded, but it never prepared me for the reaction to huge selloffs. Actually, I never bothered checking in on my SIM trades other than when I executed the buy and sells, which are at the same times every day.

Reply With Quote
 
(login for full post details)
  #32 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

OK. guys is my pleasure to share it with you.
It works better on 5 min chats.
Candles painting is on but you can turn then off.
The withe and yellow lines if both on top of zero its bullish and if below 0 it is bear.
Play on paper money and get familiarized with it.
Also be thankful and share your feedbacks.

#UGLY_DUCK_clouds_v1
#created by alagrande 05/19/20
#Thanks to Lazy Bear for THE BLUE WAVE.
#torque_rsi
declare lower;
input Channel_Length = 10; #10
input Average_Length = 4; #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 = .5* ExpAverage(ci, Average_Length);
#tci.setLineWeight(1);
def wt1 = tci;
def wt2 = SimpleMovingAvg(wt1, 2);


plot yellow_ = (wt1 - wt2);
yellow_.SetLineWeight(1);
yellow_.SetDefaultColor(Color.YELLOW);
yellow_.setStyle(1);
yellow_.setPaintingStrategy(paintingStrategy.HISTOGRAM);
yellow_.hide();
#addcloud(yellow, 0, color.yellow, color.yellow);

input lengthr = 34;
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 = 3*(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

plot yellow = 2* (yellow_ - white);
yellow.SetStyle(1);
yellow.SetLineWeight(1);
yellow.SetDefaultColor(Color.yellow);
yellow.setLineWeight(1);
yellow.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 = (yellow - white);
#total2.SetStyle(3);
total2.SetLineWeight(2);
total2.SetDefaultColor(Color.red);
total2.hide();

#-----------------
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 green = 20 * (ChgRatio3 + 1) - 20;
green.SETDefaultColor(color.green);
green.setLineWeight(1);
green.setStyle(3);
green.hide();

plot red = 1* (diff-green);
red.SETDefaultColor(color.red);
red.setLineWeight(1);
red.setStyle(3);
red.hide();


#addcloud(green, 0, color.green, color.red);
#addcloud(0, red, color.green, color.red);


#red.assignValueColor(if red>0 then color.red else if red<0 then color.green else color.gray);

input PaintBars = Yes;
AssignPriceColor (if !paintbars then Color.CURRENT else if green>0 then Color.GREEN else if red<0 then Color.RED else Color.red);


plot cyan = (diff0-yellow);
cyan.SETDefaultColor(color.cyan);
cyan.setLineWeight(2);
cyan.hide();

plot rest =(cyan-red);
rest.SETDefaultColor(color.white);
#rest.setStyle(3);
#rest.hide();
plot restW = (wt2-rest);
restW.SETDefaultColor(color.yellow);
#restW.hide();
#input PaintBars = Yes;
#AssignPriceColor (if !paintbars then Color.CURRENT else if rest>restw then Color.GREEN else if rest<restw then Color.RED else Color.red);

#plot greater =(green-red);
#plot greater2 =(rest-restw);
#plot greater3 =(greater-greater2);


addcloud(green, 0, color.green, color.red);
addcloud(0, red, color.green, color.red);
addcloud(green, 0, color.green, color.red);
addcloud(0, red, color.green, color.red);

addlabel(yes, "0", if green>RED then color.green else color.red);

addlabel(yes, "A", if green>0 then color.green else color.red);

addlabel(yes, "B", if rest>restw then color.green else color.red);


addlabel(yes, "a", if green>green[1] then color.GREEN else if green<green[1] then color.RED else color.gray);

addlabel(yes, "b", if rest>rest[1] then color.green else if rest<rest[1] then color.red else color.gray);


addlabel(yes, "bw", if restw>restw[1] then color.pink else if restw<restw[1] then color.cyan else color.gray);


#bigCLOUD
#addcloud(REST, RESTW, color.GREEN, color.RED);
#addcloud(REST, RESTW, color.GREEN, color.RED);

plot rest2 =(red-yellow);
rest2.SETDefaultColor(color.magenta);
rest2.hide();


#Z.hide();

plot RR = 5*(rest>red);
RR.SETPaintingStrategy(paintingStrategy.HISTOGRAM);
RR.setDefaultColor(color.green);
#RR.HIDE();

plot RRR = - 5*(RED>GREEN);
RRR.SETPaintingStrategy(paintingStrategy.HISTOGRAM);
RRR.setDefaultColor(color.RED);
##


plot zero =2;
zero.setLineWeight(3);
zero.setDefaultColor(color.gray);
zero.assignValueColor(if rest2>red then color.green else if rest2<red then color.red else color.gray);
ZERO.HIDE();

plot zerobase =-2;
zerobase.setLineWeight(3);
zerobase.setDefaultColor(color.gray);
zerobase.assignValueColor(if red>green then color.red else if red<green then color.green else color.gray);
ZERObase.hide();


plot z =-0;
z.setLineWeight(2);
z.setDefaultColor(color.gray);
z.assignValueColor(if RESTW>TCI then color.red else if RESTW<TCI then color.green else color.gray);
#z.assignValueColor(if TCI<TCI[1] then color.red else if TCI>TCI[1] then color.green else color.gray);


#end code

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-06-07 at 2.15.17 PM.png
Views:	213
Size:	143.3 KB
ID:	300978  
Reply With Quote
The following 3 users say Thank You to alagrande for this post:
 
(login for full post details)
  #33 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received


JonnyBoy View Post
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!


Go to page 4 there is the coded script... i will have it there for only a week.

Reply With Quote
 
(login for full post details)
  #34 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received


FunTrade View Post
First off, Congratulations!!!! I see all your hard work finally coming through. Would you please share the final version of the code?

Thanks

Go to page 4 there is the coded script... i will have it there for only a week.

Reply With Quote
 
(login for full post details)
  #35 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received


TraderDoc007 View Post
Are you really serious or is this just a fun thread for amusement?

Go to page 4 there is the coded script... i will have it there for only a week.

Reply With Quote
 
(login for full post details)
  #36 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received


FunTrade View Post
First off, Congratulations!!!! I see all your hard work finally coming through. Would you please share the final version of the code?

Thanks

check page 4

Reply With Quote
 
(login for full post details)
  #37 (permalink)
 FunTrade 
Union City CA/USA
 
Experience: Beginner
Platform: ThinkOrSwim
Trading: Equity
 
Posts: 9 since Sep 2017
Thanks: 0 given, 2 received


alagrande View Post
check page 4

Thanks a lot

Reply With Quote
 
(login for full post details)
  #38 (permalink)
Ozquant
Brisbane Queensland Australia
 
 
Posts: 214 since Aug 2017
Thanks: 159 given, 354 received

Well its Pretty

Reply With Quote
 
(login for full post details)
  #39 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received


Ozquant View Post
Well its Pretty

you like the colors?

Reply With Quote
 
(login for full post details)
  #40 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

and yet another version... with the help of Lee Shui Sing... thank you much!

#BOLLINGER_DRAGON
#ENTER_DRAGON_TESTING_4_1
#basics5
#UGLY_DUCK_clouds_v1
#created by alagrande
#Thanks to Lazy Bear for THE BLUE WAVE.
#torque_rsi
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 = .5 * ExpAverage(ci, Average_Length);
#tci.setLineWeight(1);
def wt1 = tci;
def wt2 = SimpleMovingAvg(wt1, 2);


def yellow_ = (wt1 - wt2);

PLOT F = 40;
PLOT F2 = -40;

input lengthr = 34;
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 = (RS - RS_);#16

#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 = (RSI2 - rsi2_);#3 *

def yellow = (yellow_ - white);#2 *

def diff0 = (RSI2 - rsi2_);
plot total = (RSI2 - diff0);
total.hide();
#total.setDefaultColor(color.cyan);
plot zero = 0;
#zero.AssignValueColor(if total > 0 then Color.WHITE else Color.DARK_RED);
zero.setLineWeight(3);
plot total2 = (yellow - white);
total2.setDefaultColor(color.YELLOW);
total2.hide();


#-----------------
input length3 = 2;
input length3b = 7;
#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;

def green = 20 * (ChgRatio3 + 1) - 20;
#def red = (diff - green);

plot red = (diff - green);
red.SetDefaultColor(Color.RED);
red.setLineWeight(2);
red.Setstyle(1);
#red.hide();
red.hideBubble();


input opacity = 1;
AddCloud(Green, Red, Color.Cyan, Color.Red);
AddCloud(Green, Red, Color.Cyan, Color.Red, opacity);
AddCloud(Green, Red, Color.Cyan, Color.Red, opacity);

######## Bollinger Bands ############

input BBlength = 7;
input BBsdMult = 3.5;
def SDBB = StDev(RSI, BBlength);

plot BBmidline = Average(GREEN+RED, BBlength);
#BBmidline.SetDefaultColor(Color.GRAY);
BBmidline.SetStyle(Curve.SHORT_DASH);
BBmidline.SetLineWeight(1);
BBmidline.HideBubble();
BBmidline.HideTitle();

plot uBBline = BBmidline + BBsdMult * SDBB;
uBBline.SetDefaultColor(Color.WHITE);
uBBline.SetStyle(Curve.MEDIUM_DASH);
uBBline.SetLineWeight(1);
uBBline.HideBubble();
uBBline.HideTitle();

plot lBBline = BBmidline - BBsdMult * SDBB;
lBBline.SetDefaultColor(Color.WHITE);
lBBline.SetStyle(Curve.MEDIUM_DASH);
lBBline.SetLineWeight(1);
lBBline.HideBubble();
lBBline.HideTitle();

#------------------------------------------------

input PaintBars = NO;
AssignPriceColor (if !PaintBars then Color.CURRENT else if green > 0 then Color.GREEN else if red < 0 then Color.RED else Color.RED);


plot cyan = (diff0 - yellow);
cyan.setStyle(3);
cyan.SetDefaultColor(Color.cyan);
cyan.setPaintingStrategy(paintingStrategy.HISTOGRAM);
cyan.hide();
#ADDCLOUD(cyan, 0, color.WHITE, color.white);

plot rest = (cyan - red);
rest.SetDefaultColor(Color.cyan);
#rest.setStyle(3);
rest.hide();
rest.hideBubble();

plot restW = (wt2 - rest);
restW.SetDefaultColor(Color.PINK);
#restw.hideBubble();
#restw.setLineWeight(1);
restw.setStyle(3);
#restw.hide();

#addcloud(green, restw, color.green, color.red);

plot UpSignal = if RESTW<-60 then -60 else Double.NaN;
plot DownSignal = if RESTW>60 then 60 else Double.NaN;

UpSignal.SetDefaultColor(Color.UPTICK);
UpSignal.SetPaintingStrategy(PaintingStrategy.POINTS);
UpSignal.setLineWeight(3);
DownSignal.SetDefaultColor(Color.DOWNTICK);
DownSignal.SetPaintingStrategy(PaintingStrategy.POINTS);
DownSignal.setLineWeight(3);

plot UpSignal2 = if RESTW<-60 then -70 else Double.NaN;
plot DownSignal2 = if RESTW>60 then 70 else Double.NaN;

UpSignal2.SetDefaultColor(Color.GREEN);
UpSignal2.SetPaintingStrategy(PaintingStrategy.TRIANGLES);
UpSignal2.setLineWeight(3);
DownSignal2.SetDefaultColor(Color.RED);
DownSignal2.SetPaintingStrategy(PaintingStrategy.TRIANGLES);
DownSignal2.setLineWeight(3);

#plot z1 = 0;
#z1.setDefaultColor(color.white);

plot z =-30;
z.setDefaultColor(color.white);
z.hideBubble();
z.setDefaultColor(color.gray);
z.assignValueColor(if GREEN>REST then color.green else color.red);
z.setLineWeight(3);
Z.HIDE();


addlabel(yes, "/", color.white);
#-------------------------------------------

addlabel(green<0 and restw>0 and restw>restw[1] and total<0 and total<total[1], "1", color.red);

addlabel(green<0 and restw>0 and restw<restw[1] and total<0 and total<total[1], "2", color.red);

addlabel(green<0 and restw>0 and restw>restw[1] and total<0 and total<total[1], "3", color.red);

#-------------------------------------------

#-------------------------------------------
#POSITIVE
addlabel(green>0 and restw<0 and restw<restw[1] and total>0 and total>total[1], "1", color.green);

addlabel(green>0 and restw<0 and restw>restw[1] and total>0 and total>total[1], "2", color.green);

addlabel(green>0 and restw<0 and restw<restw[1] and total>0 and total>total[1], "3", color.green);

#-------------------------------------------

addlabel(yes, "/", color.white);

addlabel(yes, "T44", if RESTW<RESTW[1] and GREEN>GREEN[1] AND TOTal>TOtal[1] and TOTal2>TOtal2[1] then color.green else if green>restw and restw>red then color.dark_green else if RESTW>RESTW[1] and GREEN<GREEN[1] AND TOTal<TOtal[1] and total2<total2[1] then color.red else if red>restw and restw>green then color.dark_red else color.gray);

#W>0, G>0, C>0, R<0, R<C red<cyan (TRIGER)
addlabel(yes, "C><0", IF RESTW>0 and GREEN>0 AND TOTal>0 and red<0 AND RED<TOTAL THEN COLOR.CYAN ELSE IF RESTW>0 and GREEN>0 AND TOTal>0 and red>0 AND RED<TOTAL THEN COLOR.PINK ELSE COLOR.GRAY);

#RED CROSSING BELOW OR ABOVE CYAN
addlabel(yes, "C><0", IF RESTW<0 and GREEN>0 AND TOTal<0 and red<TOTAL THEN COLOR.GREEN ELSE IF RESTW>0 and GREEN<0 AND TOTal>0 and red>TOTAL THEN COLOR.RED ELSE COLOR.GRAY);

#G>0, C>0, C>C, W>W, W>0
addlabel(yes, "ALLw", IF GREEN>0 and RESTW<0 AND RESTW>RESTW[1] and TOTAL>0 AND TOTAL>TOTAL[1] THEN COLOR.GREEN ELSE IF GREEN<0 and RESTW>0 AND RESTW<RESTW[1] and TOTAL<0 AND TOTAL<TOTAL[1] THEN COLOR.RED ELSE COLOR.GRAY);

addlabel(yes, "ALL2", IF GREEN>0 and RESTW<0 AND RESTW<RESTW[1] and TOTAL>TOTAL[1] AND TOTAL>0 THEN COLOR.GREEN ELSE IF GREEN<0 and RESTW>0 AND RESTW>RESTW[1] and TOTAL<TOTAL[1] AND TOTAL>0 THEN COLOR.RED ELSE COLOR.GRAY);

addlabel(yes, "ALL4", IF GREEN<0 and RESTW>0 AND RESTW>RESTW[1] and TOTAL>TOTAL[1] AND TOTAL>0 THEN COLOR.PINK ELSE IF GREEN>0 and RESTW<0 AND RESTW<RESTW[1] and TOTAL<TOTAL[1] AND TOTAL<0 THEN COLOR.CYAN ELSE COLOR.GRAY);

addlabel(yes, "ALL5", IF GREEN>0 and RESTW>0 AND RESTW>RESTW[1] and TOTAL>TOTAL[1] AND TOTAL>0 THEN COLOR.lime ELSE IF GREEN<0 and RESTW<0 AND RESTW<RESTW[1] and TOTAL<TOTAL[1] AND TOTAL<0 THEN COLOR.plum ELSE COLOR.GRAY);

addlabel(yes, "C", IF GREEN>0 and RESTW>0 AND RESTW>RESTW[1] and TOTAL<TOTAL[1] AND TOTAL>0 THEN COLOR.RED ELSE IF GREEN<0 and RESTW<0 AND RESTW<RESTW[1] and TOTAL>TOTAL[1] AND TOTAL<0 THEN COLOR.GREEN ELSE COLOR.GRAY);

#w>,c> red
addlabel(yes, "W>C>", IF GREEN>0 and RESTW>0 AND RESTW<RESTW[1] AND TOTAL>0 and TOTAL<TOTAL[1] THEN COLOR.GREEN ELSE IF GREEN<0 and RESTW<0 AND RESTW>RESTW[1] AND TOTAL<0 and TOTAL>TOTAL[1] THEN COLOR.RED ELSE COLOR.GRAY);

#g>,c> red
addlabel(yes, "G>C>", IF GREEN>0 and RESTW<0 AND RESTW<RESTW[1] AND TOTAL<0 and TOTAL>TOTAL[1] THEN COLOR.LIGHT_GREEN ELSE IF GREEN<0 and RESTW>0 AND RESTW>RESTW[1] AND TOTAL>0 and TOTAL<TOTAL[1] THEN COLOR.LIGHT_RED ELSE COLOR.GRAY);

addlabel(yes, "BB", IF ubbline>ubbline[1] THEN COLOR.light_GREEN ELSE IF lbbline>lbbline[1] THEN COLOR.light_RED ELSE COLOR.GRAY);

#g green-x
addlabel(yes, "G>Cx", IF GREEN>0 and RESTW<0 AND RESTW<RESTW[1] AND TOTAL<0 and TOTAL<TOTAL[1] and green>green[1] and restw<restw[1] THEN COLOR.GREEN ELSE IF GREEN<0 and RESTW>0 AND RESTW>RESTW[1] AND TOTAL<0 and TOTAL>TOTAL[1] and green<green[1] and restw>restw[1] THEN COLOR.RED ELSE COLOR.GRAY);

#W C red
addlabel(yes, "WC", IF GREEN>0 and RESTW<0 AND RESTW>RESTW[1] AND TOTAL<0 and TOTAL>TOTAL[1] THEN COLOR.LIGHT_GREEN ELSE IF GREEN<0 and RESTW>0 AND RESTW<RESTW[1] AND TOTAL>0 and TOTAL<TOTAL[1] THEN COLOR.LIGHT_RED ELSE COLOR.GRAY);

zero.setDefaultColor(color.gray);
zero.AssignValueColor(if green>total then Color.WHITE else if green<total then Color.DARK_RED else color.gray);

addlabel(restw>red and restw<green, "Call", color.white);

addlabel(restw>green and restw<red, "Put", color.pink);

addlabel(ubbline>red and ubbline<green, "Call", color.cyan);

addlabel(ubbline>green and ubbline<red, "Put", color.yellow);

#end code

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-07-04 at 1.58.06 PM.png
Views:	191
Size:	213.5 KB
ID:	302583  
Reply With Quote
The following user says Thank You to alagrande for this post:
 
(login for full post details)
  #41 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

#FOURD_v2_1c
#basics4D
#UGLY_DUCK_clouds_v1
#Thanks to Lazy Bear for THE BLUE WAVE.
#torque_rsi
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 d2 = .4* ExpAverage(AbsValue(ap - esa), Channel_Length);
def ci = (ap - esa) / (0.015 * d);

plot ci2 = .5* (ap - esa) / (0.015 * d);
#ci2.setDefaultColor(color.white);
#ci2.hide();

plot tci0 = ExpAverage(ci, Average_Length);
tci0.setDefaultColor(color.gray);
TCI0.setStyle(1);
tci0.hide();

def tci = .4 * ExpAverage(ci, Average_Length);
#.4 .5
def tci2 = .5* ExpAverage(ci, Average_Length);
#tci2.setDefaultColor(color.white);
def tci3 = SimpleMovingAvg(tci2, 3);
#tci.setLineWeight(1);
def wt1 = tci0;
def wt2 = SimpleMovingAvg(wt1, 2);

def yellow_ = 2* (wt1 - wt2);
#addcloud(yellow_, 0, color.yELLOW, color.yellow);
#addcloud(ci2, tci2, color.cyan, color.red);
#addcloud(ci2, tci2, color.cyan, color.red);
#addcloud(ci2, tci0, color.cyan, color.red);
#addcloud(ci2, tci0, color.cyan, color.dark_orange);

plot z=0;

PLOT F = 70;
#f.setDefaultColor(color.red);
#f.setStyle(2);
PLOT F2 = -70;
#f2.setDefaultColor(color.green);
#f2.setStyle(2);

input lengthr = 34;
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 = 3 * (RS - RS_);#16

#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_);
def yellow = 2 * (yellow_ - white);
def diff0 = (RSI2 - rsi2_);
def total = (RSI2 - diff0);
def total2 = (yellow - white);


#-----------------
input length3 = 2;#2
input length3b = 2;#4
#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;

def green = 20 * (ChgRatio3 + 1) - 20;
#green.SetDefaultColor(Color.GREEN);
#green.setLineWeight(1);
#green.SetStyle(3);
#green.hideBubble();
#green.hide();

def red = (diff - green);
#red.SetDefaultColor(Color.red);
#red.setLineWeight(2);
#red.Setstyle(1);
#red.hide();
#red.hideBubble();

def cyan = (diff0 - yellow);

def rest = (cyan - red);
#rest.SetDefaultColor(Color.cyan);
#rest.setStyle(3);
#rest.hide();
#rest.hideBubble();

plot restW = (wt2 - rest);
restW.SetDefaultColor(Color.white);
restw.setStyle(3);
#restw.hideBubble();
restw.hide();

#COLORS westci2______________________________
plot westci2 = (restw-tci2);
westci2.setLineWeight(2);
westci2.setDefaultColor(color.yellow);
#addcloud(westci2, ci2, color.green, color.red);###
#westci2.hide();
#westci2.assignValueColor(if westci2<westci2[1] then color.green else color.red);
#WESTCI2.HIDE();
#westci2.assignValueColor(if westci2<0 and westci2<westci2[1] then color.green else IF westci2>0 and westci2<westci2[1] then color.cyan else IF westci2>0 and westci2>westci2[1] then color.red else IF westci2<0 and westci2>westci2[1] then color.white else color.gray);

#COLORS ci2
#ci2.assignValueColor(if ci2>ci2[1] then color.cyan else color.magenta);
ci2.setLineWeight(1);


#mobile-------------------
plot westA = (restw-tci2);
westa.setDefaultColor(color.RED);
westa.hide();
plot ci2B = .5* (ap - esa) / (0.015 * d);
ci2B.setDefaultColor(color.GREEN);
ci2B.hide();
#mobile------------------
plot T= (restw-westci2);
#t.hide();
#addlabel(Yes, " T ", if t>t[1] then color.green else color.red);
addcloud(t, westci2, color.green, color.red);###
addcloud(t, westci2, color.green, color.red);###

#addcloud(ci2, t, color.cyan, color.red);

#addcloud(t, westci2, color.cyan, color.red);

addcloud(green, 0, color.green, color.red);
addcloud(green, 0, color.green, color.red);


addlabel(Yes, "g", if green>green[1] then color.green else if green<green[1] then color.red else color.gray);
addlabel(Yes, " G ", if green>0 then color.green else color.red);

#______________________________________________

Addlabel(yes, " Ý ", if tci0<westci2 and tci0>ci2 then color.RED else if tci0>westci2 and tci0<ci2 then color.GREEN else color.gray);

Addlabel(yes, "MATCH", if westci2<0 and westci2<westci2[1] and ci2>ci2[1] then color.green else if westci2>0 and westci2>westci2[1] and ci2<ci2[1] then color.red else color.gray);


Addlabel(yes, " L ", if westci2<0 and westci2<westci2[1] then color.green else IF westci2>0 and westci2<westci2[1] then color.cyan else IF westci2>0 and westci2>westci2[1] then color.red else IF westci2<0 and westci2>westci2[1] then color.white else color.gray);
#COLORS

#addlabel(Yes, "GL", if green>0 and westci2>0 and westci2<westci2[1] then color.cyan else if green>0 and westci2<0 and westci2<westci2[1] then color.green else if green<0 and westci2<0 and westci2>westci2[1] then color.pink else if green<0 and westci2>0 and westci2>westci2[1] then color.red else color.gray);

addlabel(Yes, "GL", if green>0 and westci2>0 and westci2<westci2[1] then color.cyan else if green>0 and westci2<0 and westci2<westci2[1] then color.green else if green>0 and tci0>westci2 and tci0<ci2 then color.dark_green else if green<0 and westci2<0 and westci2>westci2[1] then color.pink else if green<0 and westci2>0 and westci2>westci2[1] then color.red else if green<0 and tci0<westci2 and tci0>ci2 then color.dark_red else color.gray);

addlabel(Yes, "WATCH", if green>0 and westci2<0 and westci2<westci2[1] then color.green else if green>0 and tci0>westci2 and tci0<ci2 and westci2>0 and westci2<westci2[1] then color.cyan else if green<0 and westci2>0 and westci2>westci2[1] then color.red else if green<0 and tci0<westci2 and tci0>ci2 and westci2<0 and westci2>westci2[1] then color.pink else color.gray);

#addlabel(Yes, " G ", if green>0 and tci0>westci2 and tci0<ci2 and westci2>0 and westci2<westci2[1] then color.cyan else if green>0 and tci0>westci2 and tci0<ci2 and westci2>0 and westci2<westci2[1] then color.pink else color.gray);
#
#end

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-07-14 at 3.17.39 PM.png
Views:	199
Size:	223.5 KB
ID:	302912  
Reply With Quote
The following 2 users say Thank You to alagrande for this post:
 
(login for full post details)
  #42 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

one more version.....



#THIS STADY CAN BE USE AS A TOP OR LOWER INDICATOR, YOU COUDL ALSO TURN PAINT BARS MODE which is amazingly accurate!
#this study works better on higher time frames. 5m, 10m, 20m.
#creator: Ala Grande 2020

#///////////
#PRICE_OHLC4
#///////////
plot Data = ohlc4;
data.setDefaultColor(color.gray);
data.setLineWeight(2);
#data.hide();

plot Data2 = OPEN;
data2.setDefaultColor(color.YELLOW);
data2.setStyle(1);


plot Data3 = CLOSE;
#data3.setDefaultColor(color.CYAN);
data3.setLineWeight(2);



#BOLLINGER_DRAGON
#ENTER_DRAGON_TESTING_4_1
#basics5
#UGLY_DUCK_clouds_v1
#Thanks to Lazy Bear for THE BLUE WAVE.
#torque_rsi
#declare lower;
input Channel_Length = 10; #10
input Average_Length =20; #20, 11

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 = .5 * ExpAverage(ci, Average_Length);
#tci.setLineWeight(1);
def wt1 = tci;
def wt2 = SimpleMovingAvg(wt1, 2);
def yellow_ = (wt1 - wt2);

input lengthr = 34;
input price = close;
input averageType3 = AverageType.WILDERS;

def NetChgAvg = MovingAverage(averageType3, price - price[1], lengthr);
def TotChgAvg = MovingAverage(averageType3, 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 diff = (RS - RS_);#16

#RSI2--------------------------------------
input length2 = 14;
#input price = close;
input averageType4 = AverageType.WILDERS;

def NetChgAvg2 = MovingAverage(averageType4, price - price[1], length2);
def TotChgAvg2 = MovingAverage(averageType4, 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 white3 = (RSI2 - rsi2_);#3 *
def yellow = (yellow_ - white3);#2 *
def diff0 = (RSI2 - rsi2_);

#-----------------
input length3 = 2;
input length3b = 7;
#input price = close;
input averageType3a = AverageType.WILDERS;
def NetChgAvg3 = MovingAverage(averageType3a, price - price[1], length3);
def TotChgAvg3 = MovingAverage(averageType3a, AbsValue(price - price[1]), length3b);
def ChgRatio3 = if TotChgAvg3 != 0 then NetChgAvg3 / TotChgAvg3 else 0;

def green2 = 20 * (ChgRatio3 + 1) - 20;
def red2 = (diff - green2);
#red.SetDefaultColor(Color.RED);

#------------------------------------------------
def cyan = (diff0 - yellow);
def rest = (cyan - red2);
def restW = - (wt2 - rest);

plot adxt2 = if restw >= -100 then hlc3 else Double.NaN;
adxt2.SetPaintingStrategy (PaintingStrategy.points);
####combo6.SetDefaultColor(Color.black);
adxt2.SetLineWeight (2);
adxt2.AssignValueColor(if restw<green2 and restw>red2 then color.green else if restw>green2 and restw<red2 then color.red else color.gray);
#=================================================


input fastL1 = 2;#3
#input price = close;
input slowL1 = 6;#4
input averageType = AverageType.SIMPLE;

def white = MovingAverage(averageType, close[0], fastL1) - MovingAverage(averageType, close[0], slowL1) ;

#GREEN/RED
input fastL2 = 2;#3
input slowL2 = 18;#16, TESTING 14 NOW!!!!!
def green = MovingAverage(averageType, close[0], fastL2) - MovingAverage(averageType, close[0], slowL2) ;
#GREEN.setStyle(3);
#green.Hide();

def red = MovingAverage(averageType, open[0], fastL2) - MovingAverage(averageType, close[0], slowL2) ;

#BASE
input fastL1B = 1;#3
#input price = close;
input slowL1B = 4;#4
#input averageType = AverageType.SIMPLE;
def GRAY = MovingAverage(averageType, close[0], fastL1B) - MovingAverage(averageType, close[0], slowL1B) ;

#BASE
input fastLC = 4;#3
#input price = close;
input slowLC = 1;#4
#input averageType = AverageType.SIMPLE;

def GRAY2 = MovingAverage(averageType, close[0], fastLC) - MovingAverage(averageType, close[0], slowLC) ;


#assign color to BASE BARS
data.assignValueColor(if gray2<0 then color.green else if gray2>0 then color.red else Color.gray);


#assign color to BASE BARS
input PaintBars1 = NO;
AssignPriceColor (if !PaintBars1 then Color.CURRENT else if gray2<0 then color.green else if gray2>0 then color.red else Color.gray);

#...................................................

DATA3.ASSignValueColor(if gray>0 and gray>white then createcolor(0,180,50) else if gray<white and green>red then color.light_green else if gray<0 and gray<white then color.red else if gray>white and green<red then color.pink else Color.gray);

#data.assignValueColor( if gray>0 and gray>white then createcolor(200,200,200) else if gray<white and green>red then color.light_green else if gray<0 and gray<white then color.red else if gray>white and green<red then color.pink else Color.gray);


plot ad = if white >= -100 then data else Double.NaN;
ad.SetPaintingStrategy (PaintingStrategy.squares);
ad.SetLineWeight (3);
ad.AssignValueColor(if green>white and red<white and green>0 then color.WHITE else if green<white and red>white and green<0 then color.yellow else color.gray);
#=================================================
#END CODE

Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-07-19 at 12.20.00 PM.png
Views:	201
Size:	141.0 KB
ID:	303093  
Reply With Quote
The following user says Thank You to alagrande for this post:
 
(login for full post details)
  #43 (permalink)
leminhac
camden NJ
 
 
Posts: 1 since Oct 2020
Thanks: 12 given, 0 received

Hi, Thank you for all the sharing code!

Not sure if you still choosing someone to share the final code, but I would love to be one!

Reply With Quote
 
(login for full post details)
  #44 (permalink)
 JBWTrader 
Murrays Bay
 
Experience: Advanced
Platform: NT*,Tradestation
Trading: ES, NQ
 
Posts: 42 since Aug 2017
Thanks: 884 given, 48 received

hehehe so true ! very well written and explained.
What you write parallels the set of defenses and denials one has to move thru during real analysis of self.
The truth is not for the faint hearted and trading is not either.

thank you

best
John


tigertrader View Post
ROFLMAO!

Some things never change!

From another thread; but should be mandatory reading on all newbie threads.

I find it ironic, but not surprising that this thread is currently the most active thread on the forum. In the almost 10 years that I've been a member, (and @Big Mike will attest to this fact) we've gone through many, many, iterations of discussions on this very topic. It's almost a cyclical phenomenon. Another generation of aspiring traders embarking on what they think is going to be a walk-in-the-park, until they discover that achieving success in trading isn't quite as easy as they had envisioned.

Most of them are under-capitalized, and the majority of them don't know the difference between a stock and a bond. A lot of them believe the market owes them a living, and will blame the market for their lack of success, when in fact they lack the self-determination to succeed. There is nothing novel about this phenomenon. And, there is certainly nothing surprising about the response it is generating.

Other aspiring traders are eager to offer their advice. What's ironic is most of these traders are experiencing the same problems, and are incompetent at trading themselves. Incompetent traders are at a double disadvantage, since they are not only incompetent, but they are unawre of it. Almost 1/2 of them couldn't even pony up the $ to become elite members, most are on SIM and have no skin in the game, and I truly wonder how many of the others are consistently profitable to the point, where they can actually support themselves and a family, from their trading. Yet they are crawling all over themselves to tell-like-it-is; to explain how they have reinvented the wheel, and found the answer to the eternal question.

Their advice is a panoply of retail aphorisms and urban trading myths that have been propagated over the years, and regurgitated to the newbie masses. And, it's the same worthless garbage every time. You have to find your edge! Trade your plan! Find what suits you and makes you comfortable. Find a nice indicator you can settle down with and crank out 4 tics at a time. I haven't heard one expert that was offering advice say, "learn how the markets work" before you attempt to trade it.

What's ironic, Is that you'll never see these "experts" participating in threads about the markets and trading, because they really have little knowledge of how markets function, and little idea of what it really takes to make consistent and scalable profits. But they are very inclined to tell a newbie how to trade, and dispense advice with no uncertainty, blissfully ignorant of their own ineptitude. This only serves to perpetuate the cycle of retail mis-information, and re-cycle uninformed, unprepared traders that provide the winners their fresh and unknowing counterparts.

Most people are unlikely to think highly of anyone whose views they oppose. So when the newbie thinks about which person to listen to, whose advice to respect, and where to get his information, itís likely that he will choose the one that parallels his views, even though it may not be in his best interest. There have been countless times that @Big Mike and I have tried to steer people in the right direction, but people hear what they want to hear and disregard the rest. And what's sad, not ironic, is that these words will probably fall on deaf ears, or not really be comprehended nor believed, and most assuredly, they will be ignored by most


Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #45 (permalink)
VinceField
Coronel Vivida, Parana/Brazil
 
 
Posts: 47 since Oct 2020
Thanks: 17 given, 18 received

In your experience, what is the estimated accuracy of this indicator and under what market/chart conditions?

Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > My newest and best indicator EVER


Last Updated on October 20, 2020


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

June
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts