zigzag indicator

appreciate to know how we can change that to apply on closing? many tks in adv.
i mean to apply on line chart. tks