OPEN-SOURCE SCRIPT
Updated

Laplace Transform Oscillator Pro

262
主要功能:

拉普拉斯變換近似:使用指數衰減權重來模擬拉普拉斯域的平滑效果
震盪器(LTO):顯示價格與拉普拉斯平滑值的差異
信號線:提供交易信號的參考線
柱狀圖:顯示LTO與信號線的差異

參數說明:

Length:拉普拉斯變換的窗口長度(預設14)
Alpha:衰減係數,控制平滑程度(預設0.3,越小越平滑)
Signal Line Length:信號線的EMA週期(預設9)

交易信號:

🟢 買入信號:LTO向上穿越信號線時出現綠色三角形
🔴 賣出信號:LTO向下穿越信號線時出現紅色三角形
背景顏色會根據趨勢變化(綠色=看漲,紅色=看跌)

功能:

資訊面板:顯示當前LTO值、訊號線、趨勢強度和距離上次訊號的K棒數
視覺標記:🚀(買入) 🔻(賣出)更清楚的標示
門檻線:綠色/紅色虛線顯示訊號觸發區域

⚙️ 建議參數調整:

提高Signal Threshold(0.5→1.0)可進一步減少訊號
增加Min Bars Between Signals(5→10)延長間隔
調整Length(21)可改變靈敏度


Main functions:

Laplace transform approximation: Use exponential attenuation weights to simulate the smoothing effect of the Laplace domain
Oscillator (LTO): Shows the difference between the price and the Laplace smoothing value
Signal line: A reference line that provides trading signals
Histogram: Shows the difference between LTO and signal line

Parameter description:

Length: The window length of the Laplace transform (preset 14)
Alpha: Attenuation coefficient, control the degree of smoothing (preset 0.3, the smaller the smoother)
Signal Line Length: The EMA cycle of the signal line (default 9)

Trading signals:

🟢Buy signal: A green triangle appears when LTO crosses the signal line upward
🔴Sell signal: A red triangle appears when LTO crosses the signal line downwards
The background color will change according to the trend (green = bullish, red = bearish)

function:

Information panel: displays the current LTO value, signal line, trend strength, and the number of K bars from the last signal
Visual marking:清楚(buy) 🔻 (sell) Clearer marking
Threshold line: Green/red dotted line shows the signal trigger area

️️ Recommended parameter adjustment:

Increasing the Signal Threshold (0.5→1.0) can further reduce the signal
Increase Min Bars between Signals (5→10) to extend the interval
Adjust the length (21) to change the sensitivity
Release Notes
🕐 HTF時區功能:
新增參數:

使用高時區(HTF): 開關HTF模式
HTF時區: 選擇更高的時間週期(預設60分鐘)

可選:15, 30, 60, 240(4H), D(日), W(週), M(月)等


顯示HTF訊號: 是否顯示HTF的訊號標記
顯示資訊面板: 開關右上角表格
面板位置: 選擇表格位置(左上/右上/左下/右下)

🎨 視覺特點:
HTF模式啟用時:

HTF線條(主線):

青色(Aqua) = LTO
紫紅色(Fuchsia) = Signal


當前時區線條(背景參考):

半透明藍色 = 當前LTO
半透明橙色 = 當前Signal



一般模式:

藍色 = LTO
橙色 = Signal

📊 使用建議:

短線交易: 關閉HTF,使用當前時區
波段交易: 開啟HTF,選擇4H或日線
多時區確認: 開啟HTF,同時觀察兩個時區的趨勢一致性

💡 實戰技巧:

當HTF和當前時區訊號同向時,訊號更可靠
HTF可以過濾更多雜訊,提供更穩定的趨勢方向
在1分鐘圖使用15分鐘HTF,或在15分鐘圖使用4小時HTF


HTHTF time zone function:
New parameters:

Use high time zone (HTF): Switch HTF mode
HTF time zone: Choose a higher time period (default 60 minutes)

Optional: 15, 30, 60, 240 (4H), D (day), W (week), M (month), etc.


Display HTF signal: whether to display the HTF signal mark
Display information panel: switch the table in the upper right corner
Panel position: Select the table position (upper left/upper right/lower left/lower right)

🎨 Visual characteristics:
When HTF mode is enabled:

HTF line (main line):

Cyan (Aqua) = LTO
Fuchsia (Fuchsia) = Signal


Current time zone line (background reference):

Translucent blue = current LTO
Translucent orange = current signal



General mode:

Blue = LTO
Orange = Signal

📊 Usage recommendations:

Short-term trading: Close HTF and use the current time zone
Swing trading: Turn on HTF, choose 4H or daily line
Multi-time confirmation: Turn on HTF and observe the trend consistency of the two time zones at the same time

实战 Practical skills:

When the HTF is in the same direction as the current time zone signal, the signal is more reliable
HTF can filter more noise and provide a more stable trend direction
Use 15 minutes HTF on a 1-minute chart, or 4 hours HTF on a 15-minute chart

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.