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

  #421 (permalink)
satanscashcow
Kansas City, MO USA
 
Posts: 8 since Jul 2014
Thanks Given: 0
Thanks Received: 5

The TOS RelativeVolumeStDev indicator has some similar results to the EffortUP/DOWN signal in VSA for a quick heads up.

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
Ninja Mobile Trader VPS (ninjamobiletrader.com)
Trading Reviews and Vendors
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
60 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #422 (permalink)
satanscashcow
Kansas City, MO USA
 
Posts: 8 since Jul 2014
Thanks Given: 0
Thanks Received: 5

thinkorswim Sharing
Using VSA with momo indicators: FW_MOBO Basic; Hull mov avg; TMV
and vol/deviation indicators: RelativeVolumeStDev and "volume at time of day".

Reply With Quote
Thanked by:
  #423 (permalink)
theinvestor
Lakewood
 
Posts: 1 since Dec 2015
Thanks Given: 0
Thanks Received: 0


When I paste the code, tos states that it's missing the code to plot it. Does anyone have the code to add for plotting it as a study? Thanks in advance!

Reply With Quote
  #424 (permalink)
tangerine
albuquerque nm/usa
 
Posts: 29 since Aug 2015
Thanks Given: 3
Thanks Received: 9


theinvestor View Post
When I paste the code, tos states that it's missing the code to plot it. Does anyone have the code to add for plotting it as a study? Thanks in advance!

I'm guessing you mean either the Red Arrow code at top of previous page, or the Green Arrow code below that. In the first case, remove the # from in front of any "plot" lines of code. In the second case, for any defs for which you'd like to see plots, add a line below the def that says:
plot (make up a name) = (name of the def);
Also, these studies seem to only concern futures ("/xx"), not stocks or forex. But maybe you knew that.

Reply With Quote
  #425 (permalink)
 jperales42 
houston Texas/USA
 
Experience: Beginner
Platform: thinkorswim
Trading: emini
Posts: 4 since Apr 2016
Thanks Given: 3
Thanks Received: 1

was the plot issue resolved because I was not able to fix it by making up a name .. like the explanation said

Reply With Quote
  #426 (permalink)
tangerine
albuquerque nm/usa
 
Posts: 29 since Aug 2015
Thanks Given: 3
Thanks Received: 9


jperales42 View Post
was the plot issue resolved because I was not able to fix it by making up a name .. like the explanation said

jperales42, it's been almost a year and I lost track and now can't wrap my head around it. Sorry. If you want, please post which code is not doing what you want and say again what you want it to do? I know you want it as a study.

Reply With Quote
  #427 (permalink)
 jperales42 
houston Texas/USA
 
Experience: Beginner
Platform: thinkorswim
Trading: emini
Posts: 4 since Apr 2016
Thanks Given: 3
Thanks Received: 1


tangerine View Post
jperales42, it's been almost a year and I lost track and now can't wrap my head around it. Sorry. If you want, please post which code is not doing what you want and say again what you want it to do? I know you want it as a study.

# TS_TrendLineAlert
# ThinkScripter Community Forum - Give Help, Get Help, Pay it Forward
# [email protected]
# Last Update 20 SEP 2010


#hint: Plots a trend line between the two input dates, calculates and plots an extension, and alerts on trend line violation. Daily charts only.
#hint startDateYyyyMmDd: Select starting date of trend line.
#hint endDateYyyyMmDd: Select ending date of trend line.
#hint mode: Select an up trending or down trending line.

input startDateYyyyMmDd = 20161020;
input endDateYyyyMmDd = 20161023;
input mode = {default upTrend, downTrend};

DefineGlobalColor("UpTrend", Color.GREEN);
DefineGlobalColor("DownTrend", Color.RED);
DefineGlobalColor("Extension", Color.WHITE);

def start = if Getyyyymmdd() == startDateYyyyMmDd then 1 else 0;
def end = if GetYYYYMMDD() == endDateYyyyMmDd then 1 else 0;

rec startPrice = if start and mode == mode.upTrend then low else if start and mode == mode.downTrend then high else startPrice[1];
rec startBar = if start then BarNumber() else startBar[1];

rec endPrice = if end and mode == mode.upTrend then low else if end and mode == mode.downTrend then high else endPrice[1];
rec endBar = if end then BarNumber() else endBar[1];

plot trendLine = if start then startPrice else if end then endPrice else Double.NaN;
trendLine.EnableApproximation();
trendLine.AssignValueColor(if mode == mode.upTrend then GlobalColor("UpTrend") else GlobalColor("DownTrend"));
trendLine.SetLineWeight(2);

rec extend = if end and close then 1 else extend[1];
def slope = (endPrice - startPrice) / (endBar - startBar);

def curPrice = (BarNumber() - endBar) * slope + endPrice;
plot extension = if extend then curPrice else Double.NaN;
extension.SetDefaultColor(Color.WHITE);
extension.SetLineWeight(2);
extension.SetStyle(Curve.SHORT_DASH);

def trendLineViolation = if (mode == mode.upTrend and close < extension and close[1] > extension[1]) or (mode == mode.downTrend and close > extension and close[1] < extension[1]) then 1 else 0;

plot breach = if trendLineViolation then extension else Double.NaN;
breach.SetStyle(Curve.POINTS);
breach.AssignValueColor(if mode == mode.upTrend then Color.RED else Color.GREEN);
breach.SetLineWeight(5);

rec violated = if trendLineViolation[1] then 1 else violated[1];
extension.AssignValueColor(if violated then Color.GRAY else GlobalColor("Extension"));

Alert(trendLineViolation, Concat(GetSymbolPart(), " trend line violation"), Alert.BAR, Sound.Ring);


this code is missing something because it wont work, also i would like to use it for intraday charts if possible.

Reply With Quote
Thanked by:
  #428 (permalink)
optiontrader101
ON venus
 
Posts: 17 since Nov 2016
Thanks Given: 1
Thanks Received: 8

looks interisting

Reply With Quote
  #429 (permalink)
optiontrader101
ON venus
 
Posts: 17 since Nov 2016
Thanks Given: 1
Thanks Received: 8

I'll try to test it , thanks

Reply With Quote
Thanked by:
  #430 (permalink)
optiontrader101
ON venus
 
Posts: 17 since Nov 2016
Thanks Given: 1
Thanks Received: 8



cbritton View Post
Another update. In this version, I corrected the averaging functions to use the compoundValue() function. It may not make that big of a difference but it should be there.

I've also created the volume indicator as a separate study. I'm not that well versed in Thinkscript to know how, or if, an indicator can have a graph on 2 different panes. If someone knows, let me know so I can combine these two. See the screenshot with the volume.

Thanks to Mike for adding the .ts extension to the list of file uploads.

Regards,
-C

it works perfectly , thanks

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