Tesla Coil ML

This is a re-implementation of @veryfid's wonderful Tesla Coil indicator to leverage basic Machine Learning Algorithms to help classify coil crossovers. The original Tesla Coil indicator requires extensive training and practice for the user to develop adequate intuition to interpret coil crossovers. The goal for this version is to help the user understand the underlying logic of the Tesla Coil indicator and provide a more intuitive way to interpret the indicator. The signals should be interpreted as suggestions rather than as a hard-coded set of rules.

NOTE: Please do NOT trade off the signals blindly. Always try to use your own intuition for understanding the coils and check for confluence with other indicators before initiating a trade.
Release Notes:
  • Enhancements for settings interface
  • Better default settings
Release Notes:
  • Removed unused setting
Release Notes:
  • Add Maximum Entropy Spectral Analysis (MESA) line for dominant cycle identification; can be used as added confluence to screen ML Signals
  • Remove unused confluence logic
Release Notes:
  • Use built-in constant for pi
Release Notes:
  • Simplify dominant cycle measurement
  • Add toggles for ML Signals and MESA Baseline

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?