OPEN-SOURCE SCRIPT
Updated 卡蛋K线反转

Currently, only entry signals and reversal signals are available.
Continuous updates are planned, with subsequent plans to add alarm and reversal alerts.
Continuous updates are planned, with subsequent plans to add alarm and reversal alerts.
Release Notes
Updated the horizontal line used for assisting in the judgment of K-line reversals.Release Notes
Add HTF_2Update input panel
Release Notes
Fixed the bug that may occur when the timeframe is greater than the htf_timeframe. Although the indicator cannot be used as a reference at this time.Release Notes
Update displayRelease Notes
[October 1st, 2025][Update] Added calculation of the current cycle reversal point to facilitate data acquisition during quantitative trading.
[Update] When HTF is less than or equal to TF, the signal will no longer be displayed.
[Update] Increase computing speed
[To be updated] Alert function
Release Notes
// [Update] Overall restructure, using dataclasses to re-plan variables for easier subsequent development and maintenance// [Update] Update display logic, entry signal is shown one candle earlier for convenience in backtesting development
// [Other Notes] This indicator uses the logic of Kadan, but the layout borrows from other paid indicator authors. As we have received benefits, it should not affect the sales of the author's indicators. Therefore, the alert function is not added for the time being. If needed, please develop it yourself. It's just a few lines of code and very simple.
Release Notes
// 【Update】Fixed the bug where the current cycle reversal point was displayed incorrectly.// 【Update】Optimized the logic for the current cycle reversal point. When the reverse package K-line reverses while also breaking through ldl or luh simultaneously, ldl and luh will be updated synchronously. This optimization is aimed at enabling more precise selection of stop-loss and take-profit points in subsequent quantitative development. Only the current cycle has been modified; no changes were made in HTF1 and HTF2.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.