Stop Loss did not work during trading period
-
hi guys, the stop loss that i have used for my trading strategy didn't seem to work during the entire back test trading period,
this is the stop loss i am using currently

clearly, all the trades weren't closed as seen in this picture as well

-
@tedhor07
SL, TP set in this block are fix, so when a buy position is opened, there is a stop-loss which is fixed at the level you selected : the close of the actual bear candle (if candle id = 0), if it is a bear, and if it is different from the previous one. As it is never the case, you dont have any SL and all your trades are closed winning.
You should do that instead : https://fxdreema.com/shared/sSfCm4z1d -
@seb-0 hi seb! thank you for the info, so for this stop loss i will have to open new branch as what u showed me, do i do it the same for taking profits as well? or stick with the old way?
-
@tedhor07
This branch will close the buy position as soon as a bear has formed, no matter if you are loosing or winning. And i don't think the old way is relevant.
But you still can fix TP or SL with fix pips in this buy block. So position will be closed whenever either pips are reached or bear formed. -
@seb-0 okay, got it, i will try the new way and let you know if it works! thank u! will update u within 2 days.
-
@seb-0 hi seb, i have tried the way you showed me, sadly it didn't work out here..
the equity just keep decreasing the moment the EA starts running

-
@tedhor07
I showed you how to build the EA, the way you wanted to make it work, not how to earn money. I don't have the solution for that.
This is a good demonstration that it's not as easy as that. You have to add more conditions, implement other indicators to make it profitable.
Good luck : ) -
@seb-0 thank you for the help sincerely! i really do appreciate it.