I attempt to create my first strategie.
I have put a definition for Uptrend and Downtrend with my conditions using private bool fonction.
What i want is when uptrend change for downtrend reverse my position (close long and open short)
I write it like that:
if ((Uptrend == true)[0] && (Downtrend == true)[1])
EnterLong();
ExitShort();
what i'm doing wrong?
thanks for the help.

Comment