I'm having an issue with entering with one indicator and exiting with another. Once an order has been placed the exiting condition will be ignored if the opposing entry conditions are met. Here is the code:
protectedoverridevoid OnBarUpdate()
{
if (RValueCharts(5).VClose[0] >= 3.8)
{
EnterLong(DefaultQuantity, "RunnerLong");
}
if (CrossAbove(DM(14).DiPlus, DM(14).DiMinus, 1))
{
ExitLong("", "RunnerLong");
}
if (RValueCharts(5).VClose[0] <= -3.8)
{
EnterShort(DefaultQuantity, "RunnerShort");
}
if (CrossBelow(DM(14).DiMinus, DM(14).DiPlus, 1))
{
ExitShort("", "RunnerShort");
}
I have not specified a "reverse" when the opposing entry conditions are met, yet that is happening. Any suggestions?

Comment