I have two separate conditions in my strategy for triggering a signal.
When I use Condition 1 in my code it works well, the same goes for Condition 2.
Now, I'd like to use the OR function to obtain the following.
if (Condition 1 == true || Condition 2 == true)
{
LongSignal = true;
}
else
{
LongSignal= false;
}
The prolem is, as soon as I use "||" it doesn't work anymore.
Is this the right syntax for using "OR"?
The signal is valid if EITHER ONE of the conditions is met.
Thanks.
Comment