#region Variables
private int myInput0 = 1;
double startingPoint = 0;
#endregion
protected override void Initialize()
{
CalculateOnBarClose = false;
EntriesPerDirection = 5;
EntryHandling = EntryHandling.UniqueEntries;
}
protected override void OnBarUpdate()
{
if(Historical)
return;
if (Position.MarketPosition == MarketPosition.Flat)
{
EnterLong(1000, "StartingOrder");
startingPoint = Close[0];
Print ("StartingPointLong = " + startingPoint);
}
// Condition set 1
if (GetCurrentBid() == startingPoint + 1 * TickSize)
{
EnterLong(1000, "BOne");
}
// Condition set 2
if (GetCurrentBid() == startingPoint + 2 * TickSize)
{
EnterLong(1000, "BTwo");
}
// Condition set 3
if (GetCurrentBid() == startingPoint + 3 * TickSize)
{
EnterLong(1000, "BThree");
}
Comment