protected override void OnBarUpdate()
{
// Condition set 1
if (condition for entry)
{
EnterShortStop(0, true, DefaultQuantity, //short price set here by indicator location//, "shortEntry");
}
//This was produced by wizard as a way to exit short position
if (Position.MarketPosition == MarketPosition.Short)
{
ExitShortStop(SMA(14)[0] + 3 * TickSize, "shortExit", "shortEntry");
}
I also noticed I am getting the following error in the log:
An Exit() method to submit an exit order at '6/15/2012 7:16:00 AM' has been ignored. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation.

Comment