Or is this by default what are the settings?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Execution Price
Collapse
X
-
Execution Price
Just to clarify If I have the Bid Ask Last database, can I determine the execution price to be whether Bid Ask or Last?
Or is this by default what are the settings?Tags: None
-
-
When it fills with the "last price"...does the volume correspond as well?
Ex: I send a LONG market order for 100 contracts.
11:30:04am Last 90.01 x 40
11:30:05am Last 90.02 x 60
how does the Strategy Analyzer calculate the fill price for 100 contracts?
Does it just fill with the 90.01 price?
Does it average with the 2 prices to fill the entire 100 contracts?
Comment
-
Oil_Trader, you can look into the fill type used in the bin > custom > type folder to see the logic per order type - for a market order the fill is assumed to be the open of the next bar :
if (order.OrderType == OrderType.Market)
{
if (order.OrderAction == Cbi.OrderAction.Buy || order.OrderAction == Cbi.OrderAction.BuyToCover) // set fill price
FillPrice = Math.Min(NextHigh, NextOpen + SlippagePoints);
else
FillPrice = Math.Max(NextLow, NextOpen - SlippagePoints);
}BertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Haiasi, 04-25-2024, 06:53 PM
|
4 responses
63 views
0 likes
|
Last Post
by effraenk
Today, 02:15 AM
|
||
Started by ccbiasi, 11-23-2017, 06:06 AM
|
5 responses
2,202 views
0 likes
|
Last Post
by leodavis
Today, 02:11 AM
|
||
Started by kujista, Yesterday, 12:39 AM
|
2 responses
14 views
0 likes
|
Last Post
by kujista
Today, 02:02 AM
|
||
Started by Austiner87, Yesterday, 11:24 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 01:42 AM | ||
Started by Rogers101, 05-05-2024, 11:30 AM
|
3 responses
22 views
0 likes
|
Last Post
by Rogers101
Today, 12:48 AM
|
Comment