Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Bid/ask info
Collapse
X
-
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.
Leave a comment:
-
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
Leave a comment:
-
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.
Leave a comment:
-
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
Leave a comment:
-
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.
Leave a comment:
-
Originally posted by NinjaTrader_Josh View Postmmtrader,
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
Leave a comment:
-
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.
Leave a comment:
-
Originally posted by NinjaTrader_Josh View Postmmtrader,
Thanks for the suggestion. I've added it to our feedback list.
Thanks
mmtrader
Leave a comment:
-
mmtrader,
Thanks for the suggestion. I've added it to our feedback list.
Leave a comment:
-
Originally posted by NinjaTrader_Josh View Postmmtrader,
Unfortunately that would not be supported in @BarTypes.
Thanks
mmtrader
Leave a comment:
-
mmtrader,
Unfortunately that would not be supported in @BarTypes.
Leave a comment:
-
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
Leave a comment:
-
Not true. You can use OnMarketData() to access the bid/ask events that are coming in while the bar is building.
Leave a comment:
-
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
mmtraderTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
27 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:43 PM
|
||
Started by wzgy0920, 02-22-2024, 01:11 AM
|
5 responses
32 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:33 PM
|
||
Started by wzgy0920, 04-23-2024, 09:53 PM
|
2 responses
49 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:29 PM
|
||
Started by Kensonprib, 04-28-2021, 10:11 AM
|
5 responses
193 views
0 likes
|
Last Post
by Hasadafa
Yesterday, 10:19 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
11 responses
3,235 views
0 likes
|
Last Post Yesterday, 08:07 PM |
Leave a comment: