Hi!
I'm having some trouble, mostly because I am an inexperienced coder.
I'm trying to tell the computer a few things.
- Take a position and hold it - Do not compound a position - take an initial position and hold it until criteria is met to exit rather than continually buying/shorting if price is >/< MA.... without using a schedule function.
- Execute every time 3% profit target is met per trade - if unrealized gain for the position taken is 3%, exit.
- If the algo goes long, it should always exit before shorting vice versa
Your feedback would be highly appreciated.