TheStrategyLab.com Price Action Trading Support Forum http://www.thestrategylab.com/tsl/forum/ |
|
Thinkorswim Thinkscript Codes http://www.thestrategylab.com/tsl/forum/viewtopic.php?f=225&t=2096 |
Page 1 of 1 |
Author: | gary07 [ Thu May 30, 2013 7:45 am ] |
Post subject: | Thinkorswim Thinkscript Codes |
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 |
Author: | strasai [ Sat Jan 25, 2014 6:33 pm ] |
Post subject: | Re: Thinkorswim Thinkscript Codes |
Thanks Ryan |
Author: | psymantis [ Tue Feb 18, 2014 12:05 am ] |
Post subject: | Re: Thinkorswim Thinkscript Codes |
Thanks Ryan, script works great! |
Author: | coolma1973 [ Tue Mar 08, 2016 11:22 pm ] |
Post subject: | Re: Thinkorswim Thinkscript Codes |
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 |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |