Here is a simple example of what I have been trying.
if ((Close[1] < Close[2])
&& (Close[0] > Close[1]))
{
EnterLong(Convert.ToInt32(DefaultQuantity), "");
}
if (High[0] >= Position.AveragePrice + .002 )
ExitLongStopMarket(Position.Quantity,Position.Aver agePrice + .0002 );
Any help would be greatly appreciated.
Comment