Assistance Required for ADX & ADX Smooth.Based Entry

Entry Conditions.

ADX >= 20
Di+ >= Di-

ADX Settings
TimeFrame (Say 5Mins)
Adx Smoothening (Say 10)
DI Length (Say 15)

and when supertrend goes to buy, execute order,

now problem is there is some mistake in my code, because trades to not get triggered, super trend code logic is fine, since working on other strategy im testing… but ADX with above settings are not working… Using the key word ADX smooth…