I am not sure if this is the right thread for this question. Is it possible to code this:
Entry is under Daily MA 20 – entry in lower timeframe
Exit is price closes under Daily MA 20.
During initial entry price is already under daily MA20, so price close under MA20 condition is already met which should not be.
How do I set condition so that, Daily MA20 is under the price and when price closes under Daily MA20 later, exit. The condition is somewhat contradictory as I want price to trade above MA, and exit condition is based on breach of MA
What would be the workaround for this situation?
thanks