NexusFi: Find Your Edge


Home Menu

 





Need help with a simple TOS script


Discussion in ThinkOrSwim

Updated
    1. trending_up 1,304 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 1 attachments




 
Search this Thread

Need help with a simple TOS script

  #1 (permalink)
traderbones
Baltimore
 
Posts: 3 since Sep 2018
Thanks Given: 0
Thanks Received: 0

Hello,

I'm looking for some help with a simple script I want to create. I'm awful with programming, so any help would be greatly appreciated.

I want to create a thinkorswim script for volume divergence with a smaller trading range (primarily for intraday trades). Here are the rules...

body = absolute value (open - close)

Body of candle 1 > body of candle 2
Volume candle 1 < Volume candle 2

So essentially its a smaller body candle formed on higher volume after a larger body candle. In an uptrend, if it could plot a dot or an arrow on the top of the second candle. And vice versa for a downtrend.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 
wldman's Avatar
 wldman 
Chicago Illinois USA
Legendary Market Wizard
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
Frequency: Several times daily
Duration: Hours
Posts: 3,514 since Aug 2011
Thanks Given: 2,048
Thanks Received: 9,520

I can't program either but I have a volume divergence indicator that I use on ToS.

Here is the original article that started me on that path and a picture.

Let me know if you care,

Dan

Current right edge of that chart. (not cherry-picked)


Attached Thumbnails
Need help with a simple TOS script-kvo-article.pdf  
Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 growex 
Trubchevsk
 
Experience: Beginner
Platform: tos
Trading: stocks
Posts: 61 since May 2011
Thanks Given: 40
Thanks Received: 79



traderbones View Post
Hello,

I'm looking for some help with a simple script I want to create. I'm awful with programming, so any help would be greatly appreciated.

I want to create a thinkorswim script for volume divergence with a smaller trading range (primarily for intraday trades). Here are the rules...

body = absolute value (open - close)

Body of candle 1 > body of candle 2
Volume candle 1 < Volume candle 2

So essentially its a smaller body candle formed on higher volume after a larger body candle. In an uptrend, if it could plot a dot or an arrow on the top of the second candle. And vice versa for a downtrend.






declare upper;
def body = absvalue(open - close);
plot s = body < body[1] and volume > volume[1];
s.setPaintingStrategy(paintingStrategy.BOOLEAN_POINTS);

Follow me on Twitter Reply With Quote
  #4 (permalink)
traderbones
Baltimore
 
Posts: 3 since Sep 2018
Thanks Given: 0
Thanks Received: 0

Thank you both for your quick responses!

Reply With Quote




Last Updated on September 14, 2018


© 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