NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

Reply
 
Thread Tools Display Modes
Old 04-15-2009, 02:34 AM   #1
yuvalw
Member
 
Join Date: Jan 2009
Posts: 78
Thanks: 0
Thanked 2 times in 1 post
Default Ehlers Sine Wave

Hi,

After 2 nights of looking at different Ehelers sine waves available out there I decided to write one.
The problem - Ehlers introduced 2 different sines in two different books (Rocket Science... and Cybernetic Analysis...), so I coded both into one indicator with a parameter for choosing which one to use...
(I saw another version he used in a slide show, but looks like it had similiar results as the one used in Rocket Science).

For the Rocket Science version I used as a base one of the indicators in Tazatek.com, and also added the Support/Resistance dots of emini-watch.com

NOTE: On both nights I did it while watching the Red Sox (they lost both games ) so high probability to one/two bugs, please let me know (or if you can fix)...

Yuval.
Attached Files
File Type: zip SineWave.zip (4.9 KB, 196 views)
yuvalw is offline  
Reply With Quote
Old 04-15-2009, 02:39 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 24,537
Thanks: 386
Thanked 1,395 times in 1,364 posts
Default

Thanks for sharing your work Yuval!
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 04-18-2009, 10:45 PM   #3
keepdchange
Junior Member
 
Join Date: Mar 2009
Posts: 17
Thanks: 0
Thanked 0 times in 0 posts
Default Ethler's Sine Wave

Quote:
Originally Posted by yuvalw View Post
Hi,

After 2 nights of looking at different Ehelers sine waves available out there I decided to write one.
The problem - Ehlers introduced 2 different sines in two different books (Rocket Science... and Cybernetic Analysis...), so I coded both into one indicator with a parameter for choosing which one to use...
(I saw another version he used in a slide show, but looks like it had similiar results as the one used in Rocket Science).

For the Rocket Science version I used as a base one of the indicators in Tazatek.com, and also added the Support/Resistance dots of emini-watch.com

NOTE: On both nights I did it while watching the Red Sox (they lost both games ) so high probability to one/two bugs, please let me know (or if you can fix)...

Yuval.
Thanks for your input. I tried the indicator. However, I believe the colors for the support & resistance are not correct. Could you please revise it if possible and let us know with a corrected version.

Thank you
keepdchange is offline  
Reply With Quote
Old 04-19-2009, 12:46 AM   #4
serval
Member
 
Join Date: May 2008
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by keepdchange View Post
Thanks for your input. I tried the indicator. However, I believe the colors for the support & resistance are not correct. Could you please revise it if possible and let us know with a corrected version.

Thank you
keepdchange you can change the color in the section parameters of the indicator.

yuvalw great job, thanks for sharing :-)
serval is offline  
Reply With Quote
Old 04-19-2009, 10:00 PM   #5
yuvalw
Member
 
Join Date: Jan 2009
Posts: 78
Thanks: 0
Thanked 2 times in 1 post
Default

That's right, the colors are configurable though I will change it on the next "version", hope to have some other improvements as well...
yuvalw is offline  
Reply With Quote
Old 04-20-2009, 11:05 PM   #6
yuvalw
Member
 
Join Date: Jan 2009
Posts: 78
Thanks: 0
Thanked 2 times in 1 post
Default

Hi,

Here is newer version of the sine wave.
Now you can select how you would like to smooth the price when using the "Rocket Science" method, Ehlers uses WMA by default but I found that VWMA works sometimes better for catching the whole trend (on the other hand the exit could be little bit late and other exit strategy should be used).
Emini-Watch.com is using the JurikJMA, so you can choose that, I don't have Jurik so I didn't test it and have no idea if it works, besides there are the SMA, WMA and HMA.
Also you can change the period for the smoothing, default is 4, you can use 5-6 to get "longer" cycles.
Emini-watch.com has quite a lot of info on the ehlers sine wave and looks like he developed good strategy based on it.

Yuval.
Attached Images
File Type: jpg XLF 4_14_2009 (5 Min).jpg (77.7 KB, 476 views)
Attached Files
File Type: zip SineWave.zip (11.9 KB, 176 views)
yuvalw is offline  
Reply With Quote
Old 04-20-2009, 11:49 PM   #7
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

Quote:
Originally Posted by yuvalw View Post
Hi,
Emini-Watch.com is using the JurikJMA, so you can choose that, I don't have Jurik so I didn't test it and have no idea if it works
It works fine with Jurik. Thanks for sharing.

You might want to put the Rocket Science settings under Parameters though, otherwise they aren't accessible through strategies...
Elliott Wave is offline  
Reply With Quote
Old 04-23-2009, 04:01 AM   #8
toulouse-lautrec
Member
 
Join Date: Jun 2008
Posts: 54
Thanks: 0
Thanked 0 times in 0 posts
Default

I have modified this slightly so it keeps colors between sessions.
Attached Files
File Type: zip SineWave.zip (12.0 KB, 113 views)
toulouse-lautrec is offline  
Reply With Quote
Old 04-24-2009, 04:01 PM   #9
trader1512
Senior Member
 
Join Date: Feb 2009
Posts: 153
Thanks: 0
Thanked 0 times in 0 posts
Default

can you tell me what resistance tools you use with this. your snapshot shows something i havent been able to recreate
richard
trader1512 is offline  
Reply With Quote
Old 04-24-2009, 05:32 PM   #10
yuvalw
Member
 
Join Date: Jan 2009
Posts: 78
Thanks: 0
Thanked 2 times in 1 post
Default

Quote:
Originally Posted by trader1512 View Post
can you tell me what resistance tools you use with this. your snapshot shows something i havent been able to recreate
richard
What do you mean by "resistance tools", if I remeber right the snapshot was with "Rocket Science" method and VWMA of 4 bars. But I really don't remeber, I'm still learning how to use this cycle tool...
yuvalw is offline  
Reply With Quote
Old 04-24-2009, 07:57 PM   #11
ladytrader
Member
 
Join Date: Aug 2008
Posts: 53
Thanks: 0
Thanked 0 times in 0 posts
Default

where do you set the parameters? other than the support and resistance colors not disappearing between sessions-- can't see a change between this version and an earlier version.

Thanks

ps
I see the difference now, the new one is called Sinewave, the old one is Ehlers Sine Wave. My bad.

pps
I now can't even get the support/resistance colors to remain.
Last edited by ladytrader; 04-25-2009 at 09:08 PM. Reason: more to say
ladytrader is offline  
Reply With Quote
Old 04-25-2009, 02:28 PM   #12
serval
Member
 
Join Date: May 2008
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by yuvalw View Post
Hi,

Here is newer version of the sine wave.
Now you can select how you would like to smooth the price when using the "Rocket Science" method, Ehlers uses WMA by default but I found that VWMA works sometimes better for catching the whole trend (on the other hand the exit could be little bit late and other exit strategy should be used).
Emini-Watch.com is using the JurikJMA, so you can choose that, I don't have Jurik so I didn't test it and have no idea if it works, besides there are the SMA, WMA and HMA.
Also you can change the period for the smoothing, default is 4, you can use 5-6 to get "longer" cycles.
Emini-watch.com has quite a lot of info on the ehlers sine wave and looks like he developed good strategy based on it.

Yuval.

hello yuval,

i'm testing your indicator and i'm surprise to see that if i use SMA method or wma or hma methode i've got same value for the sinewave ...

i do something wrong or there is a probleme?

Thanks again for the job.
serval is offline  
Reply With Quote
Old 04-25-2009, 11:08 PM   #13
yuvalw
Member
 
Join Date: Jan 2009
Posts: 78
Thanks: 0
Thanked 2 times in 1 post
Default

LadyTrader, what do you mean by "can't even get the support/resistance colors to remain"?

Serval, please note that there are two methods of calculating the sine wave: "CyberneticAnalysis" (the default) and "RocketScience", the method of smoothing the price (i.e SMA, HMA...) is effective only on the "RocketScience" (not the default) method.
Second, you will see the changes in the crossing point of the waves, BUT not necessarily in the S/R dots, the dots are not plotted when a cross occurs but only when a cross occurs and the high/low of the previous bar is taken. So many times there could be a difference of several bars in the sine waves crossing depending what smoothing you use, but since the trend continues and the High/Low of the previous bar is not taken the dots will appear on the bars.
Pshew...I hope I didn't confused you more than explained...
yuvalw is offline  
Reply With Quote
Old 04-30-2009, 01:44 AM   #14
ladytrader
Member
 
Join Date: Aug 2008
Posts: 53
Thanks: 0
Thanked 0 times in 0 posts
Default

LadyTrader, what do you mean by "can't even get the support/resistance colors to remain"?

What I mean is that if I close my chart template with the s/r colors chosen
(I use barry taylors defaults white=resistance, red = support) when I reopen it, the colors have reset themselves to transparent.

BTW, I use the "rocketscience" method with WMA period 4 or 5 for smoothing.

Thanks for the reply
ladytrader is offline  
Reply With Quote
Old 05-03-2009, 10:43 PM   #15
yuvalw
Member
 
Join Date: Jan 2009
Posts: 78
Thanks: 0
Thanked 2 times in 1 post
Default

Here is version that will keep the colors and the sine method/average method.
Attached Files
File Type: zip SineWave.zip (12.1 KB, 219 views)
yuvalw is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hilbert Sine Wave fy260498 Indicator Development 21 12-04-2012 01:04 AM
Wolf Wave indicator BC5391 Indicator Development 6 05-12-2011 01:46 AM
Help with Sine Wave as S/R bear296 NinjaScript File Sharing Discussion 27 06-19-2009 06:08 AM
Ehlers Filter scjohn NinjaScript File Sharing Discussion 18 02-28-2009 10:46 AM
Elliott wave bluewater Market Analyzer 1 02-14-2009 08:57 AM


All times are GMT -6. The time now is 09:30 PM.