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 leminhac with 1 posts (0 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,972 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

  #41 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88

#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:	364
Size:	223.5 KB
ID:	302912  
Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
32 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
11 thanks
HumbleTraders next chapter
11 thanks
  #42 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88

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:	383
Size:	141.0 KB
ID:	303093  
Reply With Quote
Thanked by:
  #43 (permalink)
leminhac
camden NJ
 
Posts: 1 since Oct 2020
Thanks Given: 12
Thanks Received: 0


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
  #44 (permalink)
 JBWTrader 
Murrays Bay
 
Experience: Advanced
Platform: NT*,Tradestation
Trading: ES, NQ
Frequency: Many times daily
Duration: Seconds
Posts: 76 since Aug 2017
Thanks Given: 3,827
Thanks Received: 99

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 NexusFi Trade Journal Reply With Quote
  #45 (permalink)
VinceField
Coronel Vivida, Parana/Brazil
 
Posts: 48 since Oct 2020
Thanks Given: 17
Thanks Received: 18

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

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