...
The properties that a strategy expects are particular to that strategy. More on strategy parameters later. When the strategy is ready, start it from the Strategy Engines View popup menu.
Trade Suggestions
The Trade Suggestions View shows potential trades that a strategy may create. Strategies can send trades directly with no user supervision, or, using the Trade Suggestions View, strategies may suggest trades that are either confirmed or rejected by a user. Rejected trades are discarded, confirmed trades are sent to the server and then to a broker just like a regular trade.
Trade suggestions are assigned a score by the strategy that creates them. The score is simply a value used to create a preference order for the user approving them and represent anything you want (scale of 0 to 1, 1 to 10,000, whatever). We'll get in to strategy coding in more detail later, but here's the snippet that created this trade suggestion:
Code Block |
---|
OrderSingle order = Factory.getInstance().createOrderSingle();
order.setOrderType(OrderType.Limit);
order.setPrice(inBid.getPrice());
order.setQuantity(inBid.getSize());
order.setSide(Side.Buy);
order.setInstrument(inBid.getInstrument());
order.setTimeInForce(TimeInForce.Day);
suggestTrade(order, BigDecimal.ONE,"Suggested Trade"); |
You can also open the suggestion in the appropriate Order Ticket View for further modification: