I wanted to add a multiple "if Any" condition, but then the backtester will not work for anything greater than 1 minute. Any idea how to fix this?
Here is the code that messes it up:
///Short Entry - Overbought RSI
if ((CrossBelow(RSI1.Default, RSI1.Avg, 1))
|| (CrossBelow(RSI1.Default, OverboughtRSI, 1))
|| (CrossAbove(RSI1.Default, OverboughtRSI, 1)))
{
EnterShort(1);
}
///Short Entry - Overbought RSI
if ((CrossBelow(RSI1.Default, RSI1.Avg, 1)))
//|| (CrossBelow(RSI1.Default, OverboughtRSI, 1))
//|| (CrossAbove(RSI1.Default, OverboughtRSI, 1)))
{
EnterShort(1);
}
Thank you.

Comment