NexusFi: Find Your Edge


Home Menu

 





Seeing into the future...with Cycles.


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one NMTrader with 13 posts (10 thanks)
    2. looks_two wh with 7 posts (2 thanks)
    3. looks_3 sefstrat with 5 posts (10 thanks)
    4. looks_4 David with 4 posts (0 thanks)
    1. trending_up 33,805 views
    2. thumb_up 22 thanks given
    3. group 18 followers
    1. forum 40 posts
    2. attach_file 17 attachments




 
Search this Thread

Seeing into the future...with Cycles.

  #31 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512


Quoting 
wh are you working with the files from bearcave.com? I tried your indicator but doesn't look like its drawing correctly here.

No, i worked with the nonlinear workbook (g****e,rapids***e). the code is at the time limeted. with bearcave I do not get good results
some things must be changed. now i count only 54 bars back and not the full series. the other question is how i interpret the wavelet correctly. i mean the haar wavelet use only 1,0,-1 for this. For more infos i used wiki, in this case my math skills are sleeping well.

 
Code
                            
            int t,tt;
            
double[] = new double[n];
               for(
t=0,tt=n;t<x.Length;t++)
            {
                
x[t] = Close[tt];            // time series
                
tt--;
            } 
 
Code
                            
            for(t=0;t<dd.Length;t++) { sum += Math.Log(dd1[t]/dd[t]); }
            
double lambda sum/((double) (dd.Length));
            
            
//Print(CurrentBar +" lambda = " + lambda);
            
            
if(lambda 0.0 && lambda 5P.Set(1);
            else if(
lambda < -0.0 && lambda > -5N.Set(-1);
            else 
Z.Set(0); 
wh


Attached Thumbnails
Click image for larger version

Name:	haar wavelet.png
Views:	576
Size:	162.7 KB
ID:	1197   Click image for larger version

Name:	NL002 002.png
Views:	512
Size:	154.3 KB
ID:	1208  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #32 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512


i will make some changes, the next days.

Reply With Quote
  #33 (permalink)
 
sefstrat's Avatar
 sefstrat 
Austin, TX
 
Experience: Advanced
Platform: NT/Matlab
Broker: Interactive Brokers
Trading: FX majors
Posts: 285 since Jun 2009
Thanks Given: 20
Thanks Received: 768


wh, are you still pursuing wavelets?

They are a bit hard to understand at first but it is a very powerful methodology for time series analysis, worth spending some time to learn IMHO.

BTW with Haar transform you don't have to worry about boundary conditions and edge effects that I mentioned previously. The only thing you must worry about in that case is that you use an undecimated version of the transform (no downsampling).

StationaryWT, MODWT, Translation Invariant WT, A'Trous algorithm are all different names for the undecimated transform.

You can get very good denoising result using only the Haar transform provided that you use good thresholding method. Check this research paper which gives simple version of the algorithm: https://www.unige.ch/fapse/mad/renaud/papers/KalmanWavelet.pdf

Reply With Quote
  #34 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512


sefstrat View Post
wh, are you still pursuing wavelets?

They are a bit hard to understand at first but it is a very powerful methodology for time series analysis, worth spending some time to learn IMHO.

BTW with Haar transform you don't have to worry about boundary conditions and edge effects that I mentioned previously. The only thing you must worry about in that case is that you use an undecimated version of the transform (no downsampling).

StationaryWT, MODWT, Translation Invariant WT, A'Trous algorithm are all different names for the undecimated transform.

You can get very good denoising result using only the Haar transform provided that you use good thresholding method. Check this research paper which gives simple version of the algorithm: https://www.unige.ch/fapse/mad/renaud/papers/KalmanWavelet.pdf

i look around on this wavelet, but it is not mandatory for my trading. i like it quite simple and wavelets more then difficult to identify.

but it is interesting for me: to create in the future a hybrid of ann + wnn. so i must learn a lot.

wh

https://users.cs.fiu.edu/%7Echens/PDF/ICTAI02_WNN.pdf

Reply With Quote
  #35 (permalink)
 
sefstrat's Avatar
 sefstrat 
Austin, TX
 
Experience: Advanced
Platform: NT/Matlab
Broker: Interactive Brokers
Trading: FX majors
Posts: 285 since Jun 2009
Thanks Given: 20
Thanks Received: 768


wh View Post
i look around on this wavelet, but it is not mandatory for my trading. i like it quite simple and wavelets more then difficult to identify.

but it is interesting for me: to create in the future a hybrid of ann + wnn. so i must learn a lot.

wh

https://users.cs.fiu.edu/%7Echens/PDF/ICTAI02_WNN.pdf

True, wavelets are not that useful for discretionary trading, it is very powerful for algorithmic trading due to its power of feature extraction which makes pattern recognition much easier.

I skimmed through the research paper you linked above, only problem is their method can't be used in real time because they use future data in their calculations. Here is another similar paper which uses wavelets, fuzzy logic and neural network together for forecasting exchange rates.

This one I have implemented myself and can verify that the approach works quite well =)

Attached Files
Elite Membership required to download: unis_report.doc
Reply With Quote
Thanked by:
  #36 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512

thanks my inputs based all on this books

one from the good old algol area ...



and the other is the nonlinear workbook


Reply With Quote
  #37 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512

some interesting research papers:

https://mpra.ub.uni-muenchen.de/2482/1/MPRA_paper_2482.pdf

Reply With Quote
Thanked by:
  #38 (permalink)
 Southsea 
USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Amp Futues/Zen-fire
Trading: Futures
Posts: 45 since Apr 2010
Thanks Given: 13
Thanks Received: 6

Thanks! Do you have the toolkit in zip form? Thanks

Reply With Quote
  #39 (permalink)
andyb1979
London UK
 
Posts: 37 since Aug 2011
Thanks Given: 7
Thanks Received: 4

A few years old but a very interesting thread. I'm posting here to get notifications for updates : )

BTW I have a phd in signal processing, but relatively new to algo trading. Happy to collaborate with anyone on developing / researching these algos

Reply With Quote
  #40 (permalink)
MXTrader
Toronto, Canada
 
Posts: 19 since Sep 2011
Thanks Given: 3
Thanks Received: 5


Hi, NMTrader,

I like your cycle analysis. are you planning to post more pictures of cycles?

Reply With Quote




Last Updated on October 17, 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