Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 07-08-2010, 07:49 PM   #1

dimsontt's Avatar

Join Date: Jul 2010
Location: Toronto
Posts: 3
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Coding for Thinkorswim Platform

Hi everyone!
I need help to write a code for thinkorswim platform.

Thanks in advance.
dimsontt is offline  
Reply With Quote
Old 07-22-2010, 05:13 PM   #2

Join Date: Mar 2009
Posts: 1
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Coding for Thinkorswim Platform

I have some experience with thinkorswim. What are you looking to do?
adonis is offline  
Reply With Quote
Old 07-23-2010, 06:36 PM   #3

dimsontt's Avatar

Join Date: Jul 2010
Location: Toronto
Posts: 3
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Coding for Thinkorswim Platform

Hi adonis,
Here is the link: Trader-Online.pl® - TradeStation™ Zone - Cooper's System

There are more then one buy or sell set ups, so would it be possible to write a script based on those parameters?

TNX
dimsontt is offline  
Reply With Quote
Old 07-25-2010, 09:14 AM   #4

Join Date: May 2010
Location: Norcross
Posts: 189
Ignore this user

Thanks: 20
Thanked 214 Times in 108 Posts

Re: Coding for Thinkorswim Platform

An excellent TOS coder... He also runs a forum where manyTOS users hang out..

ThinkScripter – Custom ThinkScript Indicators for the thinkorswim Trading Platform
Attila is offline  
Reply With Quote
Old 07-25-2010, 11:17 AM   #5

dimsontt's Avatar

Join Date: Jul 2010
Location: Toronto
Posts: 3
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Coding for Thinkorswim Platform

Tnx Attila, I'll look it up.
dimsontt is offline  
Reply With Quote
Old 07-29-2010, 04:31 PM   #6

Join Date: May 2010
Location: Norcross
Posts: 189
Ignore this user

Thanks: 20
Thanked 214 Times in 108 Posts

Re: Coding for Thinkorswim Platform

Quote:
Originally Posted by adonis »
I have some experience with thinkorswim. What are you looking to do?
adonis.. could you help me with this? I need to modify this opening range script to draw an additional line at the market's open and have no clue what to do..

# TS_OpeningRange
# ThinkScripter – Custom ThinkScript Indicators for thinkorswim
# thinkscripter@gmail.com
# Last Update 01 SEP 2009

input showOnlyToday = YES;
input openingRangeMinutes = 60;
input Market_Open_Time = 0930;
input Market_Close_Time = 1600;

def day = getDay();
def lastDay = getLastDay();
def isToday = if(day==lastDay,1,0);
def shouldPlot = if(showOnlyToday and isToday, 1,if(!showOnlyToday,1,0)) ;
def pastOpen = if((secondsTillTime(Marke t_Open_Time) > 0), 0, 1);
def pastClose = if((secondsTillTime(Marke t_Close_Time) > 0), 0, 1);
def marketOpen = if(pastOpen and !pastClose, 1, 0);
def firstBar = if (day[1] != day, day - 1, 0);

def secondsUntilOpen = secondsTillTime(Market_Op en_Time);
def regularHours = secondsTillTime(Market_Cl ose_Time);

def secondsFromOpen = secondsFromTime(Market_Op en_Time);
def pastOpeningRange = if(secondsFromOpen >= (openingRangeMinutes * 60), 1, 0);


REC displayedHigh = if(high > displayedHigh[1] and marketOpen, high, if(marketOpen and !firstBar, displayedHigh[1], high));
REC displayedLow = if(low < displayedLow[1] and marketOpen, low, if(marketOpen and !firstBar, displayedLow[1], low));

rec ORHigh = if(pastOpeningRange, ORHigh[1], displayedHigh);
rec ORLow = if(pastOpeningRange, ORLow[1], displayedLow);

plot Opening_Range_High = if(pastOpeningRange and marketOpen and shouldPlot, ORHigh, double.nan);
plot Opening_Range_Low = if(pastOpeningRange and marketOpen and shouldPlot, ORLow , double.nan);
Opening_Range_High.SetDef aultColor(color.green);
Opening_Range_High.SetLin eWeight(2);
Opening_Range_High.SetSty le(curve.POINTS);
Opening_Range_Low.SetDefa ultColor(color.red);
Opening_Range_Low.SetLine Weight(2);
Opening_Range_Low.SetStyl e(curve.POINTS);

Last edited by Attila; 07-29-2010 at 04:36 PM.
Attila is offline  
Reply With Quote
Old 09-23-2011, 06:11 PM   #7

Join Date: Nov 2008
Location: around
Posts: 6
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Coding for Thinkorswim Platform

I am looking for a simple script to plot closes and highs for any given time frame I specify. Monthy, week, year, hour, 4 hour, quarter. Any thoughts?
xburbx is offline  
Reply With Quote

Reply

Tags
dr.cooper, think or swim

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Platform for Stock Day Trading? SAMUEL4 Trading and the Markets 5 10-05-2010 08:11 AM
Different Data Feeds from Your Charting Platform Vs. Trading DOM marker Brokers and Data Feeds 7 07-04-2010 11:58 AM

All times are GMT -4. The time now is 09:17 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.