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 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.9 thanks per post
    4. looks_4 tracer888 with 0.6 thanks per post
    1. trending_up 14,806 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

  #31 (permalink)
petergunz
Detroit, MI
 
Posts: 22 since May 2020
Thanks Given: 9
Thanks Received: 20


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

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
Deepmoney LLM
Elite Quantitative GenAI/LLM
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Build trailing stop for micro index(s)
Psychology and Money Management
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
36 thanks
GFIs1 1 DAX trade per day journal
22 thanks
NexusFi site changelog and issues/problem reporting
22 thanks
The Program
20 thanks
  #32 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88

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:	374
Size:	143.3 KB
ID:	300978  
Reply With Quote
Thanked by:
  #33 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88



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
  #34 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88


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
  #35 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88


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
  #36 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88


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
  #37 (permalink)
 FunTrade 
Union City CA/USA
 
Experience: Beginner
Platform: ThinkOrSwim
Trading: Equity
Posts: 14 since Sep 2017
Thanks Given: 0
Thanks Received: 6


alagrande View Post
check page 4

Thanks a lot

Reply With Quote
  #38 (permalink)
Ozquant
Brisbane Queensland Australia
 
Posts: 220 since Aug 2017
Thanks Given: 167
Thanks Received: 380

Well its Pretty

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


Ozquant View Post
Well its Pretty

you like the colors?

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


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:	371
Size:	213.5 KB
ID:	302583  
Reply With Quote
Thanked by:




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