Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Subscribe to Market (Tick) Data when Strategy enters a position
Collapse
X
-
Subscribe to Market (Tick) Data when Strategy enters a position
I want to subscribe to Market Data (Ticks) when my strategy enters a position. Is this possible. Waiting for OnBarUpdate() using large Bars affects profit.Tags: None
-
MajorIIssue,
Thanks for your post.
I would suggest adding OnMarketData to your script and to add a check for
if (Position.MarketPosition == MarketPosition.Long)
or
if (Position.MarketPosition == MarketPosition.Short)
inside OnMarketData so the code is only executed there when you are in a position.
OnMarketData - https://ninjatrader.com/support/help...marketdata.htm
We look forward to assisting.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
290 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
185 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
184 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
267 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
218 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment