Disliked
{quote} Hi Realblank Testing is still moving forward... I have noticed a few anomalies and will post them below. There are trades that are not taken and do not seem to be because of any rules. It almost seems that once a trade is opened on a dot with a candle fully outside the bands it stops any other similar trades. and waits for one to close inside the bands. It is acting the same as if a SL had been hit on a dot with a candle fully outside the bands. Chris {image}
Hi Chris,
Yeah, I think I know what's going on, this is my bad for not fully explaining that Dot Lockout feature further. I am aware that your initial vision of that feature (as seen in post 138) is different than the one implemented.
Essentially you specified that this "lockout" would happen after the "SL" of the outer-bands trade is hit, unfortunately I ended up implementing it a little different. Instead of activating this lockout after the SL is hit, the EA instead activates it immediately after that trade is taken (if TakeActivationTrade is true) or immediately after that dot/candle is seen outside the bands (if TakeActivationTrade is false, where that trade isn't even taken to begin with). This means that all proceeding trades outside the bands are not taken.
Now the reason I did it in this way was because of the chart below, where it would be beneficial to start the lockout immediately after that first trade (right away without waiting for that SL) as otherwise the two proceeding trades would have been taken and there would have been a total of 3 consecutive losses.
However, I now realize that this was a bad decision. I will implement a "3rd" lockout activation input that will make it so that lockouts are initiated after the SL is hit.
By the way should I make it so that the "SL hit" is exclusively for the First Trade or can it be any of the proceeding trades as well (I'm envisioning a situation where one of the proceeding trades might go higher/lower than the first trade and thus might get its SL hit before the first trade if price reverses)? Also, what should happen after that SL is hit (of course the lockout is activated (so no more same color dot trades are taken) but do we immediately close all current trades (if any) or leave them (i.e. let them close by SL or the other exits))? Should I simply make all these options inputs?
Please let me know what you think.
By the way if anyone is seeing that the EA is not trading (either in the tester or live) and you are getting "INVALID SL/TP", the most likely reason lies in the PIP Calculation and the fact different brokers have different decimal places. Please use the PipValueOverrides to set on which place value you define a "pip" as, for this specific thread we are using "150 pips as the SL" so the pip value would be "0.1," for whatever reason I am used to "15" pips (so my pip value would be "XAUUSD:1.0" for example).
// - XAUUSD:0.1 = Each pip = $0.10 (so 150 pips SL = $15 distance)
// - XAUUSD:1.0 = Each pip = $1.00 (so 15 pips SL = $15 distance) Same thing just changing your definition of "pip".
Attached Image (click to enlarge)