How to apply dominant cycle period, amplitude and phase shift - futures io
futures io futures trading



How to apply dominant cycle period, amplitude and phase shift


Discussion in NinjaTrader

Updated by mk77ch
      Top Posters
    1. looks_one wldman with 3 posts (2 thanks)
    2. looks_two mk77ch with 2 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 Royal Flush with 1 posts (0 thanks)
    1. trending_up 4,035 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 7 replies
    2. attach_file 4 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Thread Tools Search this Thread
 

How to apply dominant cycle period, amplitude and phase shift

  #1 (permalink)
Switzerland
 
Experience: Advanced
Platform: NinjaTrader
Broker: Dorman
Trading: Currency Futures, ES
 
mk77ch's Avatar
 
Posts: 85 since Oct 2010
Thanks: 14 given, 73 received

How to apply dominant cycle period, amplitude and phase shift

hi guys,

i found an indicator which calculates the dominant cycle, amplitude and phase shift using the discrete hilbert transform. my idea is to use those informations to create a sinus wave form indicator which plots those cycles according to those calculations.

 
Code
private double phase = 10.0;
private int shift = 0;
private double pi = 3.14159265;

calc = Math.Sin(((CurrentBar+shift)*(pi/phase)));

Cycle.Set(calc);
does anybody have an idea how i could add those parameters to plot a valid cycle?

thank you and cheers,
mike

Reply With Quote

Can you help answer these questions
from other members on futures io?
Convert NinjaTrader NT7 indicator to Tradestation EasyLanguage and RADARSCREEN
Platforms and Indicators
Issue meeting order entry conditions
Elite Automated NinjaTrader Trading
Last 5 minutes Label
ThinkOrSwim
Moving average with Lag reduction
NinjaTrader
Linux?
ThinkOrSwim
 
 
  #3 (permalink)
Legendary Market Wizard
Chicago Illinois USA
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
 
wldman's Avatar
 
Posts: 3,187 since Aug 2011
Thanks: 1,842 given, 7,751 received

Have you ..


searched the forums? Pretty sure you will find already complete that which you desire to create.

Dan

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to wldman for this post:
 
  #4 (permalink)
Legendary Market Wizard
Chicago Illinois USA
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
 
wldman's Avatar
 
Posts: 3,187 since Aug 2011
Thanks: 1,842 given, 7,751 received

this work?


Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to wldman for this post:
 
  #5 (permalink)
Legendary Market Wizard
Chicago Illinois USA
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
 
wldman's Avatar
 
Posts: 3,187 since Aug 2011
Thanks: 1,842 given, 7,751 received

Hey Man...

@mk77ch

I think most of the cycle period work here in NT is based on the work of John Ehlers. The adaptive cci that I use definitely is. I have a guy when it comes to cycle period analysis... an old friend from a the past. He has a website that I think might interest you. There is some content that is "free". I know Lars pretty well and over the years have learned a lot from his approach. However I never purchased any products from him. In the formative days he provided a great deal for free to help with testing. Anyway I have no commercial connection. I do, though , pay attention to Lars and check his latest work every chance I can. Here is his site. I'd scrub it for details to his approach to the topic. www (dot) whentotrade (dot) com.

Visit my futures io Trade Journal Reply With Quote
 
  #6 (permalink)
Houston, TX
 
Experience: Intermediate
Platform: NinjaTrader TWS Barchart
Broker: IB / IB
Trading: SPY, QQQ
 
ElChacal's Avatar
 
Posts: 408 since Nov 2014
Thanks: 470 given, 276 received

Any luck phase shifting?

@mk77ch
Have you had any luck phase shifting with your code? I came up with a "waveform" (not a sinewave though) that I would like to shift forward a little but I've had no luck. I found a couple of codes in Matlab that allegedly do this using Fast Fourier Transforms.
I am just wondering if you had any luck phase shifting, if so what approach are you employing?
Thanks!

Reply With Quote
 
  #7 (permalink)
Stanstead, Quebec, Canada
 
Experience: Intermediate
Platform: NinjaTrader
Trading: CL
 
Royal Flush's Avatar
 
Posts: 122 since Dec 2010
Thanks: 71 given, 64 received


wldman View Post

I have been unable to find any information on the net regarding how to read Elhers Dominant Cycle. Below it appears that it is a leading indicator saying that the next dominant cycle will be up. This seems to good to be true, is it?


Reply With Quote
 
  #8 (permalink)
Switzerland
 
Experience: Advanced
Platform: NinjaTrader
Broker: Dorman
Trading: Currency Futures, ES
 
mk77ch's Avatar
 
Posts: 85 since Oct 2010
Thanks: 14 given, 73 received

cycle

this is an old thread but i recently started again to try and get a bit more into the subject as i believe this could be pretty powerful.

i will attach the indicators and a screenshot. maybe somebody who is into math and cycles could shed some light on this. the question which still remains is if it is possible to generate a cycle oscillator based on the period, amplitude and phase values from this indicator.

thank you in advance, math stranger genius
mike

I never lose. I either win or learn.
Nelson Mandela
Attached Thumbnails
Click image for larger version

Name:	dht.png
Views:	122
Size:	50.9 KB
ID:	212283  
Attached Files
Register to download File Type: cs dht.cs (9.3 KB, 23 views)
Register to download File Type: cs cycle.cs (5.2 KB, 28 views)
Reply With Quote



futures io Trading Community Platforms and Indicators NinjaTrader > How to apply dominant cycle period, amplitude and phase shift




Upcoming Webinars and Events
 

Free BloodHound Licenses to everyone!

June
 

Every journal equals ten meals for the hungry

June
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts