Condition always closes itself
-
I have the problem that I create a condition, but also make a close again. But the result is always that a trade is opened and immediately closed again. so I need something where I can say close only if 2 candles or 8 hours have passed since opening.
-
One solution is to count the new bars, there's a million posts about it:
https://fxdreema.com/forum/search?term=barcount&in=titlesposts&sortBy=relevance&sortDirection=&showAs=postsBUT why your entry rule is the same as your exit rule? It doesn't make any sense, you shouldn't force it to technically work.
-
it is a simple EMA cross strategy with different close variants, only the first one just closes the other one immediately although it is in principle the first sl.
-
@fibolatschi If your exit condition is met on entry it shouldn't be a valid entry condition. However, I guess you work on candle ID 0 (current candle) and that may cause the issue. Am I right?
It would be easier id you'd share the project.