Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
order state initialized
Collapse
X
-
Yes, that is correct. Testing on Market Replay or on live data with the SIM101 account should generally accomplish the same thing.
-
last question
Hey Josh. When you say test on live data, how do I do that exactly? You mean just run the strat real time in a test account?
Leave a comment:
-
You can test this on Market Replay or on live data.
As far as the second part goes I do not believe it will be an issue. The help guide does not specify the order state in the sample so that is how I would approach it.
Help Guide- Transitioning order references from historical to live
Leave a comment:
-
follow up
Hey Josh. I'll try that.
1) Am I correct that the only way to test this is to use the Market Playback? If so, I'll need to wait until markets close since I'm using the connection for active strategies at the moment.
2) Some of the orders in my list will be State = Cancelled or State = Filled. I used the State = Working because I wasn't sure how the GetRealtimeOrder handles orders that are no longer active. Does that pose any problems? I feel as though that may have caused problems for me in the past, though it's quite possible I'm imagining that.
Thanks
Leave a comment:
-
Hello stewarco,
Thanks for your post.
Can you tell if this is happening for all orders or possibly orders that are Accepted instead of Working?
What happens if you remove if (o.OrderState == OrderState.Working) and just use
Code:if (State == State.Realtime) { foreach(Order o in sellStopList) GetRealtimeOrder(o); }
Leave a comment:
-
additional info
In particular, this is what the code looks like:
if (State == State.Realtime)
{
foreach(Order o in sellStopList)
if (o.OrderState == OrderState.Working) GetRealtimeOrder(o);
}
Does this do what I think it's supposed to? Or do I need to add an additional line where the "new" order is submitted? To reiterate, what I'm seeing now is that the "old" orders were cancelled but a single new order (which seems to aggregate the old ones) is sitting on my PC in "initialized" status, in color orange.
Thanks
Leave a comment:
-
order state initialized
Hello. I have code that transitions historical orders to real time.
However, when iI start the strategy, the "new" historical orders show up as order state "Initialized", instead of Working (I am submitting these to NinjaBrokerage). Do you know why this occurs, and is there anyway for me to change them to Working?
ThanksTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rocketman7, Today, 01:00 AM
|
0 responses
1 view
0 likes
|
Last Post
by rocketman7
Today, 01:00 AM
|
||
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
74 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
|
Leave a comment: