I need code for backtest which uses AVERAGE DIRECTIONAL INDEX(ADX) with DI+ and DI- crossovers

The sysntax of Wilder’s Directional Movement System
ADX(Periods),  is

DI+

DIP(14) > 60

DI-

DIN(14) < 60

Please expalin your condition in brief?

take a situation for yourself for which you can give better explaination and code it