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 440,747 views
    2. thumb_up 223 thanks given
    3. group 86 followers
    1. forum 434 posts
    2. attach_file 131 attachments




 
Search this Thread
  #21 (permalink)
bambangww
East Java
 
Posts: 8 since May 2010
Thanks Given: 4
Thanks Received: 0

Thanks a lot for the explanation, It really helpfull.

About TOS programming, is there any guide book or something so I can learn more about it ??
Once again thanks a lot


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Alternative for Volume Spread Scalper Indicator
Traders Hideout
Half-life over Cointegration?
Traders Hideout
Tradestation Chart Setup
TradeStation
GANN THEORY DAVID BOWDEN SAFETY IN THE MARKETS
Traders Hideout
Forex Factory News - Weekly XML Export
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Gradient Divergence Trading
9 thanks
NinjaTrader Performance on 6 year Laptop Vs. NEW
8 thanks
Tariffs and what comes next...
4 thanks
HumbleTraders next chapter
3 thanks
NexusFi site changelog and issues/problem reporting
1 thanks
  #22 (permalink)
 
cbritton's Avatar
 cbritton 
Atlanta, Georgia
 
Experience: Intermediate
Platform: NT
Broker: DDT
Trading: ZN, ZB
Posts: 230 since Mar 2010
Thanks Given: 152
Thanks Received: 256


bambangww View Post
Thanks a lot for the explanation, It really helpfull.

About TOS programming, is there any guide book or something so I can learn more about it ??
Once again thanks a lot

Hope this helps:

https://team.thinkorswim.com:7001/thinkscript/dark/index.html
The Complete Beginners Guide to Thinkscript « Read the Prospectus

Regards,
-C


“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Started this thread Reply With Quote
Thanked by:
  #23 (permalink)
 mgattani 
NJ
 
Experience: Beginner
Platform: TOS
Trading: ES
Posts: 1 since Jun 2010
Thanks Given: 0
Thanks Received: 0


Hi

I downloaded the code in TOS but not able to see the volume colors and bar colors. Is there any specify think I have to do.

Thanks
MG


Reply With Quote
  #24 (permalink)
bambangww
East Java
 
Posts: 8 since May 2010
Thanks Given: 4
Thanks Received: 0

Good Morning C,

May ask you about another thing, I have read about supertrend indicator from ninjatrader, I already ask many people about the logic behind that supertrend. I want to put it on my thinkorswim study. Coudl you tell me about the logic, because I can't figure it from the source code. I don't know about C# language.

Thanks for your Help

regard,

Wahyu


Reply With Quote
  #25 (permalink)
bambangww
East Java
 
Posts: 8 since May 2010
Thanks Given: 4
Thanks Received: 0


mgattani View Post
Hi

I downloaded the code in TOS but not able to see the volume colors and bar colors. Is there any specify think I have to do.

Thanks
MG

Hi Mg,

You could click studies in TOS, choose edit studies ....
Click on VSA studies,
In the down side, there will be the properties, ..
from input criteria, slide it doew, then you could see color bar...
the default value is false, change it to true .

Hope this help ...

Regard,

Wahyu


Reply With Quote
  #26 (permalink)
 
cbritton's Avatar
 cbritton 
Atlanta, Georgia
 
Experience: Intermediate
Platform: NT
Broker: DDT
Trading: ZN, ZB
Posts: 230 since Mar 2010
Thanks Given: 152
Thanks Received: 256


bambangww View Post
Good Morning C,

May ask you about another thing, I have read about supertrend indicator from ninjatrader, I already ask many people about the logic behind that supertrend. I want to put it on my thinkorswim study. Coudl you tell me about the logic, because I can't figure it from the source code. I don't know about C# language.

Thanks for your Help

regard,

Wahyu

I'm no expert on SuperTrend, but here's a link to the non-c# formula (see post #10):

SuperTrend formula - Page 2 | Trade2Win Forums

Feel free to start a discussion about converting this to ToS.

Regards,
-C


“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Started this thread Reply With Quote
Thanked by:
  #27 (permalink)
snowcloud
LA, CA
 
Posts: 93 since Jul 2010
Thanks Given: 2
Thanks Received: 25

Thanks for the great study, C. I've been experimenting with it over the past few days and intend to make it a permanent part of my trading screen. I am confused about the display of Very High in the Close field of the banner, however. It seems to display Very High where it should display Very Low. High, Mid, and Down seem to work fine, as does Very High for a bar that closes at the top. I've noticed that it seems to default to Very High on the opening of a bar and will also display Very High as a bar grows to the downside or if the bar closes at its low. Here are the two sections of code that might account for this:

# Check if the close is in the Highs/Lows/Middle of the bar.
def x1 = if (close == low) then avgSpread else (spread / (close - low));
def isUpCloseBar = (x1 < 2);
def isDownCloseBar = (x1 > 2);
def isMidCloseBar = (x1 < 2.2 && x1 > 1.8);
def isVeryHighCloseBar = (x1 < 1.35);

##

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);

I look forward to your comments. Thanks.


Reply With Quote
  #28 (permalink)
 aviat72 
San Francisco Bay Area
 
Experience: Intermediate
Platform: NT,TOS,IB
Trading: ES,CL,TF
Posts: 281 since Jun 2010
Thanks Given: 161
Thanks Received: 273

ThinkScripter – Custom ThinkScript Indicators for the [AUTOLINK]thinkorswim[/AUTOLINK] Trading Platform Buy him beer and enjoy the goodies.


Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #29 (permalink)
 
cbritton's Avatar
 cbritton 
Atlanta, Georgia
 
Experience: Intermediate
Platform: NT
Broker: DDT
Trading: ZN, ZB
Posts: 230 since Mar 2010
Thanks Given: 152
Thanks Received: 256


snowcloud View Post
Thanks for the great study, C. I've been experimenting with it over the past few days and intend to make it a permanent part of my trading screen. I am confused about the display of Very High in the Close field of the banner, however. It seems to display Very High where it should display Very Low. High, Mid, and Down seem to work fine, as does Very High for a bar that closes at the top. I've noticed that it seems to default to Very High on the opening of a bar and will also display Very High as a bar grows to the downside or if the bar closes at its low. Here are the two sections of code that might account for this:

# Check if the close is in the Highs/Lows/Middle of the bar.
def x1 = if (close == low) then avgSpread else (spread / (close - low));
def isUpCloseBar = (x1 < 2);
def isDownCloseBar = (x1 > 2);
def isMidCloseBar = (x1 < 2.2 && x1 > 1.8);
def isVeryHighCloseBar = (x1 < 1.35);

##

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);

I look forward to your comments. Thanks.

I double checked the original NT version. It has the same logic:

 
Code
                            
            // Check if the close is in the Highs/Lows/Middle of the bar.
            
x1 = (Close[0] - Low[0] == 0.00 avgSpread : (spread[0] / (Close[0] - Low[0])));
            
isUpCloseBar = (x1 2);
            
isDownCloseBar = (x1 2);
            
isMidCloseBar = (x1 2.2 && x1 1.8);
            
isVeryHighCloseBar = (x1 1.35);
             ...
            
textMsg1 textMsg1 "\nClose:";
            if (
isVeryHighCloseBar)
                
textMsg1 textMsg1 " Very High";
            else if (
isUpCloseBar)
                
textMsg1 textMsg1 " High";
            else if (
isMidCloseBar)
                
textMsg1 textMsg1 " Mid";
            else if (
isDownCloseBar)
                
textMsg1 textMsg1 " Down";
            else
                
textMsg1 textMsg1 "Very Low"
I do think this is a valid concern. If close = low for the bar, then x1 is set to the average spread. So if the average spread is < 1.35, the result will be a "very high" close bar, which makes no sense since the close = low. It would reason that this piece of code needs to be reworked a bit. Clearly, if close = low, then it should be "very low", not "very high". However, cases where close = low = high should be taken into consideration as well.

Thanks for the good find! The reason I started this tread is to have peer reviews like this.

Regards,
-C


“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Started this thread Reply With Quote
  #30 (permalink)
snowcloud
LA, CA
 
Posts: 93 since Jul 2010
Thanks Given: 2
Thanks Received: 25


Thanks for your response, C. Will you have time to do a little code-tweaking on this issue? If not, I suppose I could try it myself but I'm not confident that the results will be satisfactory.


Reply With Quote




Last Updated on May 21, 2023


© 2025 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 - Downloads - Top
no new posts