I took an attempt at it but it's not working. Can anyone tell me why this isn't working or make suggested code of how to do it?
// Condition set for Longs
{ if (Position.MarketPosition != MarketPosition.Flat)
{if (Indicator().Plot0[0] == 1)
{
EnterLong(1, "LongEntry");
}
}
else
if (Position.MarketPosition != MarketPosition.Long)
{if (Indicator().Plot0[0] == 1)
{
EnterLong(1, "LongEntry");
}
}
}
// Condition set for Shorts
{if (Position.MarketPosition != MarketPosition.Flat)
{if (Indicator().Plot0[0] == -1)
{
EnterShort(1, "ShortEntry");
}
}
else
if (Position.MarketPosition != MarketPosition.Short)
{if (Indicator().Plot0[0] == -1)
{
EnterShort(1, "ShortEntry");
}
Comment