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.
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 kujista, Today, 06:23 AM
|
4 responses
14 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by traderqz, Yesterday, 09:06 AM
|
2 responses
16 views
0 likes
|
Last Post
by traderqz
Today, 09:48 AM
|
||
Started by traderqz, Today, 12:06 AM
|
3 responses
6 views
0 likes
|
Last Post Today, 09:41 AM | ||
Started by RideMe, 04-07-2024, 04:54 PM
|
5 responses
28 views
0 likes
|
Last Post Today, 08:48 AM | ||
Started by f.saeidi, Today, 08:13 AM
|
1 response
8 views
0 likes
|
Last Post Today, 08:47 AM |
Comment