Sets the fill price for an order to the specified price.

 

This function is only available in a Can Fill Order script section and it is used to set a fill price to something other than the software's built-in fill algorithm's price.

 

Syntax:

order.SetFillPrice( fillPrice )

 

Parameter:

Description:

fillPrice

Price at which the order is filled

 

Returns:

order.fillPrice assigned in the Can Fill Order script section, or the price assigned by the software's built-in fill algorithm.

 

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 )

 

Alternate Order Object:

Access to Order Object properties and functions in other scripts is made possible by using the AlternateOrder Object as the prefix ahead of the "." property or function. AlternateOrder Object is discussed below.

 

Notes:

Always check to be sure the order is available after a Broker function call using the system.orderExists function prior to accessing it.

 

Using the alternateOrder object when orders are not in context will provide the same access as the Order object.  However, the alternateOrder object must be brought into context using the system.SetAlternateOrder object function prior to any attempt to use is properties and functions.

 

Once orders are brought into context their properties and function are available to reference and changes.

 

 


 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software