I need a simple script written for the Chandelier Exit indicator in trading view.

Job ID: 33088982

Budget: $30 – $250 USD

I want to backtest the chandelier exit indicator in trading views backtester, but have no idea how to code it into a strategy. I would love to be able to be able to adjust the atr parameters, run a optimizer, test different pairs on different time frames. I would love for the strategy to use the heiken ashi candles for the indicator, but have the backtesting result use the japenese candles to get the real backtesting numbers. I need the strategy to place a long on the buy signal and close the previous short (if one exists). I need the strategy to place a short when the sell signal comes up on the indicator. I would be great to backtest leverage as well.