First you had only wrong number of parameters, but then your code became totally wrong.

Correct is ADX(18), not ADX[0]. But do not copy-paste it but learn to write correct code.