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 > Suggestions and Feedback > Suggestions And Feedback

Suggestions And Feedback New feature suggestions and feedback.

Reply
 
Thread Tools Display Modes
Old 10-11-2010, 03:20 PM   #1
bugman4/u
Member
 
Join Date: Nov 2008
Posts: 47
Thanks: 0
Thanked 0 times in 0 posts
Default Divergence indicator

Greetings,
Does anyone have a divergence indicator for use on any indicator i.e.macdbb,cci,stoistic, using optional different mvg avg based on optional high,low,open,close,median paramenters..Viewed tazatek website, but they seem they don't offer their divergence indicator anymore. Thanks!!
bugman4/u is offline  
Reply With Quote
Old 11-02-2010, 01:05 AM   #2
raycam
Senior Member
 
Join Date: Mar 2008
Posts: 205
Thanks: 0
Thanked 1 time in 1 post
Default

I have wanted something like this for so long!
I used to have esignal and they had an indicator that had a number of settings and would draw lines on price and a lower panel of the macD or whatever. It meant I didnt have to be always manually checking.
raycam
raycam is offline  
Reply With Quote
Old 11-02-2010, 02:26 AM   #3
J_o_s
Senior Member
 
Join Date: Aug 2008
Location: Netherlands
Posts: 159
Thanks: 17
Thanked 5 times in 5 posts
Default

Hi raycam,
Quote:
Originally Posted by raycam View Post
I have wanted something like this for so long!
I used to have esignal and they had an indicator that had a number of settings and would draw lines on price and a lower panel of the macD or whatever. It meant I didnt have to be always manually checking.
raycam
If I understand you correctly, you mean something like the d3spotter indicator? ( http://www.ninjatrader.com/support/f...&keys=1&ents=1 )

Regards,
J_o_s is offline  
Reply With Quote
Old 11-02-2010, 03:14 PM   #4
raycam
Senior Member
 
Join Date: Mar 2008
Posts: 205
Thanks: 0
Thanked 1 time in 1 post
Default

I have that one but it tend s to not draw lines anywhere on my charts- only yellow dots!
Are you familiar with the indicator? Perhaps I have a parameter wrong or something?
Thanks for getting back to me
raycam
raycam is offline  
Reply With Quote
Old 11-04-2010, 07:10 AM   #5
subterfuge
Senior Member
 
Join Date: Nov 2008
Posts: 117
Thanks: 0
Thanked 0 times in 0 posts
Default

there's some nice ones in metatrader language but unfortunately nobody seems to be able to convert them into ninjatarder language.
subterfuge is offline  
Reply With Quote
Old 11-05-2010, 07:55 AM   #6
J_o_s
Senior Member
 
Join Date: Aug 2008
Location: Netherlands
Posts: 159
Thanks: 17
Thanked 5 times in 5 posts
Thumbs down

Quote:
Originally Posted by raycam View Post
I have that one but it tend s to not draw lines anywhere on my charts- only yellow dots!
Are you familiar with the indicator? Perhaps I have a parameter wrong or something?
Thanks for getting back to me
raycam
Ah you're correct. I was thinking incorrectly about the indicator for NinjaTrader 6.5, which does draw the lines you are referring to.

The indicator for version 7.0 does not plot the lines when signaling an divergence. It is possible to make this work with a slight modification of the code:
Open the file 'D3SpotterV2' in the NinjaScript Editor,
Comment the line number 368, line number 389, line 450, and line 467.
Save the file and compile.

This will let the indicator plot the lines when an divergence is found. (See attached screen).

Alternatively, you can download the D3SpotterV2 file (see attachment) and:
1. place it in your C:\Users\USER\Documents\NinjaTrader 7\bin\Custom\Indicator folder,
2. Open any indicator in NinjaTrader (through Tools -> Edit NinjaScript -> Indicator..)
3. Click on the Compile button in the top of the NinjaScript Editor window.

Good luck!

Regards,
Attached Images
File Type: png DivergenceLinesNT7.0.png (59.8 KB, 414 views)
Attached Files
File Type: cs D3SpotterV2.cs (57.7 KB, 224 views)
J_o_s is offline  
Reply With Quote
The following user says thank you to J_o_s for this post:
Old 11-07-2010, 02:16 PM   #7
raycam
Senior Member
 
Join Date: Mar 2008
Posts: 205
Thanks: 0
Thanked 1 time in 1 post
Default

Thanks J_O_S, Thanks for your detailed answer to my problem.
I don't know how to "comment" a line.
I can get as far as opening the relevant indicator in "edit indicators" and scan down to whatever line.

Unfortunately when I try the alternate way I get an error-
The name "z20090712LaguerreECO" does not exist in the current context.
Is that an indicator that already needed to have on my system for this one to work?

Thanks
raycam
raycam is offline  
Reply With Quote
Old 11-08-2010, 12:52 AM   #8
J_o_s
Senior Member
 
Join Date: Aug 2008
Location: Netherlands
Posts: 159
Thanks: 17
Thanked 5 times in 5 posts
Default

Hi Raycam,

Quote:
Originally Posted by raycam View Post
Thanks J_O_S, Thanks for your detailed answer to my problem.
I don't know how to "comment" a line.
I can get as far as opening the relevant indicator in "edit indicators" and scan down to whatever line.

Unfortunately when I try the alternate way I get an error-
The name "z20090712LaguerreECO" does not exist in the current context.
Is that an indicator that already needed to have on my system for this one to work?

Thanks
raycam
The LaguerreECO indicator is included in the D3Spotter download as far as I know. Please use the attached version to this post, which has removed the references to the LaguerreECO indicator and thus should work without the errors.

Good luck!

Regards,
Attached Files
File Type: cs D3SpotterV2.cs (57.8 KB, 263 views)
J_o_s is offline  
Reply With Quote
The following user says thank you to J_o_s for this post:
Old 11-08-2010, 02:54 AM   #9
raycam
Senior Member
 
Join Date: Mar 2008
Posts: 205
Thanks: 0
Thanked 1 time in 1 post
Default

YES, YES, YES!!!
Thanks so much...
IT WORKS!
raycam
raycam is offline  
Reply With Quote
Old 11-08-2010, 03:18 AM   #10
J_o_s
Senior Member
 
Join Date: Aug 2008
Location: Netherlands
Posts: 159
Thanks: 17
Thanked 5 times in 5 posts
Default

Glad I could help.
J_o_s is offline  
Reply With Quote
Old 05-09-2011, 07:52 AM   #11
Jbirchall
Junior Member
 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Question Variables

J_o_s.

I installed this indicator and it works great on one PC. When I added it to my indicators folder on another PC I get the following errors when I try to compile it. Any help getting this resolved would be much appreciated.


Indicator\D3SpotterV2.cs The name 'SMI' does not exist in the current context CS0103 - click for info 224 18
Indicator\D3SpotterV2.cs The name 'DerivativeOscillator' does not exist in the current context CS0103 - click for info 229 18

Thanks
Jbirchall is offline  
Reply With Quote
Old 05-09-2011, 08:38 AM   #12
J_o_s
Senior Member
 
Join Date: Aug 2008
Location: Netherlands
Posts: 159
Thanks: 17
Thanked 5 times in 5 posts
Default

Hi Jbirchall,

Looks like the NinjaTrader on the other pc doesn't have the SMI and DerivateOscillator in its indicators folder. Does it work when you copy these from the PC (on which the Divergence Indicator works) to the PC which gives you the error?

Good luck!

Regards,
J_o_s is offline  
Reply With Quote
Old 05-09-2011, 09:28 AM   #13
Jbirchall
Junior Member
 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Thumbs up Thanks

J_o_s.

Thanks for the reply. That was it. I had just figured it out and was coming back to tell you to disregard my post.

Nice Indicator thought. Is there a way to get arrows drawn on a momentum indicator when it crosses 0 either way? It seems that when the D3Spotter draws an arrow that lines up with momentum crossing 0 its a higher percentage trade in that direction.

Thanks again.
Jbirchall is offline  
Reply With Quote
Old 12-17-2011, 09:46 PM   #14
Mike Datta
Junior Member
 
Join Date: Dec 2011
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Thumbs up Auto trading using D3SpotterV2

Quote:
Originally Posted by J_o_s View Post
Ah you're correct. I was thinking incorrectly about the indicator for NinjaTrader 6.5, which does draw the lines you are referring to.

The indicator for version 7.0 does not plot the lines when signaling an divergence. It is possible to make this work with a slight modification of the code:
Open the file 'D3SpotterV2' in the NinjaScript Editor,
Comment the line number 368, line number 389, line 450, and line 467.
Save the file and compile.

This will let the indicator plot the lines when an divergence is found. (See attached screen).

Alternatively, you can download the D3SpotterV2 file (see attachment) and:
1. place it in your C:\Users\USER\Documents\NinjaTrader 7\bin\Custom\Indicator folder,
2. Open any indicator in NinjaTrader (through Tools -> Edit NinjaScript -> Indicator..)
3. Click on the Compile button in the top of the NinjaScript Editor window.

Good luck!

Regards,
Great job J_o_b!! I can see this indicator on the chart like an oscillator. But I intend to use this for auto trading. Can you assist?>
Mike Datta is offline  
Reply With Quote
Old 12-17-2011, 10:40 PM   #15
Mike Datta
Junior Member
 
Join Date: Dec 2011
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default Compiler error -D3SpotterV2 on NT7

You are just great J-o-s, what can I say?

Well, I am using NT7. I have the following queries though.(i) I see D3SpotterV2 as an oscillator on the chart but when I compile this indicator, I get error messages like 'The name 'Drawing2D' does not exist - error code CS0103. See attached error file (ii) When I use this indicator in the condition builder, the color Dark Magneta goes blank. (iii) What condition in the property box must satisfy to be able to place buy/sell order for auto trading purposes.
Attached Images
File Type: jpg Compiler Error.JPG (83.8 KB, 71 views)
Mike Datta 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
MQL4 to Ninja: Ravi FX Fisher divergence indicator pashalv Indicator Development 9 12-14-2011 09:29 PM
Divergence/Conv script/indicator bugman4/u Indicator Development 1 09-20-2010 10:21 AM
Reversal/Divergence Bar Indicator? belecona NinjaScript File Sharing Discussion 1 10-19-2009 02:03 AM
Divergence pistolpete Automated Trading 3 08-14-2009 10:26 AM
Trying to write a 'divergence' indicator DancesWithBears Indicator Development 2 07-29-2009 08:47 PM


All times are GMT -6. The time now is 04:02 PM.