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


VSA for ThinkorSwim
Updated: Views / Replies:169,590 / 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

  #371 (permalink)
Trading Apprentice
San Diego
 
Futures Experience: Beginner
Platform: thinkOrSwim
Favorite Futures: stocks
 
Posts: 1 since Apr 2012
Thanks: 0 given, 0 received

.ts file


Massive l View Post
VPAv1_08.ts is the most recent and updated script

reattaching the script here. It's in this thread as well.


this appears to be a video file. I assume the file type association is wrong on my computer.

Reply With Quote
 
  #372 (permalink)
Trading Apprentice
Oxnard California
 
Futures Experience: Intermediate
Platform: TOS
Favorite Futures: Gold
 
Hornblower's Avatar
 
Posts: 10 since Aug 2012
Thanks: 2 given, 20 received

Import into ThinkorSwim

The .TS extension is either a video file extension of the extension assigned to thinkscript code files.

When you go to the TOS platform and click on studies you will notice a box that has import or export functions. Select import and the file.ts file that you want to import into the study section. When it gets into the editor it will tell you if you have an errors to be corrected. Those errors will be highlighted. When corrected the highlighting will disappear and you should be able to run the study.

A tremendous amount of effort went to the latest VSA study. I have just gone on line at Big Mikes' and am impressed with the blogs and attachments. Much work has been done with a lot of background information about VSA.

You can go thru the blogs for attachments that will help you. If you can tell me what you need I may have the file. I also have created several scanners that will pick up either the no demand or no supply indicator. I have attached the "Green Arrow" that stands for "Green UpArrow - Strength Confirmation Bar" scanner.

For VSA to get a high probability setup you need three VSA indicators and using Support/Resistance Levels to aid in the trade. That is based several books on the subject stated. I have done no trades yet.

Attached is the latest version of the VSA TOS version along with background information on VSA..

VPAv1_08STUDY.ts

VSA for ThinkorSwim-traderguide-indicators-v1.01.pdf

VSA for ThinkorSwim-vsa_system_explained.pdf

Reply With Quote
The following 7 users say Thank You to Hornblower for this post:
 
  #373 (permalink)
Trading Apprentice
Ho Chi Minh HCMC/Vietnam
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: Futures
 
Posts: 5 since May 2012
Thanks: 3 given, 1 received


Hello! Please add label for the last bar also...many thank!

Reply With Quote
 
  #374 (permalink)
Trading Apprentice
Oxnard California
 
Futures Experience: Intermediate
Platform: TOS
Favorite Futures: Gold
 
Hornblower's Avatar
 
Posts: 10 since Aug 2012
Thanks: 2 given, 20 received

VSA Scanner for Green Arrow

I am not sure what you mean by label.

I am aware that I did not include the coding for the scanning for VSA "Green Arrow" . So I am including it now.

# Arguments

input volumeEMALength = 30;
input narrowSpreadFactor = 0.7;
input wideSpreadFactor = 1.5;
input aboveAvgVolfactor = 1.5;

#######
# Calculations

rec spread = high - low;
def median = (high + low ) / 2;
rec avgVolume = compoundValue(volumeEMALength, ExpAverage(volume,
volumeEMALength), Double.NaN);

# Calculate Volume moving average and it's standard deviation
rec sAvgVolume = compoundValue(volumeEMALength, Average(volume,
volumeEMALength), Double.NaN);
def sAvgVolumeSTD = stdev(sAvgVolume, volumeEMALength);

# check if the vloume has been decreasing in the past two days.
def isTwoDaysLowVol = (volume < volume[1] && volume[0] < volume[2]);

# Calculate Range information
def avgSpread = WildersAverage(spread, volumeEMALength)[0];
rec isWideSpreadBar = (spread > (wideSpreadFactor * avgSpread));
rec isNarrowSpreadBar = (spread < (narrowSpreadFactor * avgSpread));





# Check if the close is in the Highs/Lows/Middle of the bar.
# C_RP 20100809
# original code - def x1 = if (close == low) then avgSpread else (spread /(close - low));
def x1 = if (high == low) then 2.0 else if (close == low) then 2.65 else (spread /
(close - low));
# C_RP try the line below with various divisors totalSum result in a minimum of 2.3 on a spread of 1 pip instead of using a fixed 2.3 as in the line above
# def x1 = if (high==low) then 2.0 else if (close == low) then (spread / 0.43 ) else (spread / (close - low));

# Price information
rec isUpBar = close > close[1];
rec isDownBar = close < close[1];
def isUpCloseBar = (x1 < 2);
def isDownCloseBar = (x1 > 2);
def isMidCloseBar = (x1 < 2.2 && x1 > 1.8);
def isVeryHighCloseBar = (x1 < 1.35);
# C_RP 20100809 added isVeryLowCloseBar
def isVeryLowCloseBar = (x1 >= 2.65);


# Trend Definitions

rec fiveDaysSma = compoundValue(5, Average(close, 5)[0], Double.NaN);
def LongTermTrendSlope = LinearRegressionSlope(price = fiveDaysSma, length =
40)[0];
def ShortTermTrendSlope = LinearRegressionSlope(price = fiveDaysSma, length =
5)[0];
def MiddleTermTrendSlope = LinearRegressionSlope(price = fiveDaysSma, length =
15)[0];

# stdn, stdn0, stdn1, stdn2
def strengthInDownTrend = (volume[0] > volume[1] && isDownBar[1] && isUpBar[0]
&& (isUpCloseBar or isMidCloseBar) && ShortTermTrendSlope < 0 &&
MiddleTermTrendSlope < 0);

def strengthInDownTrend1 = (volume[0] > (sAvgVolume[0] * aboveAvgVolfactor) &&
isDownBar[1] && isUpBar[0] && (isUpCloseBar or isMidCloseBar) &&
ShortTermTrendSlope < 0 && MiddleTermTrendSlope < 0 && LongTermTrendSlope < 0);
def strengthInDownTrend2 = (volume[1] < sAvgVolume[0] && isUpBar[0] &&
isVeryHighCloseBar && volume[0] > sAvgVolume[0] && ShortTermTrendSlope < 0);


rec bycond1 = (strengthInDownTrend or strengthInDownTrend1);
# bycond


def isStrengthConfirmationBar = (isUpBar[0] && bycond1[1]);

# bycond2 C_RP UpClose on higher volume with all slopes down adds extra strength
def isStrengthConfirmationBar2 = (isUpBar[0] && isUpCloseBar[0] && volume[0] >
volume[1] && LongTermTrendSlope < 0 && bycond1[1]);


# Plot with green arrow

# green triangle up at bottom of the bar C_RP Green arrow up 4 * tickSize for strong strength_In_DownTrend
plot isStrengthConfirmationBarPlot = if isStrengthConfirmationBar then (low - 5
* tickSize()) else if isStrengthConfirmationBar2 then (low - 9 * tickSize()) else Double.NAN;

# green triangle up at bottom of the bar C_RP Green arrow up 7 * tickSize for strongest strength_In_DownTrend with isUpCloseBar
# plot isStrengthConfirmationBarPlot2 = if isStrengthConfirmationBar2 then (low - 9 * tickSize()) else Double.NAN;

If you place this is the custom section by adding a study filter and opening up the thinkscript editor and poppong in the code. I also select a minimum stock price about 10 to filter out the low price stock.

Run the filter and wait for results. To verify that the filter worked OK open up one of the stocks and see verify that you have a green up arrow on the Daily chart. Of course you need to have the VSA study incorporated in the chart to verify this.

Happy trading.

Reply With Quote
 
  #375 (permalink)
Trading Apprentice
Ho Chi Minh HCMC/Vietnam
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: Futures
 
Posts: 5 since May 2012
Thanks: 3 given, 1 received

Thank Hornblower for your reply! The label at the top-left corner , like this: "Test for supply", Up-thrust"...It's show for the current candle. I want to see the label for last closed candle. Thank you! (sorry my English, It's not my language )

Reply With Quote
 
  #376 (permalink)
Trading Apprentice
Oxnard California
 
Futures Experience: Intermediate
Platform: TOS
Favorite Futures: Gold
 
Hornblower's Avatar
 
Posts: 10 since Aug 2012
Thanks: 2 given, 20 received

Labels at historical bars for look back

The program provides indicators but does not flash alerts or a label in the upper left region except for current bar. I was also frustrated by this so I modified the VSA for looking at the labels at previous bars. When this program is installed change the input permeter "goback" by 1 you will be able to see the previous label. I liked to insert in as a lower study so it does not interfere with the VSA and I can compare the two. Be aware the values get shifted to the left by one for each increment of goback.

Now this code has not been modified to the latest VSA version so there are differences but when I was testing I liked to use it to check out the alerts and labels on a look back basis. Otherwise, you do not see previous alerts and label changes.

Attached Files
Register to download File Type: ts VSA_1DayBack.ts (35.8 KB, 149 views)
Reply With Quote
The following user says Thank You to Hornblower for this post:
 
  #377 (permalink)
Trading Apprentice
Oxnard California
 
Futures Experience: Intermediate
Platform: TOS
Favorite Futures: Gold
 
Hornblower's Avatar
 
Posts: 10 since Aug 2012
Thanks: 2 given, 20 received

Better Volume Indicator with TOS Labels

Within this thread was provided a Better Volume Indicator that considered by Volume and Price to a volume chart. Each of the volume bars on the histogram was color coded to reflect volume values in relation to price using the Volume Spread Analysis rules. Also used to support Wyckoff Tests of Accumulation.

Here is brief description of the Better Volume Indicator.

"The Better Volume indicator uses a combination of bid/ask volume and range to identify Volume Climax, High Volume Churn and Low Volume bars. Market tops are characterized by Volume Climax Up bars, High Volume Churn and Low Volume Up bars (also called Testing). Market bottoms are characterized by Volume Climax Down bars, High Volume Churn and Low Volume Down bars (Testing). Pullbacks, in either up or down trends, are similar to market topping or bottoming patterns, but shorter in duration and with simpler volume patterns. The Better Volume indicator works in all markets and for all time frames but is particularly useful for tick charts."

To better read the histogram bars I have added labels to describe the latest volume bar. Other than that, the Better Volume Indicator is not changed. This indicator works well with the latest VSA.

Let me know if any changes are needed to improve it further.

Hornblower

Attached Files
Register to download File Type: ts BetterVolume_Indicator_WLabels_Study.ts (8.7 KB, 249 views)
Reply With Quote
 
  #378 (permalink)
Trading Apprentice
Ho Chi Minh HCMC/Vietnam
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: Futures
 
Posts: 5 since May 2012
Thanks: 3 given, 1 received

Hello Hornblower!

Do you check all the label and symbol in program VPAv1_08.ts with TOS_Ninja_VPA_CHEAT_v01.xls? I feel something incorrect symbol position and color.

Ex: the label "Less Bearish on Failed UpThrust Confirmation". It's show the green rectangle at the upper bar.

I think the label is right but the symbol wrong position and color.

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


Last edited by kunevn; August 16th, 2012 at 08:02 AM. Reason: Insert image
Reply With Quote
The following user says Thank You to kunevn for this post:
 
  #379 (permalink)
Trading Apprentice
Ho Chi Minh HCMC/Vietnam
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: Futures
 
Posts: 5 since May 2012
Thanks: 3 given, 1 received

Sorry I cannot post link and image!

Reply With Quote
 
  #380 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,352 given, 83,233 received



kunevn View Post
Sorry I cannot post link and image!

You can attach images, but cannot link to them from external sites.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:

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 05:05 PM.

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-14 in 0.17 seconds with 20 queries on phoenix via your IP 54.221.73.186