TheStrategyLab.com Price Action Trading Support Forum

Forum for price action traders that want to learn WRB Analysis basic tutorial chapters 1, 2 and 3 prior to purchasing our advance trade methods. Hashtags: #wrbanalysis #wrbzone #wrbhiddengap #priceaction #trading
It is currently Thu Mar 28, 2024 6:41 pm

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Thinkorswim Thinkscript Codes
PostPosted: Thu May 30, 2013 7:45 am 
Offline

Joined: Wed May 29, 2013 2:33 pm
Posts: 1
Here are the thinkscript codes for thinkorswim...just copy and paste them into new scripts. You can make one new study and put all three in there and just add the one study to the chart and it will label the wrb's...and wrbhg up or down.

WRB

def body = AbsValue(open-close);
def larger = if body > body[1] and body > body[2] and body > body[3] then 1
else 0;
plot wrb = if body > body[1] and body > body[2] and body > body[3] then 1
else 0;
wrb.SetPaintingStrategy (PaintingStrategy.BOOLEAN_POINTS);
wrb.SetdefaultColor(Color.WHITE);
wrb.SetLineWeight(2);
alert(larger, "Wide Range Body", alert.bar, sound.ding);

WRBHG Down

def body = AbsValue(open-close);
def larger = if low[1] > high[-1] and body > body[1] and body > body[2] and
body > body[3] then 1 else 0;
plot wrbhg = if low[1] > high[-1] and body > body[1] and body > body[2]
and body > body[3] then 1 else 0;
wrbhg.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
wrbhg.SetdefaultColor(Color.RED);
wrbhg.SetLineWeight(3);
alert(larger, "Wide Range Body Hidden Gap", alert.bar, sound.ding);


WRBHG Up

def body = AbsValue(open-close);
def larger = if high[1] < low[-1] and body > body[1] and body > body[2] and
body > body[3] then 1 else 0;
plot wrbhg = if high[1] < low[-1] and body > body[1] and body > body[2]
and body > body[3] then 1 else 0;
wrbhg.SetPaintingStrategy (PaintingStrategy.BOOLEAN_ARROW_UP);
wrbhg.SetdefaultColor(Color.RED);
wrbhg.SetLineWeight(3);
alert(larger, "Wide Range Body Hidden Gap", alert.bar, sound.ding);

Ryan


Top
 Profile  
 
 Post subject: Re: Thinkorswim Thinkscript Codes
PostPosted: Sat Jan 25, 2014 6:33 pm 
Offline

Joined: Tue Dec 31, 2013 11:15 am
Posts: 3
Thanks Ryan


Top
 Profile  
 
 Post subject: Re: Thinkorswim Thinkscript Codes
PostPosted: Tue Feb 18, 2014 12:05 am 
Offline

Joined: Fri Jan 04, 2013 1:20 am
Posts: 3
Thanks Ryan, script works great!


Top
 Profile  
 
 Post subject: Re: Thinkorswim Thinkscript Codes
PostPosted: Tue Mar 08, 2016 11:22 pm 
Offline

Joined: Sat Jul 27, 2013 1:09 pm
Posts: 4
Hi:

I am having trouble with the code. It is so small that I can't even see it on the chart. Please help!


Thanks,

Jerry


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Translated by Xaphos © 2007, 2008, 2009 phpBB.fr