Detrend Oscillator = Close(today) minus simple period moving average
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Detrend Oscillator
Collapse
X
-
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.htmlBertrandNinjaTrader Customer Service
-
-
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 .
Comment
-
Originally posted by NinjaTrader_Bertrand View PostHi 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.
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 .
Comment
-
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
Comment
-
Originally posted by MotownCat View PostDo you have an updated Detrend Oscillator for Ninjatrader 7? Thanks in advance!Attached FilesBertrandNinjaTrader Customer Service
Comment
-
Hello TexFly,
Thank you for your post.
If I wanted to add the indicator the chart the strategy is applied to I would use the following:
Code:protected override void Initialize() { Add(DetrendOscillator(VC.NinjaScript.Utility.MovingAverageType.SMA, 14));
Code:if(DetrendOscillator(VC.NinjaScript.Utility.MovingAverageType.SMA, 14)[0] < Close[0]) { //Do something }
Please let me know if I may be of further assistance.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kempotrader, Today, 08:56 AM
|
0 responses
7 views
0 likes
|
Last Post
by kempotrader
Today, 08:56 AM
|
||
Started by kempotrader, Today, 08:54 AM
|
0 responses
4 views
0 likes
|
Last Post
by kempotrader
Today, 08:54 AM
|
||
Started by mmenigma, Today, 08:54 AM
|
0 responses
2 views
0 likes
|
Last Post
by mmenigma
Today, 08:54 AM
|
||
Started by halgo_boulder, Today, 08:44 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 08:44 AM | ||
Started by drewski1980, Today, 08:24 AM
|
0 responses
4 views
0 likes
|
Last Post
by drewski1980
Today, 08:24 AM
|
Comment