NexusFi: Find Your Edge


Home Menu

 





Need help with a simple TOS script


Discussion in ThinkOrSwim

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




 
Search this Thread
  #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?
CFTC Requests Tag 50 Trader Identity Data From CME and I …
Traders Hideout
Iran Fired a Missile at Israel Last Night. The $8M June …
Prediction Markets & Event Contracts
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 
wldman's Avatar
 wldman 
Chicago Illinois USA
Market Wizard
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
Frequency: Several times daily
Duration: Hours
Posts: 3,585 since Aug 2011
Thanks Given: 2,095
Thanks Received: 9,704

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 X 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


© 2026 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