TerryPascoe

Underlying Cycle

These sine waves are extracted from underlying data using Fourier Transform.

You need to set a base cycle length to filter out the cycle. The indicator will detect the underlying cycle close to the base cycle length and display it on the chart.

These base cycle lengths are basically the rhythm of the market and rarely change, so I'll list them here.
Crypto = currently 89 days
Stocks = currently 55 days
Forex = currently 55 days

I then set the MML time spacing as close as possible to the underlying cycle length and then match the MML vertical lines to the lows of the cycle sine wave.

This makes determining the bar spacing much less ambiguous.
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

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?