NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 09-15-2010, 04:21 PM   #1
mmtrader
Senior Member
 
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default Bid/ask info

Support/Ray or Josh,

Can you please tell if in Ninja 7, the bid/Ask info is available when building the bars ?

Like if a new bars type has to be constructed, there isn't anyway to access bid/ask info when building bars? Is that true?

Thanks
mmtrader
mmtrader is offline  
Reply With Quote
Old 09-15-2010, 04:35 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Not true. You can use OnMarketData() to access the bid/ask events that are coming in while the bar is building.
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-15-2010, 04:44 PM   #3
mmtrader
Senior Member
 
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Josh for confirming. Just to confirm, OnMarketData() it can be used in @BarTypes.cs file, which generates new bar types? The custom bars type is such that a "new bar" will be plotted based on bid/ask info and logic, in such a way that a new bar is plotted or continued in same bar based on bid/ask info/logic.

Thanks
mmtrader
mmtrader is offline  
Reply With Quote
Old 09-16-2010, 08:41 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

mmtrader,

Unfortunately that would not be supported in @BarTypes.
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-16-2010, 11:28 AM   #5
mmtrader
Senior Member
 
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
mmtrader,

Unfortunately that would not be supported in @BarTypes.
Sorry to know Josh, that NT doesn't support accessing of bid/ask in "bartypes". I request to please add this feature/ability,so that new custom "bar types" can be coded based on realtime bid/ask info.

Thanks
mmtrader
mmtrader is offline  
Reply With Quote
Old 09-16-2010, 11:48 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

mmtrader,

Thanks for the suggestion. I've added it to our feedback list.
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-23-2010, 08:32 AM   #7
mmtrader
Senior Member
 
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
mmtrader,

Thanks for the suggestion. I've added it to our feedback list.
Thanks Josh. Do you see the possibility of feature/ability being added in an upcoming beta release? Would be great to have the ability to access bid/ask info in @bartypes and really helps for creating new bar types.

Thanks
mmtrader
mmtrader is offline  
Reply With Quote
Old 09-23-2010, 08:45 AM   #8
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

mmtrader,

Our priorities right now are to stabilize NT7 and get it to a production release. Once this is accomplished, then we will be able to review our feedback list and see what we can do. Thank you for understanding.
NinjaTrader_Josh is offline  
Reply With Quote
Old 07-27-2011, 09:51 PM   #9
mmtrader
Senior Member
 
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
mmtrader,

Our priorities right now are to stabilize NT7 and get it to a production release. Once this is accomplished, then we will be able to review our feedback list and see what we can do. Thank you for understanding.

Josh,

Now that NT7 production is released and stabilized, anyway you can please consider to introduce the feature requested in this thread.

Thanks
Mmtrader
mmtrader is offline  
Reply With Quote
Old 07-28-2011, 08:41 AM   #10
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

mmtrader,

There is a lot of good work being done by development. As you might imagine there are a lot of suggestions. Rest assured this item is already on the feedback list and will be reviewed when development gets to the stage for improvements around this area.
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-03-2012, 12:13 PM   #11
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Default

following up on this issue ...

Is there a supported (or unsupported) method for use in @BarsType.cs to identify bid/ask/other when calling the Add() method for a BarsType?

looks like OnMarketData() exists in the Bars class with the same method signature used to override for Indicator/Strategy. currently it's marked as internal.

cheers,
-e
e-man is offline  
Reply With Quote
Old 09-04-2012, 01:48 PM   #12
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

e-man,

I would suggest trying it in this case, as it would be unsupported code. Documenting if it works here or not would be helpful to others looking for a similar work around. Unfortunately I haven't tested on my side here, however generally I would recommend sticking to the conventions already used in the BarTypes code.
NinjaTrader_AdamP is offline  
Reply With Quote
Old 09-04-2012, 03:27 PM   #13
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Default

tried to put the OnMarketData method into a custom bar type and got error: "no suitable method to override"

i also reviewed the @BarsType.cs and unless i'm missing something -- there is no reference sample or convention which leverages bid/ask data.

any hints?

if not, i will add my name to the list of those requesting this feature.

cheers,
-e
e-man is offline  
Reply With Quote
Old 09-05-2012, 07:02 AM   #14
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

e-man,

It looks like a Bars object is accessible in some of the code :

bars.LastPrice = bars.GetClose(bars.Count - 1);

Just using intellisense I can see that the Bars object also has a GetCurrentBid() and GetCurrentAsk() method internally that may be accessible in the BarsTypes.cs code.

Note that the Bar types code is in the namespace NinjaTrader.Data, so it may not have access to the same objects / methods as indicator or strategy code. It also inherits the BarsType object so it would have access to methods from this class rather than the indicator or strategy base class.
NinjaTrader_AdamP is offline  
Reply With Quote
The following user says thank you to NinjaTrader_AdamP for this post:
Old 09-05-2012, 07:05 AM   #15
e-man
Senior Member
 
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
Default

thanks Adam - i'll play around with that and report back :-)

cheers,
-e
e-man is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need some info please.... realfreedom Miscellaneous Support 3 09-08-2010 08:00 AM
The Rumpled one info Bogan7 Indicator Development 3 09-21-2009 06:50 PM
Converting Bid/Ask info from TS MrPips55 Indicator Development 8 08-12-2009 04:28 PM
New Release Info monpere Installation and Licensing 6 05-05-2008 07:59 AM
info problem simone General Programming 1 10-02-2007 06:48 AM


All times are GMT -6. The time now is 10:08 AM.