if (e.MarketDataType == MarketDataType.Last && e.Volume >=400) //400 = 400 contracts
{ Log("400", LogLevel.Alert); }
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Time and Sales help needed
Collapse
X
-
Time and Sales help needed
My goal is to get an alert when there is a 400 contract order going through time and sale. this is the code I have right now.
How can I tell Ninjatrader to tell me if its 400 contracts on the bid or 400 contracts on the ask??? whats the code?Code: -
Hello wallsteetking,
The Ask, Bid, and Last MarketDataType(s) are all going to be different and provided by the Data Provider directly. If you would like to check the Ask, and Bid volume then you may want to add the check for those MarketDataType(s).
Note when working with Forex you will only had the Ask, and Bid from the Provider and NinjaTrader will use the Bid by default for the Last MarketDataType.JCNinjaTrader Customer Service
-
I will be strictly using it on the E-mini sp 500. furthermore, can you show me what I need to put in the code to tell me if its on the bid or ask side. thank you
is this correct for BID
Code:if (e.MarketDataType == MarketDataType.Bid&& e.Volume >=400) //400 = 400 contracts { Log("400", LogLevel.Alert); }
Comment
-
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
88 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
48 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
30 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
34 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
68 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment