![]() |
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
|
|||||||
| NinjaScript File Sharing Discussion Discussion for shared NinjaScript files. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Dec 2008
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
|
Does Ninjatrader offer a Detrend Oscillator? The formula is:
Detrend Oscillator = Close(today) minus simple period moving average |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
Hi boseman,
Have you tried using the PriceOscillator with the settings 1, Close, 10, 1? This uses an EMA to detrend then ... Please see also this link here - http://www.ninjatrader-support.com/H...scillator.html
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Senior Member
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
|
Quote:
![]() Instead of just SMA, you can choose from 11 different moving average types. |
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
Thanks for creating and posting this, good job!
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Dec 2008
Posts: 11
Thanks: 0
Thanked 0 times in 0 posts
|
Elliot Wave, thanks for the help on this one. I'll try it out.
|
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Jun 2008
Posts: 644
Thanks: 0
Thanked 0 times in 0 posts
|
Dido , very nice . On a different software I created a 4 plot moving average
indicator . Each individual MA could be set to a different type and period and once setup the way you like could be set to default to that each time you added it to a chart . I miss it . It makes a certain bit of sense to include more than 1 option in a indicator as I think it would save on cpu usage . |
|
|
|
|
|
#7 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
Hi T2020, you do this in NinjaTrader by setting it up and using a chart template then...less work to set it up then on your next chart.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#8 | |
|
Senior Member
Join Date: Jun 2008
Posts: 644
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
I think it would save cpu and easier to change an existing MA from 1 type to another . Who knows maybe V 7 will hold some surprises in this regard .
|
|
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Feb 2008
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Elliott Wave for this Indicator which is nice to see the divergence between Prices and SMA (or whatever MA you chose).
However in order to see better theses divergences and to see better the spikes of the Prices, it would be nice if you could implement this option: when Price> SMA (or whatever you chose) Detrend Oscillator = High(0) minus simple period moving average and when Price< SMA Detrend Oscillator = Low(0) minus simple period moving average. Addtionally, for those who use SMA envelopes or EMA envelopes, besides de "0" line in the oscillator that you have implemented, please consider to add: Parallel lines to the "0" line above and below according to a "displace1" , "displace2", etc variables chosen by the user (the same that one normally uses for the Envelopes) according to the formula: upper line+1 above "0" : SMA*( +Displace1/100) lower line-1 below "0" : SMA*( -Displace1/100) upper line+2 above "0" : SMA*( +Displace2/100) lower line-2 below "0" : SMA*( -Displace2/100) at least 3 lines above and 3 lines below "0". Thanks in advance Ricardo |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
Do you have an updated Detrend Oscillator for Ninjatrader 7? Thanks in advance!
|
|
|
|
|
|
#11 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
Welcome to our forums - the attached works well for me on latest NT7R9.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Bertrand for this post: |
|
|
|
#12 |
|
Junior Member
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
|
Works fine for me 2.
|
|
|
|
|
|
#13 |
|
Junior Member
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks so much!! It works for me very well.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tom's Oscillator | T9999 | Indicator Development | 3 | 10-02-2012 01:59 PM |
| Elliptic Oscillator. | Drakmyre | Indicator Development | 12 | 01-06-2009 10:21 AM |
| Request: Bill Williams Awesome Oscillator & Accelerator Oscillator | jeremymgp | Indicator Development | 26 | 11-04-2008 08:41 PM |
| Value chart / Dinapoli Detrend ... | T2020 | Suggestions And Feedback | 1 | 10-23-2008 10:50 AM |
| Elliott Oscillator | PrTester | NinjaScript File Sharing Discussion | 2 | 09-18-2007 05:25 AM |