NexusFi: Find Your Edge


Home Menu

 





VSA for ThinkorSwim


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one snowcloud with 93 posts (25 thanks)
    2. looks_two StockJock with 91 posts (27 thanks)
    3. looks_3 cbritton with 37 posts (71 thanks)
    4. looks_4 swimtrader with 22 posts (19 thanks)
      Best Posters
    1. looks_one Hornblower with 2.3 thanks per post
    2. looks_two cbritton with 1.9 thanks per post
    3. looks_3 StockJock with 0.3 thanks per post
    4. looks_4 snowcloud with 0.3 thanks per post
    1. trending_up 304,527 views
    2. thumb_up 223 thanks given
    3. group 86 followers
    1. forum 434 posts
    2. attach_file 131 attachments




 
Search this Thread

VSA for ThinkorSwim

  #151 (permalink)
snowcloud
LA, CA
 
Posts: 93 since Jul 2010
Thanks Given: 2
Thanks Received: 25


swimtrader View Post
Wish me luck. Woke up with this idea and I'm getting underway.

- Define the most important elements of the Wyckoff Method
- Define the market conditions under which those conditions would be appropriately signaled
- Identify, within the VPA study script, the elements which indicate criteria met for each important condition
- One-by-one, plot each signal (or signal cluster) onto the chart, i.e. hiding all others
- Gather data to determine the signal's statistical "Sensitivity," "Specificity," and "Positive Predictive Value"

Steve

Great ideas, Steve. Coincidentally, the concept of sensitivity settings that would be user-settable occurred to me yesterday but your articulation of the idea is much more fully formed than mine. Bravo and best wishes on your journey of discovery! I look forward to hearing about whatever you find.

On a related note I had an idea for modifying the code for upThrusts and PseudoUpThrusts in order to filter out the ones that don't really qualify as upThrusts. This idea was triggered by a particularly egregious transgressor this morning at 5:08 AM PT on a 2min 6e chart - a Red DownArrow condition 3 confirmed upThrust that was clearly out of place, coming at the end of a 15-period downtrend that had started to turn up in the last 5 bars. When I looked at the upThrust code I saw that, by gosh, this candle did indeed fit the criteria:

rec isUpThrustBar = isWideSpreadBar && isDownCloseBar && ShortTermTrendSlope > 0;

A ShortTermTrendSlope looks at the last 5 bars and because this particular candle was up over the last 5 bars it was deemed an UpThrust even though the last 15 bars were down (The current code defaults to 15-period MidTerm trends and 40-period LongTerm trends). To filter this kind of candle out I suggest changing the code to:

rec isUpThrustBar = isWideSpreadBar && isDownCloseBar && ShortTermTrendSlope > 0 && MidTermTrendSlope > 0;

A new symbol for a super-strong upThrust could be coded thusly:

rec isUpThrustBar = isWideSpreadBar && isDownCloseBar && ShortTermTrendSlope > 0 && MidTermTrendSlope > 0 && LongTermTrendSlope > 0;

The following code could be copied from the Yellow Triangle Weakness signal to contirbute additional strength to any of the above. This would require upThrusts to have the highest high of the last 5 bars. (Alternatively, 5 could be changed to 3 or 2 to make it less strict).

&& High[0] == Highest(high,5) [0]

Thoughts, anyone?

Attached Thumbnails
Click image for larger version

Name:	2010-09-17-TOS_CHARTS.png
Views:	595
Size:	50.4 KB
ID:	20347  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
Build trailing stop for micro index(s)
Psychology and Money Management
Are there any eval firms that allow you to sink to your …
Traders Hideout
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
23 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #152 (permalink)
snowcloud
LA, CA
 
Posts: 93 since Jul 2010
Thanks Given: 2
Thanks Received: 25


swimtrader View Post
Based upon my hypothesis, I looked first at Supply. If you just had one indicator for supply, given what I said above, you'd want what - in the VPA thinkscript is called "supplyTestInUpTrendBar".

The script describes a relatively low volume, wide spread, down-bar, closing off its low ...in an intermediate to long term uptrend.

That sounds right. And if you're in accumulation, that test should be important.

However, during a 6 month period (over 3500 1-hour price bars), there are only 5 appearances of the signal. 3 out of the 5 were associated with subsequent rallies.

Ever since I began watching the VPA I have noticed that the Grey Square tests for supply in uptrends are very rare and I frankly haven't paid much attention to them while I looked at other symbols, particularly upThrusts. The White Square tests for supply have drawn more of my attention:

rec supplyTestBar = (isTwoDaysLowVol && low[0] < low[1] && isUpCloseBar);

If I understand Williams correctly, these tests typically occur after an extended downtrend, sometimes fairly soon after the downtrend has reached its bottom and at other times during extended sideways action at lows. A successful test for lows (indicated by a Cyan Triangle) indicates that Smart Money has tested for supply before it has begun marking the price up. If these assumptions are correct, maybe changing the code to require a supply test to come after an extended downtrend might help create a more robust indication that an uptrend might be imminent. Maybe two kinds of supply tests at lows are called for - one close to the end of a downtrend and another after an extended sideways period.

The first would only occur when the trend color is RED.
rec supplyTestBar = (isTwoDaysLowVol && low[0] < low[1] && isUpCloseBar && shortTermTrendSlope < 0) && MidTermTrendSlope < 0 && LongTermTrendSlope < 0;

The second would require some new code to define sideways-at-lows action.

Reply With Quote
  #153 (permalink)
 swimtrader 
Sarasota, FL USA
 
Experience: Advanced
Platform: TOS, NinjaTrader
Broker: Mirus/Zenfire & TOS
Trading: ES
Posts: 22 since Sep 2010
Thanks Given: 0
Thanks Received: 19


Snow,

As I see it, here's what is needed to improve this indicator:

Problem: It's "noisy" ...too much of a good thing. Good signals aren't all over the chart. If they're "sensitive" (statistical concept) and "specific", they have better predictive value.
Proposal: Reduce the signals to Tom Williams' "Main Signs of Strength" and "Main Signs of Weakness" [pp. 110-111] He advocates nine. (The current study has 27, many similar and redundant.) Also consider replacing situations where unconfirmed signals are displayed and then confirmed signals follow. Why not just display confirmed signals, under certain conditions?

Problem: There are definitions within the script that are questionable. For example, I think the code calls for a close to come off the low by 40% to qualify as a supply test.
Proposal: Thresholds and how they're calculated warrants a re-examation to ensure it's in keeping with the principals behind a "test." VSA requires a test to be 50% or more off the close. Doing so might reduce the number of signals while improving specificity and positive predictive value.

Problem: The most important signals are lagging. If you look closely, you'll see frequent examples of the study correctly calling a turning point right after it occurred.
Proposal: Find the cause for this. This is a fundamental challenge to writing any indicator ...but I think this study would be improved, in this regard. Signals must be anticipatory to be of value.

Problem: The study misses primary concepts. Earlier I mentioned the importance of signaling tests of supply. Your subsequent proposal sounds like a good starting point. That gray square is an important signal and should appear more than 5/3500 bars. Another critical issue - volume and range expansion on take-off. Key. (Similarly, concomitant volume/range contraction - on decline.)
Proposal: Make sure that signals such as "Stopping Volume" or "Buying Climax" reflect these important conditions in their calculation - that is, the concomitant expansion/contraction of volume and range when price advances/declines. (Tom DeMark's Range Expansion Index (REI) is his focus on range expansion, e.g. I'm not aware of any indicator that combines VEI/REI, however. VSA visually follows this constantly.)

Were we to capitalize on all the hard work, good script, and valuable experience achieved by you and the other contributors ...and just sort of take 9-10 primary signs of strength and weakness ...agree on their calculations - with a close eye on ensuring the signal is not late - and then check for predictive value (a simple statistical test) ...this might become more valuable. A trader still has to understand the concepts and make decisions based upon market activity that cannot be interpreted by computer code.

Thoughts?

Steve

Follow me on Twitter Reply With Quote
Thanked by:
  #154 (permalink)
snowcloud
LA, CA
 
Posts: 93 since Jul 2010
Thanks Given: 2
Thanks Received: 25


swimtrader View Post
Snow,

As I see it, here's what is needed to improve this indicator:

...

Thoughts?

Steve

Great ideas as usual, Steve. Thank you! I intend to follow up on all of them one-at-a-time but probably won't get started until later this week or next. I've got another project that begins today and it's likely to occupy me for the next week or so.

When I get to it I will attack the Supply Tests first.

Reply With Quote
  #155 (permalink)
StockJock
Chicago + Illinois/USA
 
Posts: 256 since Aug 2010
Thanks Given: 15
Thanks Received: 154

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

Reply With Quote
  #156 (permalink)
snowcloud
LA, CA
 
Posts: 93 since Jul 2010
Thanks Given: 2
Thanks Received: 25


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".

Good idea. Perhaps if there were threshold settings (sensitivity?) a setting of "0" would turn a signal off.

Reply With Quote
  #157 (permalink)
StockJock
Chicago + Illinois/USA
 
Posts: 256 since Aug 2010
Thanks Given: 15
Thanks Received: 154

How about just a yes or no option?

Reply With Quote
  #158 (permalink)
snowcloud
LA, CA
 
Posts: 93 since Jul 2010
Thanks Given: 2
Thanks Received: 25


StockJock View Post
How about just a yes or no option?

The reason for using a Threshold (Sensitivity) setting of "0" to indicate "Off" is to minimize the number of Inputs that must be displayed in the Properties box under Edit Studies and Strategies. Having both a Threshold (Sensitivity) setting and an On/Off setting would require two Inputs for each symbol. It's an efficiency thing.

Reply With Quote
  #159 (permalink)
StockJock
Chicago + Illinois/USA
 
Posts: 256 since Aug 2010
Thanks Given: 15
Thanks Received: 154


snowcloud View Post
Threshold (Sensitivity) setting.

What is the code for the Threshold (Sensitivity) setting? I'm not familiar with that technique. Another option would be to control the displayed indicators by catagory.

Reply With Quote
  #160 (permalink)
snowcloud
LA, CA
 
Posts: 93 since Jul 2010
Thanks Given: 2
Thanks Received: 25



StockJock View Post
What is the code for the Threshold (Sensitivity) setting? I'm not familiar with that technique. Another option would be to control the displayed indicators by catagory.

Currently, I haven't written any new code for threshold sensitivity settings for any of the symbols and won't get to it until my time frees up sometime in the next few weeks. In a nutshell a given symbol's threshold setting would make it more or less sensitive to the criteria that triggers it. For example, a threshold setting for Supply Test would allow the user to set whether it could be triggered only when all three trends (LT, MT, ST) are down (very high threshold), when only the Long-term trend is down (fairly low threshold), or some other combination of trends.

Reply With Quote




Last Updated on May 21, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts