NexusFi: Find Your Edge


Home Menu

 





Fisher Transform - a sample size problem?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one drolles with 8 posts (6 thanks)
    2. looks_two Trader.Jon with 4 posts (2 thanks)
    3. looks_3 wccktrader with 3 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 12,537 views
    2. thumb_up 8 thanks given
    3. group 4 followers
    1. forum 16 posts
    2. attach_file 5 attachments




 
Search this Thread

Fisher Transform - a sample size problem?

  #11 (permalink)
 drolles 
London, UK
 
Experience: Beginner
Platform: TradeLink, OpenQuant, considering anything that works...
Trading: if it trades...
Posts: 94 since Oct 2010
Thanks Given: 24
Thanks Received: 39


wccktrader View Post
I have backtested it for US equities. As the indicator is based on price distribution (pdf), it does a good job in finding cyclical turning points. It is also less sensitive to the lookback period as compared to other momentum indicators such as RSI, CCI and Stochastic. Such indicator would work well if their lookback periods are in-sync with actual cycle period of the market. However, they often give poor results when the actual cycle period of the market changes. I suppose this is one of the reasons for their poor walk forward testing results.

Wccktrader,

Thanks very much for the reply and thoughts.

Many I ask what your results were with the US Equities? Again, I’ve done some rough and ready testing, but thing robust as yet. I’m hoping to progress on that front today. My initial results show that it really needs to be traded on the right timeframe with a portfolio of equities at the same to smooth the equity curve and the right timeframe is important.

Thanks for sharing your views on the cycles. Would it be ok if we kicked that idea around a little? I thought that Ehlers had achieved with applying the Fisher Transform to the channel of prices is to create a Gaussian like distribution, therefore, the cycle is less relevant as the PDF is build regardless of the cycle and should be basically Gaussian always. Have I misunderstood? Ehlers focuses on cycles with his other work on the MAMA (https://www.mesasoftware.com/Papers/MAMA.pdf). Where he looks at the application Sine waves to identify the cycle.

Thanks and regards,

drolles

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
 
  #12 (permalink)
 drolles 
London, UK
 
Experience: Beginner
Platform: TradeLink, OpenQuant, considering anything that works...
Trading: if it trades...
Posts: 94 since Oct 2010
Thanks Given: 24
Thanks Received: 39


Trader.Jon View Post
Do you have a specialized workbook for doing that directly out of NT? I have a feeling that is only a small part of what you have done in terms of analysis.

Jon

Jon,

No, no specialised workbook. You can achieve the same thing by exporting the optimisation results using the usual method of right clicking on the Strategy Analyser Optimisation results tab, exporting to Excel then running a Pivot table with the performance parameters. Given the way that NT exports to the spreadsheet, you usually have to use Text to columns to break the parameters into separate columns.

Kind regards,

drolles

Started this thread Reply With Quote
  #13 (permalink)
 
wccktrader's Avatar
 wccktrader 
Singapore
 
Experience: Intermediate
Platform: NinjaTrader, Sierra Charts
Broker: Thinkorswim, IQFeed
Trading: Options of SPY, IWM, QQQ
Posts: 47 since Nov 2010
Thanks Given: 54
Thanks Received: 149



drolles View Post
Wccktrader,

Thanks very much for the reply and thoughts.

Many I ask what your results were with the US Equities? Again, I’ve done some rough and ready testing, but thing robust as yet. I’m hoping to progress on that front today. My initial results show that it really needs to be traded on the right timeframe with a portfolio of equities at the same to smooth the equity curve and the right timeframe is important.

Thanks for sharing your views on the cycles. Would it be ok if we kicked that idea around a little? I thought that Ehlers had achieved with applying the Fisher Transform to the channel of prices is to create a Gaussian like distribution, therefore, the cycle is less relevant as the PDF is build regardless of the cycle and should be basically Gaussian always. Have I misunderstood? Ehlers focuses on cycles with his other work on the MAMA (https://www.mesasoftware.com/Papers/MAMA.pdf). Where he looks at the application Sine waves to identify the cycle.

Thanks and regards,

drolles

I would backtest on a basket of stocks and choose the stocks that show good results for trading. These stocks are usually stocks that are trading in upward or downward sloping channels i.e. stocks trading in smaller cycles within upward/downward sloping channels.

I think the Fisher Transform has been designed with the purpose of clearly identifying cyclical turning points. This is given in the conclusion of the paper by Ehlers attached in your earlier post -

"Prices do not have a Gaussian PDF. By normalizing prices or creating a normalized
indicator such as the RSI or Stochastic, and applying the Fisher Transform, a nearly
Gaussian PDF can be created. Such a transformed output creates the peak swings as
relatively rare events. The sharp turning points of these peak swings clearly and
unambiguously identify price reversals in a timely manner. As a result, superior
discretionary trading can be expected and higher performing mechanical trading
systems can be developed by using the Fisher Transform."

Reply With Quote
  #14 (permalink)
 drolles 
London, UK
 
Experience: Beginner
Platform: TradeLink, OpenQuant, considering anything that works...
Trading: if it trades...
Posts: 94 since Oct 2010
Thanks Given: 24
Thanks Received: 39

As per the update previous, I’ve adjusted an existing script a ran the strategy across the Dow 30. It threw up some interesting results. The first one to note is the low Profit Factor at 1.05. However, again for out of the box not too bad. However, a couple of things that will need some attention. 1. The variance of the pay offs. I’ve attached a graph of the daily PnL. 2. The number of trades on some days. I suspect it is opening a number of trades at the same time and probably exceeding any sort of risk measures (e.g. max 5% of account at any one time). I’ve attached a of the number of trades per day vs the payoff for that day.

I think like my post previous on the Meander strategy, I think we are looking at a system with many of the same characteristics.

The other thing that I’m thinking is that it definitely could be used across a bigger set of instruments, like the whole S&P500. However, if definitely needs to be wrapped up with some sort more robust risk management before it is progressed.

The cumulative profit curve is the backtest results using a 50,000 account with a Fixed Fractional allocation of 1% per trade from 01/01/2008.

Kind regards,

drolles

Attached Thumbnails
Click image for larger version

Name:	Trades per day vs pay on day.JPG
Views:	206
Size:	47.5 KB
ID:	33564   Click image for larger version

Name:	Cum profit.JPG
Views:	234
Size:	107.3 KB
ID:	33565  
Started this thread Reply With Quote
Thanked by:
  #15 (permalink)
 drolles 
London, UK
 
Experience: Beginner
Platform: TradeLink, OpenQuant, considering anything that works...
Trading: if it trades...
Posts: 94 since Oct 2010
Thanks Given: 24
Thanks Received: 39

I’ve now run a combined test on the S&P 500. Unfortunately, not good results. I’ve not constructed this as a portfolio of the whole S&P500. I’ve done it as a single script then run it across the individual instruments. As you can the results are not worth taking any further. We are looking at an almost breakeven with a very large number of trades (nearly 40,000) across a year.

Attached Thumbnails
Click image for larger version

Name:	SP500 - Fisher Strat Combined Results.JPG
Views:	214
Size:	68.3 KB
ID:	33650  
Started this thread Reply With Quote
  #16 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184


drolles View Post
I’ve now run a combined test on the S&P 500. Unfortunately, not good results. I’ve not constructed this as a portfolio of the whole S&P500. I’ve done it as a single script then run it across the individual instruments. As you can the results are not worth taking any further. We are looking at an almost breakeven with a very large number of trades (nearly 40,000) across a year.

I have never found it to be easy ... each instrument is like its own universe and needs to be massaged to have the best probable outcome.

I highly doubt that there are more than two out of that list of 500 that have comparable/similar results?!

Jon

Writing to you from the wonderful province of Ontario, Canada. Home to the world's biggest natural negative ion generator, the Niagara Falls, and to those that dare to know how to go over it in a barrel. SALUTE!
Reply With Quote
Thanked by:
  #17 (permalink)
 drolles 
London, UK
 
Experience: Beginner
Platform: TradeLink, OpenQuant, considering anything that works...
Trading: if it trades...
Posts: 94 since Oct 2010
Thanks Given: 24
Thanks Received: 39

Jon,

Yes, you are right. The results were highly variable within the S&P500. Very big differences between the performance each of the stocks within that. However, given the high correlation of the instruments within the collection, the bad days and the volatility were all aligned. I’ve been thinking is there is there anything one could do at the portfolio level to manage that risk and correlation (returns and volatility).

I’ve been doing some testing with portfolio measures of drawdown which appears to improve the performance (note here, not overall cash returns, but improve Sharpe and Profit Factor).

Kind regards,

drolles

Started this thread Reply With Quote




Last Updated on March 15, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts