want to get chart info in initialize() - NinjaTrader Programming | futures io social day trading
futures io futures trading


want to get chart info in initialize()
Updated: Views / Replies:2,550 / 8
Created: by tulanch Attachments:0

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
 

want to get chart info in initialize()

  #1 (permalink)
Elite Member
Salt Lake City, UT
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Dormans/Zen-fire
Favorite Futures: 6E ES YM
 
Posts: 233 since Mar 2010
Thanks: 46 given, 321 received

want to get chart info in initialize()

Hello all

I want to obtain the type of chart and the period of the chart in the initialize() method.

for example PeriodType.Minute and a period of 1

I can get the Instrument name, but uncertain of to get the others. Any ideas?

I do not think there are any documented ways to do this.

My ultimate goal is to make use of the Add() method using the current chart's details and you can only use the Add() method in the initialize() method.

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
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


I think there is a clear answer. The properties of the bars cannot be accessed in the Initialize() section.


BarsPeriod, BarsPeriods


Excerpt from the NinjaTrader User Manual.

NOTE: This property should NOT be accessed within the Initialize() method.


If you want to adapt the period of an added instrument to the period type and period of the chart, this can only be achieved by a user defined input.


What do you need this for?

Reply With Quote
 
  #4 (permalink)
Elite Member
Salt Lake City, UT
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Dormans/Zen-fire
Favorite Futures: 6E ES YM
 
Posts: 233 since Mar 2010
Thanks: 46 given, 321 received

wanted to Add() .Ask, .Bid, and .Last of current chart settings...

fyi, the "should not" is really "can not"... as doing so won't run, arfgs message in output window indicating so...

Reply With Quote
 
  #5 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


tulanch View Post
wanted to Add() .Ask, .Bid, and .Last of current chart settings...

fyi, the "should not" is really "can not"... as doing so won't run, arfgs message in output window indicating so...

You can only access one DataSeries of a chart. This can either be the last traded price, the bid or the ask.

The accessed DataSeries is automatically added to your indicator, as it is selected via the indicator dialogue box, so you do not need to add it.

I still do not get exactly, what you try to achieve.

Reply With Quote
 
  #6 (permalink)
Elite Member
Salt Lake City, UT
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Dormans/Zen-fire
Favorite Futures: 6E ES YM
 
Posts: 233 since Mar 2010
Thanks: 46 given, 321 received

I have been experimenting with adding in the Bid and Ask data series to Delta type indicators.

Doing so provides history data when you refreash - meaning Delta type indicators still have Bid Ask data to calculate with and this is all done without needing an external file to hold the Bid Ask data as is the case with GEOM and others.

I was thinking to keep the Bid Ask data series it in the same Chart Type (Minute, Range, Volume, etc) and same Period to keep coding easier... but since it's proving difficult to get the current charts values gona forgo that.

I then tried settings of Tick and 1, but it I have noticed that refreshes are not providing the same Bid Ask data as OnMarketData does. Something about "non-last-qualifying trade"....

so I keep plugging along...

Reply With Quote
 
  #7 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,220 received


tulanch View Post
I have been experimenting with adding in the Bid and Ask data series to Delta type indicators.

The bid and ask dataseries are not synchronized with the Last, so basically worthless.

To get true persistence of bid/ask data with NT, you'll need the GomRecorder framework.

https://futures.io/elite-circle/6802-gomrecorder-2-a.html

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #8 (permalink)
Elite Member
Salt Lake City, UT
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Dormans/Zen-fire
Favorite Futures: 6E ES YM
 
Posts: 233 since Mar 2010
Thanks: 46 given, 321 received

True that, I'm not even concerned about being synchronized, just magnitude, and as you pointed out these are not too useful. One would think that you could align the magnitude of the values returned say from Bid with the manually recorded value from onmarketdata in realtime/playback for a given period of time/volume/tick. But they simply do not. I was told it was due to non-last-qualifying trades. Google that one, it will make you question datafeeds in general. But back to this point, it does not make sense that my datafeed coming in is "correct" and the data that is captured historically (I assume that's what the dataseries does) is different. Yea there may be some architectural reason, but fundamentally that historical data (if that what it was designed to be) is wrong. Sure would be convenient if these worked as I portray they should - but most likely they are working as designed for reasons I don't fully understand.

Reply With Quote
 
  #9 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,220 received

Look here for an in-depth data feed comparison of bid/ask data:

https://futures.io/elite-circle/3873-analysis-comparison-different-data-feeds-platforms-bid-ask-studies.html

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote

Reply



futures io > > > > > want to get chart info in initialize()

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any info on this CME tax? Angler The Elite Circle 4 October 18th, 2011 02:15 PM
Info on the Emini S&P one53brooklane Emini Index Futures Trading 7 May 20th, 2011 11:56 PM
option trading info stanwnd Options on Futures 0 May 4th, 2011 10:33 AM
Info vstraderllc fragiba Trading Reviews and Vendors 10 February 18th, 2010 09:26 PM


All times are GMT -4. The time now is 05:56 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-12 in 0.13 seconds with 19 queries on phoenix via your IP 54.167.44.32