Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Order Fill Last in First out
Collapse
X
-
Order Fill Last in First out
Is there a way to have Ninjatrader close the last contract opened instead of the first? What I want is that if I buy 3 MES contracts at 4680 and it dips and I buy another 3 at 4660. If I sell 3 at 4670 it will sell the 3 I bought at 4680 showing a realized loss of 150.00. I would like it to sell the 3 at 4660 and show I realized profit of 150.Tags: None
-
Would it be possible to add the numbered/ordered entry orders' corresponding Target/StopLosses to a list and thenOriginally posted by NinjaTrader_RyanS View PostHello,
The simulation account will always us a first in first out (FIFO) accounting method for execution pairing. For live accounts this will be controlled by your broker.
use logic to preset the order in which they would execute upon exit?
Something like calling the latest order's Targets and StopLosses orders added to the list
to be executed first upon exit?
Then the 2nd latest order's Targets and StopLosses orders added to the list
to be executed second upon exit?
Then the 3rd latest order's Targets and StopLosses orders added to the list
to be executed third upon exit? etc. for n number of entry orders.
If so could you advise on what to be aware of / any sample / any specifics to take into account? Thanks!Last edited by PaulMohn; 06-21-2022, 02:51 PM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
161 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
308 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
245 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
349 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment