How to apply dominant cycle period, amplitude and phase shift - NinjaTrader Programming | futures.io
futures.io futures trading


How to apply dominant cycle period, amplitude and phase shift
Started: by mk77ch Views / Replies:1,507 / 7
Last Reply: Attachments:4

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


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, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

How to apply dominant cycle period, amplitude and phase shift

  #1 (permalink)
Elite Member
Switzerland
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Dorman
Favorite Futures: Currency Futures, ES
 
mk77ch's Avatar
 
Posts: 74 since Oct 2010
Thanks: 12 given, 62 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
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Chicago Illinois USA
 
Futures Experience: Advanced
Platform: Ninja Trader
Broker/Data: IB
Favorite Futures: duh hammer!
 
wldman's Avatar
 
Posts: 2,055 since Aug 2011
Thanks: 966 given, 2,571 received

Have you ..


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

Dan

Reply With Quote
The following user says Thank You to wldman for this post:
 
  #4 (permalink)
Elite Member
Chicago Illinois USA
 
Futures Experience: Advanced
Platform: Ninja Trader
Broker/Data: IB
Favorite Futures: duh hammer!
 
wldman's Avatar
 
Posts: 2,055 since Aug 2011
Thanks: 966 given, 2,571 received

this work?

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
The following user says Thank You to wldman for this post:
 
  #5 (permalink)
Elite Member
Chicago Illinois USA
 
Futures Experience: Advanced
Platform: Ninja Trader
Broker/Data: IB
Favorite Futures: duh hammer!
 
wldman's Avatar
 
Posts: 2,055 since Aug 2011
Thanks: 966 given, 2,571 received

Hey Man...

Futures Edge on FIO
@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.

Reply With Quote
 
  #6 (permalink)
Patience my young padawan
Houston, TX/USA
 
Futures Experience: Intermediate
Platform: NinjaTrader TWS Barchart
Broker/Data: IB / IB
Favorite Futures: ES & looking into commodities
 
ElChacal's Avatar
 
Posts: 306 since Nov 2014
Thanks: 367 given, 182 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)
Elite Member
Stanstead, Quebec, Canada
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: CL
 
Royal Flush's Avatar
 
Posts: 122 since Dec 2010
Thanks: 71 given, 63 received


wldman View Post
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

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?

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #8 (permalink)
Elite Member
Switzerland
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Dorman
Favorite Futures: Currency Futures, ES
 
mk77ch's Avatar
 
Posts: 74 since Oct 2010
Thanks: 12 given, 62 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
How to apply dominant cycle period, amplitude and phase shift-dht.png  
Attached Files
Register to download File Type: cs dht.cs (9.3 KB, 4 views)
Register to download File Type: cs cycle.cs (5.2 KB, 5 views)
Reply With Quote

Reply



futures.io > > > > > How to apply dominant cycle period, amplitude and phase shift

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

2016 True Edge Awards: Voting is open until Jan 21!

Now
 

Bookmap New Indicator Panel, Cumulative Delta, Order Flow demo

Jan 17
 

An Afternoon with FIO member Massive l

Elite only

Leo Murphy: Making sense of Technical Analysis and Random Walk

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adaptive cycle period cci... wldman NinjaTrader 25 March 29th, 2016 02:09 PM
Ehlers Cycle Period Indicator kabakj NinjaTrader 5 January 15th, 2013 06:47 PM
Labor Leaders to Apply New Clout in Effort for Obama Quick Summary News and Current Events 0 March 12th, 2012 08:30 AM
right brain dominant trading traderTX Psychology and Money Management 2 August 27th, 2011 12:43 PM
How to save Strategy created DrawingObjects to Re-apply? Taddypole NinjaTrader Programming 1 August 18th, 2011 04:59 PM


All times are GMT -4. The time now is 03:11 AM.

no new posts
Page generated 2017-01-17 in 0.10 seconds with 20 queries on phoenix via your IP 54.205.153.63