Hello,

Thank you to anyone who can help.

I am very young, and a good trader, but certainly not a good coder.

I am trying to make an algorithm that goes long if current price > EMA, and then a trailing stop loss(pretty simple), or sell if EMA> current price.

I get a whole variety of error codes and have spent hours trying to fix them. I was wondering if someone can help me out.

 

If someone can fix this, I would love to give a tip via PayPal or something. Thanks in advance.