Counting Bars since open of session - NinjaTrader Programming | futures io social day trading
futures io futures trading


Counting Bars since open of session
Updated: Views / Replies:2,809 / 5
Created: by zeller4 Attachments:3

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Counting Bars since open of session

  #1 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NT7
Favorite Futures: CL, NQ, NG
 
Posts: 456 since Jun 2009
Thanks: 1,359 given, 383 received

Counting Bars since open of session

Hey All,
I've seen some different syntax for counting bars from the session start. I also found this index (idx) inside the CurrentDayOHL file.
I'm not sure how to make it public so that it can be printed to the output window or to use for some other calculation / or checking.

As you can see, I'm attempting to get an updated snapshot of the current location of price to the daily High, Low, Open and also to compare bar counts for what has been above or below the open.

Currently just testing the numbers so I know the bars below open is not working...

If you'd like to modify this code and rename v02, please be my guest.
Thanks,
Kirk

Attached Thumbnails
Counting Bars since open of session-6e-03-10-3_2_2010-6-range-.jpg  
Attached Files
Register to download File Type: zip CurrentDayOHL_v01.zip (3.4 KB, 43 views)
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Barcelona, Spain
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: Futures
 
Posts: 24 since Jul 2009
Thanks: 35 given, 7 received


I am not sure what are your question. Do you know about BarsSinceSession object?

Un saludo,

Pablo

Reply With Quote
 
  #4 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NT7
Favorite Futures: CL, NQ, NG
 
Posts: 456 since Jun 2009
Thanks: 1,359 given, 383 received

Hey Pablo,

well, the attached file uses Bars.SessionBreak and then does this CurrentOpen.Count with the idx++.

I've seen this before but never programmed with it so I need to learn it. I wonder why I can't get the idx to be "callable" .

I'll try the BarsSinceSession.

Thanks,
Kirk

Reply With Quote
 
  #5 (permalink)
Banned: trolling
Russia,Khabarovsk
 
Futures Experience: Beginner
Platform: NT
Favorite Futures: Gold
 
Cachevary's Avatar
 
Posts: 407 since Feb 2014
Thanks: 138 given, 78 received

What`s the vertical location and the space below/above open?

Reply With Quote
 
  #6 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,218 since Jun 2009
Thanks: 628 given, 6,315 received
Forum Reputation: Legendary


zeller4 View Post
Hey All,
I've seen some different syntax for counting bars from the session start. I also found this index (idx) inside the CurrentDayOHL file.
I'm not sure how to make it public so that it can be printed to the output window or to use for some other calculation / or checking.

As you can see, I'm attempting to get an updated snapshot of the current location of price to the daily High, Low, Open and also to compare bar counts for what has been above or below the open.

Currently just testing the numbers so I know the bars below open is not working...

If you'd like to modify this code and rename v02, please be my guest.
Thanks,
Kirk

you must have an old compiler but I understand I am still on XP myself (cue the music Tom Petty I Won't Back Down). Current NJ compile gave me fit but here is what I can come up with

Attached Files
Register to download File Type: cs CurrentDayOHL_v01.cs (14.0 KB, 17 views)
Reply With Quote

Reply



futures io > > > > > Counting Bars since open of session

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
renko bars vs range bars? shodson Traders Hideout 21 April 26th, 2012 04:52 PM
Range bars before the time a open the Ninja Platform? Barrosco Traders Hideout 4 March 29th, 2011 09:04 AM
Volitility indicator question - Open - Open / open - close / close to open andresimon NinjaTrader 2 September 27th, 2010 01:33 AM
NT 7 Counting the amount of bars in a swing david666 NinjaTrader Programming 3 July 11th, 2010 10:49 AM
Counting Consecutive Bars kaywai NinjaTrader Programming 4 January 17th, 2010 10:40 AM


All times are GMT -4. The time now is 10:39 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-12-13 in 0.10 seconds with 20 queries on phoenix via your IP 54.226.113.250