« Back home

High and Low Indicator

The High & Low indicator is a simple trading strategy which involves the calculation of ‘high minus low’ for the recent 14 days. A buy is generated when the recent close is greater than the simple moving average of the last 14 days high minus close.

Likewise a sell signal is generated when the close is lesser than the last 14 days simple moving average of the high minus low.

Buy script

Sell script

Additional notes

HML is a predefined function in tradescript. The 14 day period is only indicative, traders can change the same for optimal performance.