NexusFi: Find Your Edge


Home Menu

 





TOS bar count labels


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one Big Mike with 1 posts (0 thanks)
    2. looks_two MAXX with 1 posts (0 thanks)
    3. looks_3 Massive l with 1 posts (0 thanks)
    4. looks_4 tangerine with 1 posts (0 thanks)
    1. trending_up 19,212 views
    2. thumb_up 1 thanks given
    3. group 6 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
MAXX
Madera
 
Posts: 2 since Aug 2010
Thanks Given: 0
Thanks Received: 0

Does anyone know how to program or put scripts into TOS that will count bars (bar counts) on chart. maybe most of you know TS has it. wonder if TOS does?
thanks alot


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
  #3 (permalink)
 
Massive l's Avatar
 Massive l 
OR/USA
Legendary /NQ Trader
 
Experience: None
Posts: 2,129 since Mar 2011
Thanks Given: 1,859
Thanks Received: 5,108


Sorry MAXX, never heard of such a script.

What is your reasoning if you don't mind me asking?


Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,584

Some traders like Al Brooks do a bar-by-bar analysis and need an indicator that puts numbers on each bar so they can logically compare them.

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
rbertoni
Monroe Township, NJ
 
Posts: 1 since Jul 2011
Thanks Given: 0
Thanks Received: 0


MAXX View Post
Does anyone know how to program or put scripts into TOS that will count bars (bar counts) on chart. maybe most of you know TS has it. wonder if TOS does?
thanks alot

Maxx,

Did you ever find out how to do this? I am looking to do this as well.

Looking forward to hearing back!

rbertoni


Reply With Quote
  #6 (permalink)
 optntdr13 
Glyndon, Maryland, USA
 
Experience: Advanced
Platform: TOS
Trading: options
Posts: 24 since Sep 2010
Thanks Given: 6
Thanks Received: 49

Here's the rudimentary off the top of my head version, modify to suit.

rec barct = if isnan(barct[1]) or barct[1] < 1 then 1 else if barct[1] > 0 then barct[1] + 1;

addchartlabel(yes, concat("barcount = ", barct), color.PLUM);


Reply With Quote
Thanked by:
  #7 (permalink)
tangerine
albuquerque nm/usa
 
Posts: 27 since Aug 2015
Thanks Given: 3
Thanks Received: 9

If you choose DRAWINGS--->TRENDLINE and start drawing a trendline a databox will show you the bar count as you draw it. If doing multiple counts like this then always just right-click (rather than left-click) at the end of the line and it will delete so you can do your next count.


Reply With Quote
  #8 (permalink)
brucehank
ottawa canada
 
Posts: 20 since Oct 2015
Thanks Given: 0
Thanks Received: 2


MAXX View Post
Does anyone know how to program or put scripts into TOS that will count bars (bar counts) on chart. maybe most of you know TS has it. wonder if TOS does?
thanks alot

Do you mean: show the current bar number ?
If yes, BarNumber(); can do it.

Let me know if you need help with thinkscript or Ninjatrader.


Reply With Quote




Last Updated on October 16, 2015


© 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