Thinkscript library, popular scripts and studies - ThinkOrSwim | futures io | futures trading
futures io futures trading


Thinkscript library, popular scripts and studies
Updated: Views / Replies:289 / 9
Created: by lukeskywalker1 Attachments:4

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

Thinkscript library, popular scripts and studies

  #1 (permalink)
Los Angeles (CA)
 
 
Posts: 4 since Apr 2019
Thanks: 0 given, 1 received

Thinkscript library, popular scripts and studies

Hi guys. A lot of useful scripts have accumulated. I want to share in this thread.

First script is HIGH, LOW, OPEN, CLOSE – SUPPORT AND RESISTANCE LINE
The indicator will draw levels Opening, Close, High, and Low of a current and previous day on the chart.

 
Code
#thinkscript indicator : OCHLO_levels

#It draws yesterday High, Low, Open, Close support and resistance line

#by thetrader.top

 

input sPeroid = {default DAY, WEEK, MONTH};

input iHigh = {default “yes”, “no”};

input iLow = {default “yes”, “no”};

input iClose = {default “yes”, “no”};

input iOpen = {default “yes”, “no”};

input iTodayOpen = {default “yes”, “no”};

plot pHigh = if !iHigh then high(period = sPeroid)[1] else Double.NaN;

plot pLow = if !iLow then low(period = sPeroid)[1] else Double.NaN;

plot pClose = if !iClose then close(period = sPeroid)[1] else Double.NaN;

plot pOpen = if !iOpen then open(period = sPeroid)[1] else Double.NaN;

plot pTodayOpen = if !iTodayOpen then open(period = sPeroid)[0] else Double.NaN;

 

pHigh.SetDefaultColor (Color.GREEN);

pHigh.SetPaintingStrategy(PaintingStrategy.DASHES);

pLow.SetDefaultColor(Color.RED);

pLow.SetPaintingStrategy(PaintingStrategy.DASHES);

pClose.SetDefaultColor (Color.GRAY);

pClose.SetPaintingStrategy(PaintingStrategy.DASHES);

pOpen.SetDefaultColor (Color.WHITE);

pOpen.SetPaintingStrategy(PaintingStrategy.DASHES);

pTodayOpen.SetDefaultColor (Color.WHITE);

pTodayOpen.SetPaintingStrategy(PaintingStrategy.DASHES);

Reply With Quote
The following user says Thank You to lukeskywalker1 for this post:
 
  #2 (permalink)
Legendary Market Wizard
Chicago Illinois USA
 
Trading Experience: Advanced
Broker/Data: IB, ToS
Favorite Futures: /ES, US Equities/Options
 
wldman's Avatar
 
Posts: 3,081 since Aug 2011
Thanks: 1,712 given, 6,892 received

Thanks man...

for starting this thread. I will be watching with interest.

-Dan

Visit my futures io Trade Journal Reply With Quote
 
  #3 (permalink)
Legendary Market Wizard
Chicago Illinois USA
 
Trading Experience: Advanced
Broker/Data: IB, ToS
Favorite Futures: /ES, US Equities/Options
 
wldman's Avatar
 
Posts: 3,081 since Aug 2011
Thanks: 1,712 given, 6,892 received

Well...


Two of us use ToS and care about script ideas.

-Dan

Visit my futures io Trade Journal Reply With Quote
 
  #4 (permalink)
Phoenix AZ/USA
 
Trading Experience: Beginner
Platform: NT8
Favorite Futures: micros
 
casey44's Avatar
 
Posts: 145 since Jan 2010
Thanks: 2,256 given, 151 received

@wldman
Not used TOS in long time but once heard good comments about this site:
https://thinkscripter.com/community/index.php

Some info about founder Eric Purdy from google, don't know if he's now with Simpler Trading. https://www.simplertrading.com/product/introduction-to-thinkscript-vol-i-ii-iii/

Reply With Quote
The following user says Thank You to casey44 for this post:
 
  #5 (permalink)
Legendary Market Wizard
Chicago Illinois USA
 
Trading Experience: Advanced
Broker/Data: IB, ToS
Favorite Futures: /ES, US Equities/Options
 
wldman's Avatar
 
Posts: 3,081 since Aug 2011
Thanks: 1,712 given, 6,892 received

Thank you...

@casey44

Visit my futures io Trade Journal Reply With Quote
 
  #6 (permalink)
Los Angeles (CA)
 
 
Posts: 4 since Apr 2019
Thanks: 0 given, 1 received

Indicator Outside Bar

The indicator shows us the "Outside Bar" pattern.
It will be shown on any timeframe but I recommend looking at the daytime period. You will see a certain number of signals on the chart.

 
Code
#thinkscript indicator: Outside_Bar.
#It shows the "Outside Bar" pattern
#by thetrader.top

def bSignalDown=open[1]<close[1]and high>high[1] and close<low[1] or open[1]>close[1] and high>high[1] and close<low[1];
def bSignalUp = open[1]>close[1] and low<low[1] and close>high[1] or open[1]<close[1] and low<low[1] and close>high[1];
plot down = if bSignalDown then high else double.NaN;
plot up = if bSignalUp then high else double.NaN;
up.SetPaintingStrategy(paintingStrategy.BOOLEAN_ARROW_up);
down.SetPaintingStrategy(paintingStrategy.BOOLEAN_ARROW_down);
up.setDefaultColor(color.LIGHT_green);
down.setDefaultColor(color.LIGHT_red);
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #7 (permalink)
Los Angeles (CA)
 
 
Posts: 4 since Apr 2019
Thanks: 0 given, 1 received

Inside Bar Indicator

The "Inside Bar" candlestick pattern is shown with arrows when the candlestick pattern is formed in the chart. An Inside Bar is formed when price trades within the high and low range of the previous day, making the candle an inside day or an inside bar. The inside bar is therefore a two candlestick price pattern. An inside bar is also similar to a bullish or a bearish harami candlestick pattern.

⚙Install the indicator in Thinkorswim. There are no special settings, but you can set the color of the arrows, size and so on.
_______________________________________
HTML Code:
#thinkscript indicator:Inside_Bar.
#Shows the pattern “Inside Bar”
#by thetrader.top

def bSignalDown = open[1]>close[1] and open<close and high<high[1] and low>low[1];
def bSignalUp = open[1]<close[1] and open>close and high<high[1] and low>low[1];
plot down = if bSignalDown then high else double.NaN;
plot up = if bSignalUp then high else double.NaN;
up.SetPaintingStrategy(paintingStrategy.BOOLEAN_ARROW_up);
down.SetPaintingStrategy(paintingStrategy.BOOLEAN_ARROW_down);
up.setDefaultColor(color.LIGHT_green);
down.setDefaultColor(color.LIGHT_red);
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #8 (permalink)
St Louis, MO
 
 
Posts: 12 since Jun 2019
Thanks: 5 given, 9 received

simple up-volume : down-volume text bubble for NYSE and NASDAQ to show values on charts...

#up-volume down-volume text bubble

input ShowZeroLine = yes;
input market = {default NYSE, NASDAQ};

def UVOL = close(“$UVOL”);
def DVOL = close(“$DVOL”);
def UVOLQ = close(“$UVOL/Q”);
def DVOLQ = close(“$DVOL/Q”);

#NYSE Breadth ratio
def NYSEratio = (UVOL / DVOL);
AddLabel(yes, Concat(Round(NYSEratio, 2), ” :1 NYSE UpVolownVol”), (if NYSEratio > 1 then Color.GREEN else Color.RED));

#Nasdaq Breadth ratio
def NASDratio = (UVOLQ / DVOLQ);
AddLabel(yes, Concat(Round(NASDratio, 2), ” :1 NASD UpVolownVol”), (if NASDratio > 1 then Color.GREEN else Color.RED));

Reply With Quote
 
  #9 (permalink)
Clearwater FL US
 
Trading Experience: Beginner
Platform: Etrade, TOS and TW
Favorite Futures: SPX, /ES, /RTY, RUT
 
Posts: 15 since Jan 2019
Thanks: 7 given, 5 received

http://b.link/tSCommunity

Its maintained by a scripter that hangs out in the thinkscript lounge on TOS.

Reply With Quote
 
  #10 (permalink)
Los Angeles (CA)
 
 
Posts: 4 since Apr 2019
Thanks: 0 given, 1 received

Double Outside Bar Indicator


The Double Outside Bar candlestick pattern shows signals on the chart with arrows at the moment when such pattern is formed. The signal is very rare.

⚙First, import indicator by using <Edit Studies> menu. It will appear on the list, but you cannot see it right away.You need to enter Studies – User Defined. Click on the necessary indicator and add - "Add Study". There are no special settings for this indicator.
_______________
HTML Code:
#thinkscript indicator: Double_Outside_bar.
#Shows the pattern "Double Outside bar."
#by thetrader.top

def bSignalDown = 0;
def bSignalUp = high[2]<high[1] and high[1]<high and low[2]>low[1] and low[1]>low;
plot down = if bSignalDown then high else double.NaN;
plot up = if bSignalUp then high else double.NaN;
up.SetPaintingStrategy(paintingStrategy.BOOLEAN_ARROW_up);
down.SetPaintingStrategy(paintingStrategy.BOOLEAN_ARROW_down);
up.setDefaultColor(color.LIGHT_green);
down.setDefaultColor(color.LIGHT_red);
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote

Reply



futures io > > > > Thinkscript library, popular scripts and studies




Upcoming Webinars and Events (4:30PM ET unless noted)
 

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert ThinkScript to ThinkScript API t0757tlr ThinkOrSwim Programming 0 May 20th, 2018 12:09 PM
AutoHotKey scripts for editing/debugging NT scripts in Visual Studio swinger NinjaTrader Programming 5 August 10th, 2016 01:59 PM
ThinkScript studies c0ol2 ThinkOrSwim 5 April 8th, 2014 01:50 PM
Plotting studies on studies revbones ThinkOrSwim 1 March 12th, 2012 03:04 AM
School tosses out all books in library, goes high tech Big Mike Off-Topic 4 September 5th, 2009 11:24 PM


All times are GMT -4. The time now is 01:43 PM. (this page content is cached, log in for real-time version)

Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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