NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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 01-29-2009, 06:27 PM   #1
bear296
Junior Member
 
Join Date: Dec 2008
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default Help with Sine Wave as S/R

I was hoping a coder could make this,to auto place the S/R lines on chart with a variable to draw lines back (X) days/ Hours It works great for S/R

I stumbled across this on an E-Mini site (written for tradestation),and incorporated it into my fx trading.I look at a higher time frame than I'm trading and place horizontal lines on the chart at the sine wave crosses. a cross below 0 place a green line at the bottom of the next bar, cross above 0 place a red line at the top of the next bar.
Thanks
Attached Images
File Type: gif 21Jan09_bonds.png (22.5 KB, 474 views)
Attached Files
File Type: zip EhlersSineWave.zip (2.2 KB, 170 views)
bear296 is offline  
Reply With Quote
Old 01-30-2009, 07:16 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Hi bear296,

As a last resort you can also try contacting one of the 3rd party NinjaScript Consultants here: http://www.ninjatrader.com/webnew/pa...injaScript.htm
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-08-2009, 11:50 PM   #3
cclsys
Senior Member
 
Join Date: Oct 2008
Posts: 250
Thanks: 0
Thanked 6 times in 2 posts
Cool I will try a little

Bear,

I will try a little on this even though I have a very hard time doing any coding for Ninja. I have the TS coding for this indicator including some additional thingies I put in. Now I have your basic Sine Wave in there I'll see if I can add in the S/R lines and the text. The SR Lines are the main things of course.

There are so many neat indicators in the File sharing area but for some reason when you ask for help with something they like to refer you to third party developers! This is without question one of the best indicators there is. Usually I like to have only the sinewave and the Better Volume (by same developer) and that's it, although thanks to Josh in this thread I have discovered the Ichimuru(?) indicator which looks extremely interesting, the first indicator I have seen in many years that looks interesting actually. So simple yet very intelligent.

But the way this sine-wave indicator shows both trending and cyclic periods in such a simple fashion is terrific.

I had the code in Tradestation to judge whether the switch bar had bullish or bearish internal volume to confirm but I am sure I will never be able to figure that out in Ninja since I don't know the lingo and there is no dictionary, so to speak. But with any luck I'll be able to figure out how to plot the SR lines after a simple cross up and cross down.

Keep your fingers crossed!

And thanks for the basic sine wave.
cclsys is offline  
Reply With Quote
Old 02-09-2009, 04:22 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

Hi cclsys, you can post the TS code you have so our community can take a look and offer insight.

For a good start in NinjaScript you could check out those - http://www.ninjatrader-support.com/H...verview18.html

For a 'dictionary' you can review our NinjaScript Language reference in the Help guide under the 'NinjaScript' header.
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 02-09-2009, 07:36 AM   #5
cclsys
Senior Member
 
Join Date: Oct 2008
Posts: 250
Thanks: 0
Thanked 6 times in 2 posts
Cool thanks

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
Hi cclsys, you can post the TS code you have so our community can take a look and offer insight.

For a good start in NinjaScript you could check out those - http://www.ninjatrader-support.com/H...verview18.html

For a 'dictionary' you can review our NinjaScript Language reference in the Help guide under the 'NinjaScript' header.
Thanks, B. I have looked many times in there but cannot find a list of commonly used terms in any of the sub-menus. There is one that is a link to C+ site but I am not proficient enough with the lingo to use that so all I can do now is find something in the samples or something I have downloaded that is similar and then try to make changes. Sometimes it works, usually it doesn't!

I like the Sine Wave indicator from Barry Taylor very much so it was the only one I was interested in getting onto Ninja but now I've looked at the code from below I very much doubt I will be able to figure out how to insert the logic to determine Support and Resistance using the sine waves and then tell it to plot. But I will try at some point for the sake of learning. My big problem with the coding thus far is
a) not knowing what words to use and how to phrase them (hence I copy from others' codes) and
b) not being able to fix errors in compiling and having to give up after too much time has been spent getting nowhere.

But, hey! I'm using Ninja mainly as a trading platform so that's the way it is.
cclsys is offline  
Reply With Quote
Old 02-09-2009, 07:57 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

a. Use the index page of the Help Guide. It lists out all the methods and properties available.
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-09-2009, 09:24 AM   #7
cclsys
Senior Member
 
Join Date: Oct 2008
Posts: 250
Thanks: 0
Thanked 6 times in 2 posts
Cool

Thanks, Josh. That helps a little.

By the way: I was downloading some indicators yesterdy from the File Sharing section (in order to learn a little more about coding having spent over an hour (!) trying to get an inside bar to plot on the chart!!!!) and I stumbled across the Ichimuru Revised.

As a rule I tend to avoid indicators, but this one seems really nifty, so thanks for putting it up there. Highly intelligent approach, very original thinking even though underneath it is very simple too (always a good sign).

If you get inspired to do the same for the sine wave, you've got my vote! It too is very intelligent, albeit even more simple but a single oscillator that shows cyclical versus trend and also end of trend with just two lines is a very nifty little tool and also requires no changing of parameters from time-frame to tick charts etc. etc.

I can also explain - in English - what bear 296 is looking to do.
cclsys is offline  
Reply With Quote
Old 02-09-2009, 09:34 AM   #8
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

cclsys,

That indicator was not made by me. I just helped migrate shared files over to that section.
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-26-2009, 11:47 PM   #9
suhendri
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi,
I am new to the forum.
Just want to add my voice to support this indicator. It's a great indicator that I have been using in my trading. I like CCLSYS also use mainly NT so I would LOVE to see this indicator available for NT!
Thanks in advance to coding gurus!
suhendri is offline  
Reply With Quote
Old 02-27-2009, 03:07 AM   #10
Operandi
Senior Member
 
Join Date: Aug 2008
Location: UK
Posts: 115
Thanks: 0
Thanked 1 time in 1 post
Send a message via Skype™ to Operandi
Default

I think the Ehlers Sine Wave indicator is already in the indicator file sharing section:

http://www.ninjatrader-support2.com/...N&pp=15&page=4

Chris
Operandi is offline  
Reply With Quote
Old 02-27-2009, 07:52 AM   #11
suhendri
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi Operandi,
Thanks for pointing that out. Yes it's the similar Hilbert sine wave, but the one in file sharing section does not have SR (Support Resistance) lines. It will be very helpful to have the SR lines plotted automatic.
suhendri is offline  
Reply With Quote
Old 03-15-2009, 04:54 AM   #12
tradereight
Member
 
Join Date: Jul 2008
Posts: 70
Thanks: 0
Thanked 1 time in 1 post
Default hilbert sine wave seams to be better

a side by side comparison betten the original tradestation indicator and the ninjatrader version proofes the point:

the ehlert indicator is lagging (about 5 minutes)

on fast moving markets this disadvantage can be very expensive...
Attached Images
File Type: jpg compared.jpg (71.3 KB, 318 views)
tradereight is offline  
Reply With Quote
Old 03-15-2009, 06:41 PM   #13
yuvalw
Member
 
Join Date: Jan 2009
Posts: 78
Thanks: 0
Thanked 0 times in 0 posts
Default

Just add SR dots on reverslas? I did this, see the attached file, but I would be happy to get some explanation on what exactly is this...
Attached Files
File Type: zip EhlersSineWave.zip (2.5 KB, 122 views)
yuvalw is offline  
Reply With Quote
Old 03-16-2009, 08:27 AM   #14
suhendri
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

tradereight, you were right. I am afraid this could become costly. I wonder if anybody can fix this.
Yuva, thanks for putting your effort on this indicator, I tried and find it useful. I really appreciate your contribution.
One question though, is there anyway you can reduce the size of the dot or put a setting for dot-size? It's a bit big and I couldn't see my chart clearly.

I get email reply from emini-watch.com about their indicators (including better sine wave SR) for NT version. Barry said he will make all or most of his indicator available for Ninja Trader by the end of first half of 2009 so it should be around june. And other version follow after that.
suhendri is offline  
Reply With Quote
Old 03-16-2009, 08:38 AM   #15
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

Thanks for sharing yuvalw, there are several versions floating around using different smoothing parameters, so this will most likely be the difference you see when compaing the TS and NT implementations.
NinjaTrader_Bertrand is online now  
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 12:04 AM
Wolf Wave indicator BC5391 Indicator Development 6 05-12-2011 01:46 AM
Blue Wave Trading Software burchak Charting 62 02-21-2011 09:38 PM
make indicator according the high and low of each wave MoreYummy Charting 3 01-28-2009 09:06 AM
Blue Wave Precision Indicators and MTS Software Now Offered on NinjaTrader Platform NinjaTrader_Ray News and Announcements 0 07-31-2007 10:52 AM


All times are GMT -6. The time now is 03:17 AM.