No the unfortunate part is if you were on TS Ver 10. Ver 9.5 is much less glitchy much more stable.
Nonetheless your code has entries but no exit. So it enters and enters and ...
Hmm, but this is my exit code:
Code:
If Close < Average(Close,50) and Close[1] > Average(Close,50) then
Print("Selling") ;
Sell next bar at market ;
So essentially I'm saying if we have an open position and then Close falls below the Average then we sell next bar at market which unless I'm mistaken (and I might be) that should sell an equal amount to what it bought and exit the trade?
Thanks