Hi, I've been trying to post my entire code in a backtest b/c I could use some assistance but I can't even get it to build yet.  Could someone please assist me with errors I am getting with this line of code preventing me from building my algo.  Thanks!

if(!Portfolio["EURUSD"].Invested and currentPrice > smaDaily and totalTime == 0) // Errors I'm getting on this line: ) expected // Embedded statement cannot be a declaration or labeled statement // ; expected // Invalid expression term '>'