VSA for ThinkorSwim - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


VSA for ThinkorSwim
Updated: Views / Replies:169,868 / 429
Created: by cbritton Attachments:131

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 131  
 
Thread Tools Search this Thread
 

VSA for ThinkorSwim

  #161 (permalink)
Trading for Profit
Chicago + Illinois/USA
 
Futures Experience: Beginner
Platform: ThinkOrSwim
Favorite Futures: Stock
 
StockJock's Avatar
 
Posts: 256 since Aug 2010
Thanks: 15 given, 148 received

Very interesting and very innovative.

Reply With Quote
 
  #162 (permalink)
Trading Apprentice
USA
 
Futures Experience: Beginner
Platform: ThinkorSwim
Favorite Futures: futures
 
Posts: 11 since Sep 2010
Thanks: 5 given, 1 received

Disable certain signals


StockJock View Post
In stead of reducing the number of signals, how about providing the option to turn some signals off for those who prefer less "noise".

First off thanks to all who have contributed to this topic. I also have been following along with this. The ability to turn off certain signals already exists in the edit studies section. If there is a certain signal you do not wish to observe go to edit studies, click on the signal you have in question, scroll down and just uncheck the show plot icon. Thanks again to all.

Reply With Quote
 
  #163 (permalink)
Trading for Fun
LA, CA
 
Futures Experience: Advanced
Platform: Infinity, IB, TOS
Favorite Futures: currency futures
 
Posts: 93 since Jul 2010
Thanks: 2 given, 24 received



dqbuzz View Post
The ability to turn off certain signals already exists in the edit studies section. If there is a certain signal you do not wish to observe go to edit studies, click on the signal you have in question, scroll down and just uncheck the show plot icon.

Yep, that should work for toggling the display of a symbol on or off. Thanks.

Reply With Quote
 
  #164 (permalink)
Trading for Profit
Chicago + Illinois/USA
 
Futures Experience: Beginner
Platform: ThinkOrSwim
Favorite Futures: Stock
 
StockJock's Avatar
 
Posts: 256 since Aug 2010
Thanks: 15 given, 148 received

Good point. That should take care of the extra "noise". I'm still interested in the "sensitivity" concept though. I've haven't heard of that before. Also maybe others who are silently reading this thread can contribute some input for snowcloud on his project.

Reply With Quote
 
  #165 (permalink)
Trading for Profit
Chicago + Illinois/USA
 
Futures Experience: Beginner
Platform: ThinkOrSwim
Favorite Futures: Stock
 
StockJock's Avatar
 
Posts: 256 since Aug 2010
Thanks: 15 given, 148 received

I though that I'd change the chart labels for me to be able to understand them better. Let me know if I read your abreviated labels correctly. I'm also thinking of having the trend labels to have an up color and a down color. I see the code for the short, middle and long term calculations, but its still not clear to me what the lengths of these time periods are by looking at the formulae.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).



 
Code
# VOLUME LABEL *************************
AddChartLabel(trendText, concat("Volume: ", if volume > sAvgVolume[0] + 2.0 * sAvgVolumeSTD then "Very High"
else if Volume[0] > (sAvgVolume[0] + 1.0 * sAvgVolumeSTD) then "High" else if (Volume[0] > sAvgVolume[0]) then "Above Average" else if (Volume[0] < sAvgVolume[0] && Volume[0] > (sAvgVolume[0] - 1.0 * sAvgVolumeSTD)) then "Below Average" else if (Volume[0] < (sAvgVolume[0] - 1.0 * sAvgVolumeSTD)) then "Low" else ""), Color.white);
# BAR SPREAD LABEL ************************* AddChartLabel(trendText, concat("Spread: ", if (spread > (avgSpread * 2.0)) then "Wide" else if (spread > avgSpread) then "Above Average" else "Narrow"), Color.white); # C_RP 20100809 added isVeryLowCloseBar and changed execution order so that both Verys and Mid execute first
# BAR CLOSE POSITION ************************* AddChartLabel(trendText, concat("Bar Close: ", if (isVeryHighCloseBar) then "Very High" else if (isVeryLowCloseBar) then "Very Low" else if (isMidCloseBar) then "Mid Bar" else if (isUpCloseBar) then "Up Bar" else if (isDownCloseBar) then "Down Bar" else "No Change"), Color.white);
# PRICE TREND ************************* AddChartLabel(trendText, concat("Trend: ", concat("Short Term ", if (ShortTermTrendSlope > 0) then "Up" else "Down")), Color.white);
AddChartLabel(trendText, concat("Middle Term ", if (MiddleTermTrendSlope > 0) then "Up" else "Down"), Color.white);
AddChartLabel(trendText, concat("Long Term ", if (LongTermTrendSlope > 0) then "Up" else "Down"), Color.white);

Reply With Quote
The following user says Thank You to StockJock for this post:
 
  #166 (permalink)
Trading for Fun
LA, CA
 
Futures Experience: Advanced
Platform: Infinity, IB, TOS
Favorite Futures: currency futures
 
Posts: 93 since Jul 2010
Thanks: 2 given, 24 received


StockJock View Post
I though that I'd change the chart labels for me to be able to understand them better. Let me know if I read your abreviated labels correctly. I'm also thinking of having the trend labels to have an up color and a down color. I see the code for the short, middle and long term calculations, but its still not clear to me what the lengths of these time periods are by looking at the formulae.

 
Code
# VOLUME LABEL *************************
AddChartLabel(trendText, concat("Volume: ", if volume > sAvgVolume[0] + 2.0 * sAvgVolumeSTD then "Very High"
else if Volume[0] > (sAvgVolume[0] + 1.0 * sAvgVolumeSTD) then "High" else if (Volume[0] > sAvgVolume[0]) then "Above Average" else if (Volume[0] < sAvgVolume[0] && Volume[0] > (sAvgVolume[0] - 1.0 * sAvgVolumeSTD)) then "Below Average" else if (Volume[0] < (sAvgVolume[0] - 1.0 * sAvgVolumeSTD)) then "Low" else ""), Color.white);
# BAR SPREAD LABEL ************************* AddChartLabel(trendText, concat("Spread: ", if (spread > (avgSpread * 2.0)) then "Wide" else if (spread > avgSpread) then "Above Average" else "Narrow"), Color.white); # C_RP 20100809 added isVeryLowCloseBar and changed execution order so that both Verys and Mid execute first
# BAR CLOSE POSITION ************************* AddChartLabel(trendText, concat("Bar Close: ", if (isVeryHighCloseBar) then "Very High" else if (isVeryLowCloseBar) then "Very Low" else if (isMidCloseBar) then "Mid Bar" else if (isUpCloseBar) then "Up Bar" else if (isDownCloseBar) then "Down Bar" else "No Change"), Color.white);
# PRICE TREND ************************* AddChartLabel(trendText, concat("Trend: ", concat("Short Term ", if (ShortTermTrendSlope > 0) then "Up" else "Down")), Color.white);
AddChartLabel(trendText, concat("Middle Term ", if (MiddleTermTrendSlope > 0) then "Up" else "Down"), Color.white);
AddChartLabel(trendText, concat("Long Term ", if (LongTermTrendSlope > 0) then "Up" else "Down"), Color.white);

The only thing that stands out to me is that the Close Bar labels should say "UpCloseBar", etc. An UpBar is not necessarily an UpCloseBar, etc.

I shortened the original labels so that I could see more of the Description text without having to extend the chart across the entire screen. If you want to see the original labels, load one of cbritton's earlier versions from near the beginning of this thread. All of the originals are still there.

Reply With Quote
 
  #167 (permalink)
Trading for Profit
Chicago + Illinois/USA
 
Futures Experience: Beginner
Platform: ThinkOrSwim
Favorite Futures: Stock
 
StockJock's Avatar
 
Posts: 256 since Aug 2010
Thanks: 15 given, 148 received


snowcloud View Post
the Close Bar labels should say "UpCloseBar", etc. An UpBar is not necessarily an UpCloseBar, etc.

I don't understand. Your label says "Close". Every bar has a close; so what do you mean by a "Close Bar"? Do you mean "BarCloseUp", "BarCloseMiddle" or "BarCloseDown"?


Last edited by StockJock; September 23rd, 2010 at 10:16 PM.
Reply With Quote
 
  #168 (permalink)
Trading for Fun
LA, CA
 
Futures Experience: Advanced
Platform: Infinity, IB, TOS
Favorite Futures: currency futures
 
Posts: 93 since Jul 2010
Thanks: 2 given, 24 received


StockJock View Post
I don't understand. Your label says "Close". Every bar has a close; so what do you mean by a "Close Bar"? Do you mean "BarCloseUp", "BarCloseMiddle" or "BarCloseDown"?

You're right. Sorry, I answered in haste and erred. Here are the trend text defs from the original file:

# Trend Text Definitions
AddChartLabel(trendText, concat("Vol: ", if volume > sAvgVolume[0] + 2.0 * sAvgVolumeSTD then "Very High"
else if Volume[0] > (sAvgVolume[0] + 1.0 * sAvgVolumeSTD) then "High"
else if (Volume[0] > sAvgVolume[0]) then "Above Average"
else if (Volume[0] < sAvgVolume[0] && Volume[0] > (sAvgVolume[0] - 1.0 * sAvgVolumeSTD)) then "Less Than Average"
else if (Volume[0] < (sAvgVolume[0] - 1.0 * sAvgVolumeSTD)) then "Low"
else ""), Color.white);
AddChartLabel(trendText, concat("Spread: ", if (spread > (avgSpread * 2.0)) then "Wide"
else if (spread > avgSpread) then "Above Average"
else "Narrow"), Color.white);
AddChartLabel(trendText, concat("Close: ", if (isVeryHighCloseBar) then "Very High"
else if (isUpCloseBar) then "High"
else if (isMidCloseBar) then "Mid"
else if (isDownCloseBar) then "Down"
else "Very Low"), Color.white);
AddChartLabel(trendText, concat("Trend: ", concat("Short Term ", if (ShortTermTrendSlope > 0) then "Up"
else "Down")), Color.white);
AddChartLabel(trendText, concat("Mid Term ", if (MiddleTermTrendSlope > 0) then "Up" else "Down"), Color.white);
AddChartLabel(trendText, concat("Long Term ", if (LongTermTrendSlope > 0) then "Up" else "Down"), Color.white);

Reply With Quote
 
  #169 (permalink)
Trading for Profit
Chicago + Illinois/USA
 
Futures Experience: Beginner
Platform: ThinkOrSwim
Favorite Futures: Stock
 
StockJock's Avatar
 
Posts: 256 since Aug 2010
Thanks: 15 given, 148 received

Thanks for your reply. Sometimes abreviations get me confused until I learn them well. Anyway, I thought that I'd see what it looks like to have the trend labels change colors for their ups and downs.

 
Code
AddChartLabel(trendText, concat("Trend: ", concat("Short Term ", if (ShortTermTrendSlope > 0) then "Up" else "Down")), if (ShortTermTrendSlope > 0) then Color.green else Color.red);
AddChartLabel(trendText, concat("Mid Term ", if (MiddleTermTrendSlope > 0) then "Up" else "Down"), if (MiddleTermTrendSlope > 0) then Color.green else Color.red);
AddChartLabel(trendText, concat("Long Term ", if (LongTermTrendSlope > 0) then "Up" else "Down"), if (LongTermTrendSlope > 0) then Color.green else Color.red);
Also, I thought I'd test a differrent color for the lime green price bars, because to me lime green is too close in color to green. This way I'd add a little contrast to the price bar colors.

 
Code
AssignPriceColor( if colorBars and shortTermTrendSlope > 0 and MiddleTermTrendSlope > 0 and longtermtrendslope > 0 then CreateColor(0, 255, 0)
 else if colorBars and shortTermTrendSlope > 0 and MiddleTermTrendSlope > 0 and longtermtrendslope < 0 then Color.green else if
colorBars and shortTermTrendSlope > 0 and MiddleTermTrendSlope < 0 and longtermtrendslope < 0 then CreateColor(124, 116, 228) else if
colorBars and shortTermTrendSlope < 0 and MiddleTermTrendSlope < 0 and longtermtrendslope < 0 then Color.red else if
colorBars and shortTermTrendSlope < 0 and MiddleTermTrendSlope > 0 and longtermtrendslope > 0 then CreateColor(0, 255, 255) else if
colorBars and shortTermTrendSlope < 0 and MiddleTermTrendSlope < 0 and longtermtrendslope > 0 then color.orange
else if colorBars then Color.yellow else GetColor(7));
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Last edited by StockJock; September 24th, 2010 at 11:38 AM.
Reply With Quote
 
  #170 (permalink)
Trading for Profit
Chicago + Illinois/USA
 
Futures Experience: Beginner
Platform: ThinkOrSwim
Favorite Futures: Stock
 
StockJock's Avatar
 
Posts: 256 since Aug 2010
Thanks: 15 given, 148 received


I though it would be good to have chart labels for the color codes of the price bars, so I made some code for it. Unfortunaltely, the labels are kind of wide. Any suggestions on what to do to get these labels to fit the screen would be helpful.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

 
Code
# SJ_PlotVolumeLabels plot Shares = Volume; Shares.SetPaintingStrategy(PaintingStrategy.HISTOGRAM); # Shares.HideTitle(); # Trend Definitions rec fiveDaysSma = compoundValue(5, Average(close, 5)[0], Double.NaN); def LongTermTrendSlope = LinearRegressionSlope(price = fiveDaysSma, length = 40)[0]; def MiddleTermTrendSlope = LinearRegressionSlope(price = fiveDaysSma, length = 15)[0]; def ShortTermTrendSlope = LinearRegressionSlope(price = fiveDaysSma, length = 5)[0]; ###### # Candle definitions Shares.AssignValueColor( if shortTermTrendSlope > 0 and MiddleTermTrendSlope > 0 and longtermtrendslope > 0 then CreateColor(0, 255, 0) else if shortTermTrendSlope > 0 and MiddleTermTrendSlope > 0 and longtermtrendslope < 0 then Color.green else if shortTermTrendSlope > 0 and MiddleTermTrendSlope < 0 and longtermtrendslope < 0 then CreateColor(124, 116, 228) else if shortTermTrendSlope < 0 and MiddleTermTrendSlope < 0 and longtermtrendslope < 0 then Color.red else if shortTermTrendSlope < 0 and MiddleTermTrendSlope > 0 and longtermtrendslope > 0 then CreateColor(0, 255, 255) else if shortTermTrendSlope < 0 and MiddleTermTrendSlope < 0 and longtermtrendslope > 0 then color.orange else GetColor(7)); AddChartLabel(Yes, "green - short term up, mid term up, long term up", color.green); AddChartLabel(Yes, "light green - short term up, mid term up, long term down", color.light_green); AddChartLabel(Yes, "lime green bar - short term up, mid term down, long term down", color.lime); AddChartLabel(Yes, "red bar - short term down, mid term down, long term down", color.red); AddChartLabel(Yes, "lime green bar - short term down, mid term up, long term up", color.lime); AddChartLabel(Yes, "orange bar - short term down, mid term down, log term up", color.orange); AddChartLabel(Yes, "yellow bar - anything not matching the above", color.yellow);

Reply With Quote

Reply



futures io > > > > > VSA for ThinkorSwim

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Volume Spread Analysis (VSA) slumlord Traders Hideout 57 December 6th, 2017 01:19 AM
VSA indicator for MT4 sam1197 MetaTrader 12 December 21st, 2015 08:15 PM
VSA alexav Russian Traders 5 December 17th, 2012 05:03 AM
VSA in MC? TonyB MultiCharts 10 May 28th, 2011 11:37 AM


All times are GMT -4. The time now is 04:32 AM.

Copyright © 2017 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
Page generated 2017-12-17 in 0.15 seconds with 20 queries on phoenix via your IP 54.227.51.103