Functions by Category Functions by Alphabetical list
OnFill => [parameter] |  |
The string OnFill is a named parameter that is used in place order functions (such as PlaceBuyLimit) that cause the event OnFill to be fired on response to an order being filled. Once the order is filled, a parameter than you specify is passed to the OrderFill event allowing you to identify which order was filled. The basic syntax of using OnFill is: OnFill => [parameter]
When parameter is any value that you specify. For example, all the following are valid examples: OnFill => 7
OnFill => 'a string'
OnFill => ClosePrice
The syntax of OnFill is simply tagged onto the end of Place Orders parameter lists, for example to receive notification that a BuyOpen order has been filled the following command would be used: PlaceBuyOpen('Buy on open, with a notification',100, OnFill => 1);
In the case of a Limit Order: SellLimit('Sell on limit',100,52.34,OnFill=>'a string');
For more details on how to user the OnFill functionality, see the OnFill section in the OnLine Help.
Related functions: BuyOpen , SellOpen , SellStop , BuyStop , BuyLimit , SellLimit , BuyStopLimit , SellStopLimit , StopLoss , PlaceBuyOpen , PlaceSellOpen , PlaceBuyStop , PlaceSellStop , PlaceBuyLimit , PlaceSellLimit , PlaceBuyStopLimit , PlaceSellStopLimit , PlaceStopLoss , NextBarOpen , PlaceSellMarketClose , PlaceBuyMarketClose , PlaceBuyAtPrice , PlaceSellAtPrice
|