SetFillPrice

Top  Previous  Next

Sets the fill price for an order to the specified price. This function is only available to a Can Fill Order script and is used to set a fill price to something other than the built-in fill algorithm's price.

 

Syntax

 

SetFillPrice( fillPrice )

 

Parameters

fillPrice

 

the price for the fill

 

Example

' Set the fill to the high of the day since this order

' was more than 10% of the market volume.

order.SetFillPrice( instrument.high )