I have a little problem to get arrows for buy
and sell signals on a subchart indicator when it
enters AND when it exits the OB/OS zones.
It shows either the entries or the exits
but not both, so the code
Buy = Cross( Indicator, OS );
Buy = Cross( OS, Indicator );
Sell = Cross( OB, Indicator );
Sell = Cross( Indicator, OB )
fails even without the
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );
How should it be coded to get the signals
in both cases ?