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

Reply
Old 02-05-2008, 11:57 AM   #1
MC

MC's Avatar

Join Date: Sep 2007
Location: NY
Posts: 533
Ignore this user

Thanks: 180
Thanked 53 Times in 41 Posts

Think or Swim Code/indicators

Does anyone on here use think or swim and have any of the great indicators coded like we have for tradestation.

I would be interested in VWAP and 3bar trend mainly.
Also maybe a value chart, ttm trend, ttm scalper alert.
I don't know that it would be an option but a volume by price/price histogram.

Thanks guys
__________________
Looking for a top notch market interaction & analysis blog? Visit www.TradersBase.com
MC is offline  
Reply With Quote
Old 02-06-2008, 12:14 PM   #2
MC

MC's Avatar

Join Date: Sep 2007
Location: NY
Posts: 533
Ignore this user

Thanks: 180
Thanked 53 Times in 41 Posts

Re: Think or Swim Code/indicators

Bump.

Anybody using TOS even?
__________________
Looking for a top notch market interaction & analysis blog? Visit www.TradersBase.com
MC is offline  
Reply With Quote
Old 02-06-2008, 12:38 PM   #3

darthtrader's Avatar

Join Date: Apr 2007
Location: western ny
Posts: 336
Ignore this user

Thanks: 5
Thanked 43 Times in 22 Posts

Re: Think or Swim Code/indicators

I tried it out last year, I actually didn't even realize they have a scripting engine.
That's very interesting. Does it do backtesting on options?
I think it could be tough to find the stuff you want without coding it yourself though.
darthtrader is offline  
Reply With Quote
Old 02-06-2008, 01:01 PM   #4
MC

MC's Avatar

Join Date: Sep 2007
Location: NY
Posts: 533
Ignore this user

Thanks: 180
Thanked 53 Times in 41 Posts

Re: Think or Swim Code/indicators

Quote:
Originally Posted by darthtrader »
I tried it out last year, I actually didn't even realize they have a scripting engine.
That's very interesting. Does it do backtesting on options?
I think it could be tough to find the stuff you want without coding it yourself though.
They do have custom coding...I'm no good at coding so I would have to beg or pay someone to do the dirty work if it's not easily ported over.

I believe they are talking of backtesting soon being added, though I don't use them yet so I can't confirm that.
__________________
Looking for a top notch market interaction & analysis blog? Visit www.TradersBase.com
MC is offline  
Reply With Quote
The Following User Says Thank You to MC For This Useful Post:
gm1962 (01-28-2009)
Old 09-09-2008, 07:12 AM   #5

Join Date: Jan 2008
Location: africa
Posts: 1,110
Ignore this user

Thanks: 46
Thanked 81 Times in 64 Posts
Blog Entries: 6

Re: Think or Swim Code/indicators

...here is TTM squeeze...
....
declare lower;
input Length = 20;
input price = close;
######################
def e1 = (Highest(High, length) + Lowest(low, length)) / 2 + Average(close, length);
def osc = Inertia(price - e1 / 2, length);
plot oscp = osc;

def diff = reference bollingerbands(length = 20)."upperband" - reference KeltnerChannels."Upper_Ba nd";
plot mid = 0;
mid.assignValueColor(if diff >= 0 then Color.UPTICK else Color.DOWNTICK);

#oscp.assignValueColor(if osc[1] < osc[0] then Color.CYAN else Color.magenta);
oscp.assignValueColor(if osc[1] < osc[0] then
if osc[0] >= 0 then
#UpPos
createColor(0, 255, 255) else
#UpNeg
createColor(204, 0, 204)
else if osc[0] >= 0 then
#DnPos
createColor(0, 155, 155) else
#DnNeg
createColor(255, 155, 255));

oscp.setPaintingStrategy( PaintingStrategy.HISTOGRA M);
mid.setPaintingStrategy(P aintingStrategy.POINTS);
...........
and here is VWAP
.....
plot Data = TotalSum(Volume * Close) / TotalSum(Volume);
................
and here is TICK
.............
declare lower;
plot data = high("$tick");
Plot Data2 = low("$tick");
plot ZeroLine = 0;
plot up = 800;
plot down = -1000;
Plot Noise = 600;
Plot Noise2 = -600;
zeroline.setDefaultColor( color.blue);
Noise.setDefaultColor(col or.yellow);
noise2.setDefaultColor(co lor.yellow);
up.setDefaultColor(color. uptick);
down.setDefaultColor(colo r.uptick);
data.assignValueColor(if data >= 800 then Color.upTICK else Color.blue);
data.setLineWeight(2);
Data.setPaintingStrategy( PaintingStrategy.HISTOGRA M);
data2.assignValueColor(if data2 <= -1000 then Color.downtick else Color.blue);
data2.setLineWeight(2);
Data2.setPaintingStrategy (PaintingStrategy.HISTOGR AM);
ZeroLine.setDefaultColor( GetColor(0));
............
Quote:
Originally Posted by MC »
Does anyone on here use think or swim and have any of the great indicators coded like we have for tradestation.
I would be interested in VWAP and 3bar trend mainly.
Also maybe a value chart, ttm trend, ttm scalper alert.
I don't know that it would be an option but a volume by price/price histogram.
Thanks guys
elovemer is offline  
Reply With Quote
The Following 3 Users Say Thank You to elovemer For This Useful Post:
Brookwood (09-09-2008), MC (09-09-2008), XWeatherman (03-03-2009)
Old 09-09-2008, 09:30 AM   #6
MC

MC's Avatar

Join Date: Sep 2007
Location: NY
Posts: 533
Ignore this user

Thanks: 180
Thanked 53 Times in 41 Posts

Re: Think or Swim Code/indicators

Thanks...very cool. The squeeze doesn't load on the screen for some reason and it's red in the list of active indicators. Wonder if I'm doing something wrong.

Any ideas?
__________________
Looking for a top notch market interaction & analysis blog? Visit www.TradersBase.com
MC is offline  
Reply With Quote
Old 09-10-2008, 04:50 PM   #7

Join Date: Jan 2008
Location: africa
Posts: 1,110
Ignore this user

Thanks: 46
Thanked 81 Times in 64 Posts
Blog Entries: 6

Re: Think or Swim Code/indicators

try again ?


declare lower;
input Length = 20;
input price = close;
######################
def e1 = (Highest(High, length) + Lowest(low, length)) / 2 + Average(close, length);
def osc = Inertia(price - e1 / 2, length);
plot oscp = osc;

def diff = reference bollingerbands(length = 20)."upperband" - reference KeltnerChannels."Upper_Ba nd";
plot mid = 0;
mid.assignValueColor(if diff >= 0 then Color.UPTICK else Color.DOWNTICK);

#oscp.assignValueColor(if osc[1] < osc[0] then Color.CYAN else Color.magenta);
oscp.assignValueColor(if osc[1] < osc[0] then
if osc[0] >= 0 then
#UpPos
createColor(0, 255, 255) else
#UpNeg
createColor(204, 0, 204)
else if osc[0] >= 0 then
#DnPos
createColor(0, 155, 155) else
#DnNeg
createColor(255, 155, 255));

oscp.setPaintingStrategy( PaintingStrategy.HISTOGRA M);
mid.setPaintingStrategy(P aintingStrategy.POINTS);




Quote:
Originally Posted by MC »
Thanks...very cool. The squeeze doesn't load on the screen for some reason and it's red in the list of active indicators. Wonder if I'm doing something wrong.
Any ideas?
elovemer is offline  
Reply With Quote
The Following 4 Users Say Thank You to elovemer For This Useful Post:
Brookwood (09-17-2008), MC (09-10-2008), XWeatherman (03-03-2009)
Old 09-10-2008, 04:58 PM   #8
MC

MC's Avatar

Join Date: Sep 2007
Location: NY
Posts: 533
Ignore this user

Thanks: 180
Thanked 53 Times in 41 Posts

Re: Think or Swim Code/indicators

elovmer...same thing on my end still. Sorry to be a pain.
Has anybody else tried the code for squeeze and had it work? I've never had a custom indicator come up red in my list so I'm confused as to whats wrong.

Edit---
Found it...the space in code for "upper_ba nd" slipped by me. I deleted that space and shes good to go.

Thanks a bunch. Did you code these? I have one other indicator I miss from tradestation that I wonder about having coded for TOS.
__________________
Looking for a top notch market interaction & analysis blog? Visit www.TradersBase.com

Last edited by MC; 09-28-2008 at 12:35 AM.
MC is offline  
Reply With Quote
The Following User Says Thank You to MC For This Useful Post:
XWeatherman (03-03-2009)

Reply

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
TTM Indicators for CQG? bathrobe Coding Forum 3 01-03-2011 06:01 AM
TradeStation Strategy Code Help jjthetrader Coding Forum 2 10-26-2010 08:06 AM
TTM trend esignal code philloo Trading Indicators 9 04-16-2009 09:51 AM
Does Anyone have the TTM Scalper Code for Esignal??? jphillips9 Beginners Forum 5 01-14-2008 07:26 PM
Floor Trader Pivot Code Help.... jmi88 Coding Forum 1 05-22-2007 10:13 PM

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