![]() |
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
|
|||||||
| Miscellaneous Support Miscellaneous support issues. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Not true. You can use OnMarketData() to access the bid/ask events that are coming in while the bar is building.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
mmtrader,
Unfortunately that would not be supported in @BarTypes.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 | |
|
Senior Member
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
Thanks mmtrader |
|
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
mmtrader,
Thanks for the suggestion. I've added it to our feedback list.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#7 | |
|
Senior Member
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
Thanks mmtrader |
|
|
|
|
|
|
#8 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
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
NinjaTrader Customer Service |
|
|
|
|
|
#9 | |
|
Senior Member
Join Date: Oct 2009
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
Josh, Now that NT7 production is released and stabilized, anyway you can please consider to introduce the feature requested in this thread. Thanks Mmtrader |
|
|
|
|
|
|
#10 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#11 |
|
Senior Member
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
|
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 |
|
|
|
|
|
#12 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
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.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
|
#13 |
|
Senior Member
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
|
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 |
|
|
|
|
|
#14 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
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.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_AdamP for this post: |
|
|
|
#15 |
|
Senior Member
Join Date: Dec 2008
Location: http://coroin.com
Posts: 156
Thanks: 8
Thanked 7 times in 7 posts
|
thanks Adam - i'll play around with that and report back :-)
cheers, -e |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |