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



Thinkscript library, popular scripts and studies


Discussion in ThinkOrSwim

Updated by bobwest
      Top Posters
    1. looks_one lukeskywalker1 with 22 posts (9 thanks)
    2. looks_two wldman with 3 posts (0 thanks)
    3. looks_3 futs with 1 posts (0 thanks)
    4. looks_4 GJStrader with 1 posts (0 thanks)
    1. trending_up 11,855 views
    2. thumb_up 11 thanks given
    3. group 15 followers
    1. forum 28 replies
    2. attach_file 18 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

Thinkscript library, popular scripts and studies

(login for full post details)
  #1 (permalink)
Los Angeles (CA)
 
Experience: Master
Platform: ThinkOrSwim
Trading: Currency Future, Stocks
 
lukeskywalker1's Avatar
 
Posts: 29 since Apr 2019

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);

Visit my Facebook Visit my futures io Trade Journal Reply With Quote

Can you help answer these questions
from other members on futures io?
Delta PVP ( POC )
MultiCharts
Historical option expirations
Brokers
Double Smoothed Stochastics Sound & Chart Allerts
The Elite Circle
Trading Rig Upgrade for Backtesting/Optimization in Multicharts
MultiCharts
Can Tradingviews Drawing tool create limit order
Platforms and Indicators
 
 
(login for full post details)
  #2 (permalink)
Market Wizard
Chicago Illinois USA
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
 
wldman's Avatar
 
Posts: 3,330 since Aug 2011
Thanks: 1,959 given, 8,738 received

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

-Dan

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #3 (permalink)
Market Wizard
Chicago Illinois USA
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
 
wldman's Avatar
 
Posts: 3,330 since Aug 2011
Thanks: 1,959 given, 8,738 received


Two of us use ToS and care about script ideas.

-Dan

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #4 (permalink)
Flagstaff AZ/USA
 
Experience: Beginner
Platform: NT8
Trading: micros
 
casey44's Avatar
 
Posts: 187 since Jan 2010
Thanks: 2,948 given, 238 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://simplertrading.com/product/introduction-to-thinkscript-vol-i-ii-iii/

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to casey44 for this post:
 
(login for full post details)
  #5 (permalink)
Market Wizard
Chicago Illinois USA
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
 
wldman's Avatar
 
Posts: 3,330 since Aug 2011
Thanks: 1,959 given, 8,738 received

@casey44

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #6 (permalink)
Los Angeles (CA)
 
Experience: Master
Platform: ThinkOrSwim
Trading: Currency Future, Stocks
 
lukeskywalker1's Avatar
 
Posts: 29 since Apr 2019

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);

Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #7 (permalink)
Los Angeles (CA)
 
Experience: Master
Platform: ThinkOrSwim
Trading: Currency Future, Stocks
 
lukeskywalker1's Avatar
 
Posts: 29 since Apr 2019

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);

Visit my Facebook Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #8 (permalink)
St Louis, MO
 
 
Posts: 12 since Jun 2019
Thanks: 5 given, 10 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
 
(login for full post details)
  #9 (permalink)
Clearwater FL US
 
Experience: Beginner
Platform: Etrade, TOS and TW
Trading: SPX, /ES, /RTY, RUT
 
Posts: 18 since Jan 2019
Thanks: 12 given, 7 received

https://onedrive.live.com/redir?resid=2FF733D1BA1E1E79!404&authkey=!ABOXXFyQg1iUqFk

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

Reply With Quote
 
(login for full post details)
  #10 (permalink)
Los Angeles (CA)
 
Experience: Master
Platform: ThinkOrSwim
Trading: Currency Future, Stocks
 
lukeskywalker1's Avatar
 
Posts: 29 since Apr 2019


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);


Visit my Facebook Visit my futures io Trade Journal Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > Thinkscript library, popular scripts and studies


September 6, 2020


Upcoming Webinars and Events
 

Bookmap

Nov TBD
     



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