The sell trade opened correctly originally, and now SuperSlope changed direction and the buy trade was also opening correctly. But I had forgotten how the EA is set up to close buy trades on a sell signal and vice-versa:
For trading in the middle, if I'm not using the Buy Low/Sell High feature, I would let these two trades hedge each other. If price moves enough in each direction over time, they could both close in profit. More importantly, is SuperSlope keeps ranging back and forth, I could continually close trades at a small loss.
So for my purposes, I've changed the test version of the EA - coding changes I made as follows in case anyone wants to do something similar:
at line 247 under trading style (personal preference):
extern bool CloseonOppositeSignal=false; // cozybooks
Then around line 891 (for me) I added an extra condition to check first if CloseonOppositeSignal is true
if (CloseonOppositeSignal) // cozybooks
if (BuySignal)
SellCloseSignal = true;
if (CloseonOppositeSignal) // cozybooks
if (SellSignal)
BuyCloseSignal = true;
In theory this will work until Steve tells you that I've set a new record by somehow managing to botch up a 47 second modification.
Cheers!