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
Decycler Indicators - SimpleDecycler_V1 5 *
Decycler indicators Exported with NinjaTrader 7.0.1000.30

Revised 11/1/15

Revisions:

1. Ability to specify Fast, Slow, or Both plots
2. Change the percent parameter to accept the more standard notation xx.y (%).
3. Remove all code related to the signals produced for Bloodhound.
Another indicator which contains Bloodhound codes will be posted on the Bloodhound thread here.
4. Add basic signal codes to replace the Bloodhound codes.
5. Ability to add dual bands for Fast, Slow, or Both plots with the following features:
-a. Different plot colors when using Dual Bands
-b. Inner and outer bands are calculated using VWStdDev each having user defined
multipliers and periods.
-c. user option to specify what values are used for the inner and outer bands follows:
--1. Fast- uses the appropriate inner or outer values derived from only the Fast midline.
--2. Slow- uses the appropriate inner or outer values derived from only the Slow midline.
--3. Min - uses the appropriate inner or outer values derived from the minimum values
of either the Fast or Slow inner and outer bands accordingly.
--4. Max - uses the appropriate inner or outer values derived from the maximum values
of either the Fast or Slow inner and outer bands accordingly.
--5. minMax - uses the minimum values from either the Fast or Slow inner for the plotted inner band, and the maximum values from either the Fast or Slow Outer band for the plotted outer band.
---6. Fast, Slow, or Both Plots is automatically set according to the Dual Band option chosen.
6. Separate parameters for Dual Bands to allow easier switching between Dual and non-Dual modes.

>>>End revisions 11/1/15<<<


The background for this indicator is explained in the entry DecyclerOscillators (above) and is not described here. [I]The download file is the same as the one posted in the DecyclerOscillator with both indicators contained in the download. The NT version can be downloaded from the link supplied in the DecyclerOscillator entry.

This indicator is the opposite of the high-pass filter with the SinpleDecycler plots created by subtracting the high-pass filtered data from the input stream allowing the decycler to display “the low-frequency components with virtually no lag.”. The author suggests the period parameter be a half-year period however, states, “the range of this variable is just about anything you choose.”.

In addition to the decycler plot the original indicator (show in the visual in the DecyclerOscillator) plots two lines that are plus and minus 0.5 percent from the low frequency decycle plot and are referred to as the hysteresis lines. The interpretation is that if Close prices are above the upper line the market is in an uptrend, with a downtrend indicated by Close prices below the lower line. No trend is when the prices fall within the lines.

Enhancements:

Warning!!!

The enhancements provided must be considered experimental as they are not part of the original concept described in Mr. Ehler’s article. More testing and experimenting needs to be performed in order to determine their usefulness.

The enhancements provide the ability to:
1. request a Single plot (Slow) or Dual plots (Slow and Fast) . The method to set the fast period lookback is similar to the DecyclerOscillator and can be either a “Percentage” from the slow period or the “AsSpecified” values for each parameter will be used.
2. vary the multiplier percentage used to form the hysteresis band.
3. use a standard deviation to determine the hysteresis band in lieu of a multiplier.
4. Specify three signaling options, Off, Basic, and Extended. The Extended signal is experimental and is intended to be used with Bloodhound. The signals produced are described in the thread here
5. paint the region between the two midRange decycler bands.

Credits with my thanks to:
1. @Fat Tails for the region painting code copied from his TriggerLines Indicator
2. @Fat Tails for his Volume Weighted Standard Deviation method used in the hysteresis band offset calculation



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 described at top of page.


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


October 1st, 2015
Size: 17.61 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
 


 
Category
 




© 2024 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 - Privacy Policy - Downloads - Top