| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Think or Swim Code/indicators 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 | ||
| |
|
| | #2 | ||
![]() | Re: Think or Swim Code/indicators Anybody using TOS even?
__________________ Looking for a top notch market interaction & analysis blog? Visit www.TradersBase.com | ||
| |
|
| | #3 | ||
![]() | Re: Think or Swim Code/indicators 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. | ||
| |
|
| | #4 | ||
![]() | Re: Think or Swim Code/indicators Quote:
![]() 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 | ||
| |
|
| The Following User Says Thank You to MC For This Useful Post: | ||
gm1962 (01-28-2009) | ||
| | #5 | ||
![]() | Re: Think or Swim Code/indicators .... 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:
| ||
| |
|
| The Following 3 Users Say Thank You to elovemer For This Useful Post: | ||
| | #6 | ||
![]() | Re: Think or Swim Code/indicators Any ideas?
__________________ Looking for a top notch market interaction & analysis blog? Visit www.TradersBase.com | ||
| |
|
| | #7 | ||
![]() | Re: Think or Swim Code/indicators 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:
| ||
| |
|
| The Following 4 Users Say Thank You to elovemer For This Useful Post: | ||
| | #8 | ||
![]() | Re: Think or Swim Code/indicators 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. | ||
| |
|
| The Following User Says Thank You to MC For This Useful Post: | ||
XWeatherman (03-03-2009) | ||
![]() |
| Thread Tools | |
| Display Modes | 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 |