LastBattle

Fisher Transform Strategy

Direct port of the original Fisher Transform to TradingView: http://media.johnwiley.com.au/product_da...
http://www.mesasoftware.com/Seminars/Tra...

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.
สคริปต์โอเพนซอร์ซ

จากใจ TradingView ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ยินดีด้วย! คุณสามารถใช้มันได้ฟรี แต่การใช้โค๊ดนี้ซ้ำเพื่อการเผยเเพร่ อยู่ภายใต้ กฎของเรา คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้กับชาร์ตได้

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
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)
may the light of bitcoin be with you

ความคิดเห็น

Tradingview already offers a Fisher Transform. I compared your script with the build-in version from TradingView. It seems the signals are not identical:

+2 ตอบกลับ
LastBattle ChartArt
Ah. I should have searched for it beforehand, saves time making this script.
Anyway, you can't get the source code of the build in Fisher by TV. Take this as something bonus for you to build with :)

Learned something some Pinescript along the way too...
+1 ตอบกลับ
ChartArt LastBattle
I like that you created your own script version, because - as you said - it's not possible to play around with the build-in version without the source code.
+1 ตอบกลับ
LastBattle ChartArt
The build in ones seems to be mixed with some moving average or was it a rounding issue for my code? I'll check it out....
ตอบกลับ
ChartArt LastBattle
The issue seems to be with your script. Hpotter has also created a Fisher Transform script and his version shows the same signals as the TradingView version. You can compare the code here:



+1 ตอบกลับ
SunnyBTC LastBattle
I compared tv built in to yours and they are different, I prefer yours!
ตอบกลับ
Interesting
+1 ตอบกลับ
this indicator seems to be better than the other FT indicators in predicting tops and bottoms. Thanks!
ตอบกลับ