LastBattle

Fisher Transform Strategy

Direct port of the original Fisher Transform to TradingView: media.johnwiley.com....14630/0471463078.pdf
www.mesasoftware.com...Station World 04.pdf

This might be better suited to be combined with other indicator to be effective, such as the Fisher Transform of RSI.

I hope you have found this useful :) Happy trading.
Thanks to @MikeLloyd for referring me to this, and here's my port for you.

Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?
study(title="Fisher Transform (LastBattle)", shorttitle="Fisher (LastBattle)")

/// Define graph data
src = close
src_high = high
src_low = low

/// User input length
fisherlen = input(21, minval=1, title="Fisher Length")

// Fisher
Price = (src_high + src_low) / 2
MaxH = highest(src_high, fisherlen) 
MinL = lowest(src_low, fisherlen)

Value1 = max(-0.9999, min(0.9999, 0.5 * 2 * ((Price - MinL) / (MaxH - MinL) - 0.5) + 0.5 *  nz(Value1[1])))

Fish = 0.25 * log((1 + Value1) / (1 - Value1)) + 0.5 * nz(Fish[1]) 

/// Plot
plot(Value1, color=green)
plot(nz(Fish[1]), color=red) // trigger/signal line

// Background color
//sellSignal = (nz(Fish[1]) < -0.3 and nz(Fish[1]) > 0.9 * nz(Fish[1]))
//bgcolor(sellSignal ? red : white, transp=90)

// Band range
band_green_top = hline(.6999)
band_green_bottom = hline(.9999)
fill(band_green_top, band_green_bottom, color=green, transp=90)

band_red_top = hline(-.6999)
band_red_bottom = hline(-.9999)
fill(band_red_top, band_red_bottom, color=red, transp=90)