DPO / Zero-Cross Exit Indicator Problems
-
Really hope someone can help me with this one. I have been looking for an effective exit indicator and, visually, the DPO as a zero-cross exit indicator seems pretty good.
Trouble is, other conditions in my EA may open Buy trades, when the DPO is below zero, and setting the DPO block condition to exit these when the DPO X< 0 does not work.
This illustrates such a trade and where I want the DPO indicator EA to exit the trade:

Does anyone have any advice as to how set parameters and conditions to achieve this later cross back below the zero line as an exit, whether or not the Buy trade opened when the DPO was below the zero line?
I have been having this problem generally with potential exit indicators, not just the DPO and it would be a big help!
Thanks.
-
You can specify 'crossing up' from below 0 to above zero as a condition to avoid whereas the opposite is a condition to be met.
-
@l-andorrà said in DPO / Zero-Cross Exit Indicator Problems:
You can specify 'crossing up' from below 0 to above zero as a condition to avoid whereas the opposite is a condition to be met.
I think it would still close it when it cross back up. looks like he wants to stay in the trade after that.
I would try to think of a looping trade condition to watch for?
-
But what is the exact problem of requiring that all open trades SHOULD include the indiocator to be over zero? Otherwise, no open trade is possible. Wouldn't it be what you are looking for?
-
@jsauter86 said in DPO / Zero-Cross Exit Indicator Problems:
@l-andorrà said in DPO / Zero-Cross Exit Indicator Problems:
You can specify 'crossing up' from below 0 to above zero as a condition to avoid whereas the opposite is a condition to be met.
I think it would still close it when it cross back up. looks like he wants to stay in the trade after that.
I would try to think of a looping trade condition to watch for?
I think I understand better...I often run into conflicting crosses when I have buy and sell conditions in the same EA. I have recently begun splitting my EAs into 2 versions of each version. 1 Short EA, and 1 Long EA.
-
Thanks for the comments guys. Always much appreciated.
Not sure how I would tell the EA not to close e.g. a buy trade if the indicator crosses above zero. In any event, I identified a further problem with this thinking and it is the 'messy' way the indicator crosses the zero line which would not work (it would still close what would have played out as profitable trades):

In the above, their was a fractional cross below the zero line after a cross up which would have cut the trade out.
My only solution is to have a cross above (sell) or below (buy) DPO zero line as an exit action after a 1st Take Profit has been met...by which time the DPO line will be cleanly above or below by some distance.
This works quite nicely to exit profitable trades...but the search or a good exit indicator to identify trades that are destined to hit the SL and cut these out to save pips continues! Any suggestions would be greatly appreciated

-
https://nononsensetrader.com/top-100-indicators/
I am only posting this link as a reference to his links. He has put in a lot of time and effort into indicators. There are his top 100 and I believe he updates the list. I dont condone him or his teachings, or his teachers teachings. Just some information thats good for sharing.
-
@jsauter86 Thanks. That's actually where I got the DPO indicator!