Possible problem with IOrderPriced.send(price, size) ?
Posted: Oct 13 2013
Hi there,
Been doing some FOREX exploration over the weekend. Trying to average down a position doesn't seem to let me adjust the trade size from the current system defaults. In the strategy properties I have set trade size to 2 million with a base size of 50, 000.
This should be placing new trades with a size equal to the current openposition (doubling up), but it is not. Instead it keeps entering at the default in the strategy properties. The strategy properties screen says: "Trade size (if not specified by signal)..." But I am specifying it in the signal, no?
Hope this explains my situation OK.
Version 8.5 build 6862
With kind regards,
MK
Been doing some FOREX exploration over the weekend. Trying to average down a position doesn't seem to let me adjust the trade size from the current system defaults. In the strategy properties I have set trade size to 2 million with a base size of 50, 000.
Code: Select all
private IOrderPriced buyOrder;
...
...
protected override void Create()
{
buyOrder = OrderCreator.Limit(new SOrderParameters(EOrderAction.Buy, "GStat_LE"));
}
...
...
protected override void CalcBar()
{
if (StrategyInfo.MarketPosition > 0)
{
buyOrder.Send(CurrentPosition.OpenTrades[CurrentPosition.OpenTrades.Count - 1].EntryOrder.Price - 0.002, CurrentPosition.OpenLots);
}
}
Hope this explains my situation OK.
Version 8.5 build 6862
With kind regards,
MK