1. If a Long position is taken during the trading session, another Long should only be taken if the EMA(5) crosses below and back above the EMA(20).
2. If a Short position is taken during the trading session, another Short should only be taken if the EMA(5) crosses above and back below the EMA(20).
The idea is that the first signal in the trend is usually the most consistent with my results and I want to ignore later signals unless the above happens.
Can I pick a point in a trading session (a Position opening in this case) and code logic that says if "this" has happened since "this particular point", then "do this"?

Comment