AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Limit, Close[1], 0, TimeInForce.Day, orderId,"AtmStrategyTemplate", atmStrategyId);
what I found out in a strategy
if(Position.MarketPosition == MarketPosition.Flat )
{
}
does not work.
if (GetAtmStrategyMarketPosition(atmStrategyId) != MarketPosition.Flat)
{}
DOES WORK
my questions are
1. how do one track ATM order when flat, pending, filled. or closed.
Iorder does not work on atms.
2. if i have this strategy working on 2 instruments, how do i seperate the orders
example if gc is flat and gc is long place a pending order in gc
Most of my methodologies for my trades work on calculatebaronclose = true; but 2 of my trading methodologies need to be a false state. I am using
if(FirstTickOfBar)
for most of my trades.
thanks
Comment