NexusFi: Find Your Edge


Home Menu

 



Categories Help    






Search Results
Entries suggested by "Lag Calculation for Octave (MatLab)"

Entries
Decycler Indicators - DecyclerOscillator_V1 5 *
Decycler indicators Exported with NinjaTrader 7.0.1000.30

Note: The download on this entry and the one on the SimpleDecycler entry are the same and contain both indicators.


Revised 11/1/15

Revisions:

1 Ability to change plot colors and line widths.
2. Remove all code related to the signals produced for Bloodhound.
Another indicator which contains Bloodhound signals will be posted on the Bloodhound thread here.
3. Add basic signal codes to replace the Bloodhound codes.
4. Correct minor problem in code in formula calculation
5. Change the percent parameter to accept the more standard notation xx.y (%).

>>>End Revisions 11/1/15<<<


The two indicators provided, the Decycler Oscillator and the Simple Decycler, are based on the writing of John F. Ehlers published in the September 20015 issue of Stocks & Commodities magazine. The implementation used as the basis for this version was provided by NinjaTrader(NT). Although both indicators are contained in the download they are described separately. This entry describes the DecyclerOscillator.

The screenshot shows the DecyclerOscillator with modified version of the SimpleDecycler set to appear like the NT provided version (which can be downloaded here). Installing the NT version will not disturb the indicators provided as they are prefixed with “fpg”.

In the article Mr. Ehlers describes a class of filters known as high-pass filters which “allow the high-frequency components in the data to pass through to the filter output, and reject the low-frequency components”. He goes on further stating, “Since high-pass filters have very little lag, here is the trick to computing a decycler: Subtract the high-pass filter output from the data input.” This is performed in the partner indicator, the SimpleDecycler. He also states that, “You can virtually eliminate lag by getting rid of those low-frequency components.”. Both indicators contain the same algorithm (which is left to the interested math and EE gurus to figure out what he is doing) for identifying the high-pass frequencies.

The article states that the oscillator is useful when two instances , with different parameters, are placed in the same sub-graph. The NT implementation requires this to be done manually which, among other things this modification can do optionally. There are 2 controlling parameters, the HPPeriod (default 125) and the K value (default 1). According to the article, “The second instance is plotted at 80% of the HPPeriod with an input K value of 1.2. The basic idea is to compensate for a 20% reduction in cycle period with a 20% increase in the amplitude swing (the K value) of the indicator.”.

Ehlers notes that “there will always be some whipsaw conditions, but these are relatively easy to remove with other conditional statements in the code.”. Unfortunately he does not offer any suggestions here. Another important item to note, the default HPPeriod is set to the value of a half year on a day chart, likely being used for detecting cycle reversals on stocks. However as further stated in the article, “Decyclers and decycler oscillators can be used over a very wide range of input filter parameters”, but here too he offers no suggestions. This will be an experiment to be conducted by the user. However, setting it too low does introduce choppiness.


Enhancements:


1. The ability to request either the Slow, Fast, or Both plots (the “Plots Type” option).
2. Automatically adjust the fast indicator parameters by the specified percent (the “Percent” option) or to use the parameters specified by the user (the “ AsSpecified” option).
3. Three signaling options are provided: Off, Basic, and Extended (experimental for Bloodhound users). The Basic option provides the standard IntSeries values for the crossing (1, 0, -1). Extended signaling is described in the BloodHound thread here.
4. Optional smoothing for both the Fast and Slow Plots

Caution:

If the Extended signaling option is selected additional but non-conflicting signals are sent to the same IntSeries used by the Basic signaling option.

Credits with my thanks to:
1. @Zondor and @Aligator for a formula used in the Extended signaling
2. @Jack22 for the formula and supporting code.


Change Log

9/29/2015 :- Initial release
10/1/2015 :- Correct error in algorithm code for calculating Fast plot in DecyclerOscillator
11/1/2015 :- Revisions are described at the top of this page


Category NinjaTrader 7 Indicators 
 
Suggest other entries I might like
Details: Decycler Indicators - DecyclerOscillator_V1
Category: NinjaTrader 7 Indicators 


November 5th, 2015
Size: 17.61 KB
Bollinger Band Keltner Channel Squeeze (BBKC Squeeze) 4 *
V2.0 - Automated drawing of Blue rectangle on the chart

You can access the plot value be using BBKCDelta[0] (for the current bar) in your trading strategies...

Message me with questions..
Thanks.

=======================
I wrote this indicator recently to help identify possible consolidation in the market. It detects times when Bollinger Band squeezes within the Keltner Channel (implies consolidation) and plots as a histogram below the chart.

Bollinger Band and Keltner Channel Period may be customized. Default 20
Keltner Channel Offset default is 1.5

I have provided for an additional offset parameter to adjust the Squeeze threshold. This helps lead the beginning of consolidation. Default is 0.5; I usually set it to 1.5. Works for me. More picky about trade signals...

I use it towards confirming my trend based trades.

Please post your questions, comments and/or feedback.


Regards!


Category The Elite Circle 
 
Suggest other entries I might like
Details: Bollinger Band Keltner Channel Squeeze (BBKC Squeeze)
Category: The Elite Circle 


May 15th, 2019
Size: 8.42 KB
Trends by TMFT multiple MAs converted to NT8 V1 5 *
Chart will draw up to 3 MAs with selection of 7 diff MA to choose from. Note that you can modify the code to add more MAs if you have them. I have to comment out some of them as they are not converted to NT8 yet.
Export with 8.0.2.0


Category NinjaTrader 8 Indicators and More 
 
Suggest other entries I might like
Details: Trends by TMFT multiple MAs converted to NT8 V1
Category: NinjaTrader 8 Indicators and More 


December 30th, 2017
Size: 17.87 KB


Keywords: ma multiple trend
SMA Indicator Pack - NT 8 8.0.17.0 5 *
Due to a breaking change in NT 8.0.17.0 I have re-released all of the indicators described elsewhere as there are a number of inter-dependencies. This seems far easier than breaking them apart - for me anyway (hope you agree). There are a number of sub-indicators, but the main ones are:
  • smaCDCycleMTF
  • smaDeltaMomentum
  • smaCDMomentum
  • smaVacuumBars
  • smaProAm
  • smaZiggetyZag
  • smaSineWave




All described:
I have included MathNet DLL in the ZIP to make things a little easier. And remember most need Tick Replay.

Enjoy.


Category The Elite Circle 
 
Suggest other entries I might like
Details: SMA Indicator Pack - NT 8 8.0.17.0
Category: The Elite Circle 


February 5th, 2019
Size: 531.89 KB
Volume Weighted MACD for NT 8 5 *
Hello All!

It is my first attempt to build and share indicator, so be lenient.

I have found this indicator's logic in TradingView and looked for it's analog here and NT forums.
Unfortunately I didn't find it, so decided to build it myself.
It is just volume weighted, TradingView Code:

"fastMA = ema(volume*close, fastperiod)/ema(volume, fastperiod)
slowMA = ema(volume*close, slowperiod)/ema(volume, slowperiod)
vwmacd = fastMA - slowMA
signal = ema(vwmacd, signalperiod)
hist= vwmacd - signal"


I added Histogram Multiplier variable to set Difference Histogram more easy to view.
I just multiplies Difference Histogram on set value.

I don't researched all NT indicator methods yet, so it seems I have made a lot of surplus actions and rows,
such as new data series for every calculation step. I would be grateful if you could tell me how to make it
easier and more elegant.

I hope someone will find it useful!


Category The Elite Circle 
 
Suggest other entries I might like
Details: Volume Weighted MACD for NT 8
Category: The Elite Circle 


March 1st, 2019
Size: 3.50 KB
 


 
Category
 




© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top