basically i want to be able to cut and reverse positions, this works fine on the sim but live is another story.
say im short, i basically want to exit the short at market and then go long at market
when the condition is met
{
ExitShort(); // exit short positions @ market and is ignored if none exist
EnterLong();// initiates new long @ market
}
should do it but it doesnt
it goes long effectively closing the position but then start working a buy stop order about 20 ticks above the market which isnt really of much use, If i just use EnterLong() it does exactly the same thing
and the strategy thinks it's long when it isnt
i get this in the log file
30/01/2008 16:59:58 Default Cbi.Order.Cancel: exception caught: Value cannot be null.
any help would be greatly appreciated
Comment