Seer logo - advanced backtesting for stock, futures and forex trading systems using using technical analysis indicators, charts, money management and position sizing
Functions by Category Functions by Alphabetical list

OnFill => [parameter]

Usable in an seer event object

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 , BuyMarket , SellOpen , SellMarket , SellStop , BuyStop , BuyLimit , SellLimit , BuyStopLimit , SellStopLimit , StopLoss , PlaceBuyOpen , PlaceSellOpen , PlaceBuyStop , PlaceSellStop , PlaceBuyLimit , PlaceSellLimit , PlaceBuyStopLimit , PlaceSellStopLimit , PlaceStopLoss , NextBarOpen , PlaceSellMarketClose , PlaceBuyMarketClose , PlaceBuyAtPrice , PlaceSellAtPrice , PlaceSellMarket , PlaceBuyMarket

© 2011 seer trading systems ltd
feedback FAQ legal privacy