But the second&third unit never enters.. What am I doing wrong?
I want it enter when:
Unit 1 is entered
Close is below close yesterday.
There are no errors in the log.
Anybody has a solution for this?
{
// Condition set 1
if (RSI(2, 3)[0] < 25
&& RSI(2, 3)[1] < 25
&& Close[0] > SMA(200)[0])
{
EnterLong(1, "L1");
}
if ( Close[0] < Close[1]
&& Position.Quantity == 1)
{
EnterLong(2, "L2");
}
// Condition set 2
if (RSI(2, 3)[0] > 70)
{
ExitLong("EXITT", "");
}
}
Comment