Generic Broker Functions
This section lists the broker functions that are available in EFS. These functions are used for sending trades from EFS to our integrated Brokers. It is recommended that these functions are to be used only for discretionary trading actions. The basic code examples provided here illustrate this type of process through the use of chart buttons that require mouse clicks to execute the underlying EFS code that intern submit the trades. The Generic Broker functions do not currently provide the complete set of functionality or fail safes that will allow for true position management and broker account synchronization for auto-trading scenarios. These requirements will be considered for a future version.
buyMarket()
buyLimit()
buyStop()
buyStopLimit()
sellMarket()
sellLimit()
sellStop()
sellStopLimit()
sellShortMarket()
sellShortLimit()
sellShortStop()
sellShortStopLimit()
buy()
sell()
cancelOrder()
cancelAllOrders()
closePosition()
closeAllPositions()
Formula Examples: