ThinkOrSwim - count # of bars - ThinkOrSwim | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim

ThinkOrSwim - count # of bars
Started:February 19th, 2016 (02:34 PM) by Futures888333 Views / Replies:234 / 0
Last Reply:February 19th, 2016 (02:34 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

ThinkOrSwim - count # of bars

Old February 19th, 2016, 02:34 PM   #1 (permalink)
Trading Apprentice
Siren, WI USA
Futures Experience: None
Platform: ThinkOrSwim
Favorite Futures: Stocks
Posts: 1 since Feb 2016
Thanks: 0 given, 0 received

ThinkOrSwim - count # of bars

Hi there!
I am wondering if anyone out there knows how to modify the "GetEventOffset" function on TOS to count # of bars from a certain date? The reason I am looking for this is to offset a plot on an hourly chart offset from data 5 days ago. Being that the number of bars on an hourly chart per day fluctuate based on exchange and after hours trading, I can't specify "from 40 bars ago" (5days x 8bars) to get the data from 5 days ago.

The closest thing I found is using the following code which counts # of bars since last conference call. What I want is to modify this code to output #of bars since close 5 days ago.... Does that make sense?
 "The last conference call was " + 
  GetEventOffset(Events.CONFERENCE_CALL, -1) + 
  " bars ago");

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > ThinkOrSwim - count # of bars

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Count number of bars generated in a subgraph for a specific time period arijit Sierra Chart 1 July 23rd, 2015 08:10 PM
RESET BARS COUNT quantismo NinjaTrader Programming 2 April 14th, 2015 10:48 PM
renko bars for ThinkOrSwim potterlp ThinkOrSwim 4 February 10th, 2015 03:28 PM
how to count in nt7 the number of bars that have closed? anniebee321 NinjaTrader 9 April 26th, 2011 11:27 AM
BarsType.Add method - how to always detect if (bars.Count == 0)? jdfagan NinjaTrader Programming 2 June 29th, 2010 05:33 PM

All times are GMT -4. The time now is 08:06 PM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-23 in 0.07 seconds with 20 queries on phoenix via your IP