An event is trigger... close[0] > close[1]
Place limit order at close[0] - X amount of ticks (variable PullBackEntry)
The order places correctly... see attached
When the limit price is hit instead of opening a position the limit order is cancelled.
Code...
// Enter Limt order
if ((Close[0] > Close[1])
&& (Position.MarketPosition == MarketPosition.Flat))
{
EnterLongLimit(Convert.ToInt32(Contracts), (Close[0] + (PullBackEntry * TickSize)) , @"Pull Back Entry");
Print("Entry Trigger Price " + (Close[0] + (PullBackEntry * TickSize)) + " **Time " + Convert.ToString(Times[0][0].TimeOfDay));
}
Any help would be appreciated.
Comment