Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Enter Orders in Two Seperate Markets at Exactly the Same Time
Collapse
X
-
Enter Orders in Two Seperate Markets at Exactly the Same Time
I'd like toLast edited by sampras010; 03-18-2016, 05:16 AM.Tags: None
-
Hello sampras010,
Thank you for your note.
This is somewhat possible. Your script, can place trades to two instruments at the same time, if you have a secondary instrument added to your script.
However, for this to be at exactly the same time without even a millisecond difference, you would need to receive a market data event from both instruments at exactly the same time. Other wise if the market data is received from the data provider at different times, this will cause ninja to send the orders as market data is received for that instrument.
(In other words, if you submit an order to an instrument that doesn't have data, the order will be stuck in PendingSubmit and will never be submitted)
So you can trigger the orders at the same time, but you to have market data being received at the exact same moment for both instruments to get the submissions out at the exact same time.Chelsea B.NinjaTrader Customer Service
-
Hello sampras010,
Yes, it is possible to exit after the unrealized, realized, or unrealized + realized reaches certain amount. This would require that you code this into your script with logic.
Attached is an example I have created previously of a daily loss limit that uses unrealized + realized.Attached FilesChelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Mestor, 03-10-2023, 01:50 AM
|
13 responses
313 views
0 likes
|
Last Post Today, 07:29 AM | ||
Started by Lele2k24, Yesterday, 11:24 AM
|
7 responses
25 views
0 likes
|
Last Post Today, 07:25 AM | ||
Started by martini, Yesterday, 04:45 PM
|
2 responses
13 views
0 likes
|
Last Post
by martini
Today, 07:23 AM
|
||
Started by cre8able, 03-24-2024, 09:30 AM
|
2 responses
18 views
0 likes
|
Last Post
by cre8able
Today, 07:23 AM
|
||
Started by Adam Klaus, Yesterday, 08:21 PM
|
1 response
8 views
0 likes
|
Last Post Today, 07:18 AM |
Comment