TradingView
nilux
15 פבר׳ 2019 18:47

Fisher Transform Multi-Timeframe (Backtest) 

Bitcoin / US Dollar Perpetual Inverse Swap ContractBitMEX

תיאור

This is the Backtest Strategy for mortdiggiddy's "Fisher Transform Multi-Timeframe"

For more details check his study: tradingview.com/script/ZEJ7oIRC-Fisher-Transform-Multi-Timeframe/

הערות שחרור

Added (Trailing) Take Profit and Stop Loss
תגובות
ufehffef
look ahead=true. garbage
mortdiggiddy
I recommend 2 filters:

1. The trend filter, check my moving average ribbon for a basic one, or the ATR-ADX indicator
2. Only take longs when fisher oscillator has previously crossed beneath 0, and shorts when fisher has previously crossed above 0

// majorTrend = some kind of filter, either moving average or something that designates the major trend is 1, or -1 (up or down)

longCrit1 = majorTrend > 0
longCrit2 = barssince(crossunder(fisher, 0)) <= barssince(trendChange < 0) // when the fisher trend was down, at some point it was negative and below zero

shortCrit1 = majorTrend < 0
shortCrit1 = barssince(crossover(fisher, 0)) <= barssince(trendChange > 0) // when the fisher trend was up, at some point it was positive and above zero

long = trendChange > 0 and longCrit1 and longCrit2
short = trendChange < 0 and shortCrit1 and shortCrit2
mortdiggiddy
After this you can do something where instead of crossing under/over zero for a long/short, you can do a threshold. This could be something in the range of 0.75 - 1.25 or something. This further constrains the trades to not take any whipsaws.

You could also do something where in order to exit a long, the fisher indicator must exceed that same threshold on the other side. i.e. to go long, it must have crossed underneath -1.00, then to even consider exiting the trade it must first cross back above 1.00.
nilux
@mortdiggiddy, this is a great idea! Thanks for your input buddy. Appreciate it!
nilux
@mortdiggiddy, I was thinking of combining it with something like Zero-Lag EMA/RMA but have to dig deeper into this :)
aynetbt
@nilux, Hello, congratulations on your work.
fixedSL = input (title = "SL Activation", defval = 70)
trailSL = input (title = "SL Trigger", defval = 10)
fixedTP = input (title = "TP Activation", defval = 50)
trailTP = input (title = "TP Trigger", defval = 10)

Are these values a percentage (%)?
If not percentages, how should we understand?
Can we convert these values to percentages?
Thank you very much in advance for your answer.
עוד