It is probably caused by the extra "(" in the code, but it depends on the context of your code (i.e. the rest of the code).
if( FastMaArray[0] > SlowMaArray[0] && FastMaArray[1] < ( SlowMaArray[1] )
You probably meant the following ...
if( FastMaArray[0] > SlowMaArray[0] && FastMaArray[1] < SlowMaArray[1] )
Write self-documenting code
bool isUp = FastMaArray[0] > SlowMaArray[0]; bool wasUp = FastMaArray[1] < SlowMaArray[1]; bool isCross = isUp != wasUp; if(isCross)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register