| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #9 | ||
![]() | Re: Think or Swim Code/indicators Quote:
Thank you so much for the code. Any hope for getting Volume by Price for ToS? Regards, Bert | ||
| |
|
| The Following User Says Thank You to bertg For This Useful Post: | ||
XWeatherman (03-03-2009) | ||
| | #10 | ||
![]() Join Date: Jan 2008 Location: africa Posts: 988 Thanks: 46
Thanked 41 Times in 33 Posts
Blog Entries: 6 | Re: Think or Swim Code/indicators ...i did not code these... ... i think i found most of them on the following blog... http://hankachilles.spaces.live.com/ | ||
| |
|
| The Following User Says Thank You to elovemer For This Useful Post: | ||
XWeatherman (03-03-2009) | ||
| | #11 | ||
![]() Join Date: Jan 2008 Location: africa Posts: 988 Thanks: 46
Thanked 41 Times in 33 Posts
Blog Entries: 6 | Re: Think or Swim Code/indicators | ||
| |
|
| | #12 | ||
![]() | Re: Think or Swim Code/indicators #developing poc by popstocks, for 2min def swi = if getDayOfMonth() != getDayOfMonth()[1] or secondsfromtime(1614)==0 then 1 else 0; rec fir = if swi == 1 then close else fir[1]; rec b1 = if swi == 1 then 0 else if between(close, fir, fir * 1.002) then volume + b1[1] else b1[1]; rec b2 = if swi == 1 then 0 else if between(close, fir * 0.998, fir) then volume + b2[1] else b2[1]; rec d1 = if swi == 1 then 0 else if between(close, fir * 1.002, fir * 1.004) then volume + d1[1] else d1[1]; rec d2 = if swi == 1 then 0 else if between(close, fir * 1.004, fir * 1.006) then volume + d2[1] else d2[1]; rec d3 = if swi == 1 then 0 else if between(close, fir * 1.006, fir * 1.008) then volume + d3[1] else d3[1]; rec d4 = if swi == 1 then 0 else if between(close, fir * 1.008, fir * 1.010) then volume + d4[1] else d4[1]; rec d5 = if swi == 1 then 0 else if between(close, fir * 1.010, fir * 1.012) then volume + d5[1] else d5[1]; rec d6 = if swi == 1 then 0 else if between(close, fir * 1.012, fir * 1.014) then volume + d6[1] else d6[1]; rec d7 = if swi == 1 then 0 else if between(close, fir * 1.014, fir * 1.016) then volume + d7[1] else d7[1]; rec d8 = if swi == 1 then 0 else if between(close, fir * 1.016, fir * 1.018) then volume + d8[1] else d8[1]; rec d9 = if swi == 1 then 0 else if between(close, fir * 1.018, fir * 1.020) then volume + d9[1] else d9[1]; rec d10 = if swi == 1 then 0 else if between(close, fir * 1.020, fir * 1.022) then volume + d10[1] else d10[1]; rec d11 = if swi == 1 then 0 else if between(close, fir * 1.022, fir * 1.024) then volume + d11[1] else d11[1]; rec d12 = if swi == 1 then 0 else if between(close, fir * 1.024, fir * 1.026) then volume + d12[1] else d12[1]; rec d13 = if swi == 1 then 0 else if between(close, fir * 1.026, fir * 1.028) then volume + d13[1] else d13[1]; rec d14 = if swi == 1 then 0 else if between(close, fir * 1.028, fir * 1.030) then volume + d14[1] else d14[1]; rec z1 = if swi == 1 then 0 else if between(close, fir * 0.996, fir * 0.998) then volume + z1[1] else z1[1]; rec z2 = if swi == 1 then 0 else if between(close, fir * 0.994, fir * 0.996) then volume + z2[1] else z2[1]; rec z3 = if swi == 1 then 0 else if between(close, fir * 0.992, fir * 0.994) then volume + z3[1] else z3[1]; rec z4 = if swi == 1 then 0 else if between(close, fir * 0.990, fir * 0.992) then volume + z4[1] else z4[1]; rec z5 = if swi == 1 then 0 else if between(close, fir * 0.988, fir * 0.990) then volume + z5[1] else z5[1]; rec z6 = if swi == 1 then 0 else if between(close, fir * 0.986, fir * 0.988) then volume + z6[1] else z6[1]; rec z7 = if swi == 1 then 0 else if between(close, fir * 0.984, fir * 0.986) then volume + z7[1] else z7[1]; rec z8 = if swi == 1 then 0 else if between(close, fir * 0.982, fir * 0.984) then volume + z8[1] else z8[1]; rec z9 = if swi == 1 then 0 else if between(close, fir * 0.980, fir * 0.982) then volume + z9[1] else z9[1]; rec z10 = if swi == 1 then 0 else if between(close, fir * 0.978, fir * 0.980) then volume + z10[1] else z10[1]; rec z11 = if swi == 1 then 0 else if between(close, fir * 0.976, fir * 0.978) then volume + z11[1] else z11[1]; rec z12 = if swi == 1 then 0 else if between(close, fir * 0.974, fir * 0.976) then volume + z12[1] else z12[1]; rec z13 = if swi == 1 then 0 else if between(close, fir * 0.972, fir * 0.974) then volume + z13[1] else z13[1]; rec z14 = if swi == 1 then 0 else if between(close, fir * 0.970, fir * 0.972) then volume + z14[1] else z14[1]; def o = Max(d1, Max(d2, Max(d3, Max(d4, Max(d5, Max(d6, Max(d7, 0))))))); def n = Max(d8, Max(d9, Max(d10, Max(d11, Max(d12, Max(d13, Max(d14, 0))))))); def w = Max(z1, Max(z2, Max(z3, Max(z4, Max(z5, Max(z6, Max(z7, 0))))))); def s = Max(z8, Max(z9, Max(z10, Max(z11, Max(z12, Max(z13, Max(z14, 0))))))); def g = Max(b1, Max(b2, Max(n, Max(w, Max(s, o))))); rec po = if g > g[1] then ( ( sum(hlc3*volume,20) / sum(volume,20) ) + average(hlc3,15) )/2 else po[1]; rec pop = if swi==1 then po[1] else pop[1]; def poc = if pop == 0 then double.nan else pop; plot pz = poc * 1.0015; plot py = poc * 0.9985; def yo = po; plot yos = if isnan(close[-1]) then double.NaN else if yo != 0 then yo else double.nan; #yos.SetPaintingStrategy( paintingstrategy.points); yos.hidebubble(); | ||
| |
|
| The Following User Says Thank You to popstocks For This Useful Post: | ||
elovemer (10-17-2008) | ||
| | #13 | ||
![]() Join Date: Jan 2008 Location: africa Posts: 988 Thanks: 46
Thanked 41 Times in 33 Posts
Blog Entries: 6 | Re: Think or Swim Code/indicators ...about VWAP..... ...the way i use it on TOS is ... during globex.... i include the previous days action ... and look for a return to VWAP.... .... or look for a return to it ... during regular hours if it did not make it during globex.... ...how do you use POINT OF CHANGE... on the 2 min chart ? | ||
| |
|
| | #14 | ||
![]() | Re: Think or Swim Code/indicators Here is the 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)); | ||
| |
|
| The Following User Says Thank You to semperfiguy223 For This Useful Post: | ||
trader_john (11-20-2008) | ||
| | #15 | ||
![]() | Re: Think or Swim Code/indicators Quote:
| ||
| |
|
| | #16 | ||
![]() | Re: Think or Swim Code/indicators Copy the text to a notepad and do a find replace. You want to change all of the 'getdayofmonth' to just 'getday' | ||
| |
|
| The Following User Says Thank You to popstocks For This Useful Post: | ||
semperfiguy223 (11-12-2008) | ||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TTM Indicators for CQG? | bathrobe | Coding Forum | 3 | 01-03-2011 07:01 AM |
| TradeStation Strategy Code Help | jjthetrader | Coding Forum | 2 | 10-26-2010 09:06 AM |
| TTM trend esignal code | philloo | Trading Indicators | 9 | 04-16-2009 10:51 AM |
| Does Anyone have the TTM Scalper Code for Esignal??? | jphillips9 | Beginners Forum | 5 | 01-14-2008 08:26 PM |
| Floor Trader Pivot Code Help.... | jmi88 | Coding Forum | 1 | 05-22-2007 11:13 PM |