Here is the .eld from the thread you posted... The key idea behind Chandelier exit is to "hang" the exit from the HIGH of the bar. Trailing stop is usually set to ATR multiple ( 3x).
Try second .eld, it has code for several Chuck's exits, including Chandelier exit
credit to "goose", who coded it.
20040409001416ATRRATCHET.ELD