The KeyRevLX strategy generates a Long Exit signal when Key Reversal occurs.

For the Long Exit strategy, a bar is considered Key Reversal if it has:

  • High price greater than that of several previous bars;

  • Close price lower than that of the previous bar.

In the event of Key Reversal, this strategy generates the Long Exit signal for the next bar.

Input Parameters

Parameter Description
length The number of preceding bars whose High prices are compared to the current High.