Hi,
There were a couple of logic errors in your short code.
The reversals are due to your check for ma recross in the stop code. I added some changes to that code to show when you exited due to a reversal or due to a stop.
I also changed the price you exit if it's only due to a reversal to use open(0).
Steve
There were a couple of logic errors in your short code.
The reversals are due to your check for ma recross in the stop code. I added some changes to that code to show when you exited due to a reversal or due to a stop.
I also changed the price you exit if it's only due to a reversal to use open(0).
Steve
Comment