I happened to take a look at the @FisherTransform Indicator that comes with Ninjatrader and it was such an embarrassment that I decided to make some easy fixes.
This one is for COBC FALSE and has a multi-color line plot as the default. See comments in code for list of changes. It does plot the same results as the original.
This indicator plots the statistical means and medians of the Master Instrument price series.
The mean is the sum of all price values that occur during the life of the bar, divided by the number of prices. (Simple arithmetic mean)
The median is the price in the middle of the series. Half of the prices are above the median, and the other half of those prices are below the median. (Statistical median)
The smaller the difference between mean and median, and the closer they are to the vertical midpoint of the bar, the more symmetrical is the distribution of the prices over the life of the bar.
Because the historical calculation uses an ADDed one tick secondary data series, this indicator is slow to load. The backfill setting should be DAYS back, not bars back. Minimize the number of days that you go back. Start with ONE.
Because the means and medians are Plots, you should be able to access them for use as inputs to other indicators. Keep me posted on how well that works.
simple virtual close price are coded which produces a new
virtual prices exactly similar in swings but without gaps.
its used where and on those indicator where i like to see continuity of indicator shapes/patterns on opening gaps. Logic behind this continuity is almost every indi is based on window/lookback period and believe me i strongly feel thier values do primarily depends on relative positioning of Input Prices rather then actual absolute value. So as long as relative positioning is without gap..indicator will show good usable continuity.
it should be used as long as calculation depends "only" on close prices.
One may find some time advantage of early entry by 2-3 bars but not to bother as i primarily used this for visual continuity.
Only change in this version is the renaming of the public class from bwAO to bwAO2 as a lot of us still have the original bwAO and this version will not conflict with the original indicator we allready have..
All credits still go to Bill Williams , Zondor and other members who helped to make this modifications....
Another find from the Ninjatrader Forums, attributed to the legendary Bill Williams but the version I found there was coded so poorly as to be useless.
Changed the plot to a multi-color line.
Added user selection option for MA periods. Defaults are 9/12, original was 5/34.
Added the choice of using the SMA or the LLMA.
Added the choice of using the actual statistical median, computed on a bar by bar basis, or the Ninjatrader median which is just the average of the High and Low.
Thanks to aslan for LLMA and FatTails for help with medians.
Note that the plots have only very minor differences whether the actual, or Ninjatrader estimated H+L/2 medians are used.
REVISED VERSION 3 uploaded on November 2 2011 at 3:00 PM ET. General code cleanup and implemented a corrected calculation of the median. Will now work on time based charts.
REVISED VERSION 4 uploaded on November 2 2011 at 7:10 PM ET. Fixed bug of not updating intra-bar with COBC=false. PREVIOUS VERSIONS OF THIS INDICATOR SHOULD NOT BE USED!
Since this has little relation to the legendary Bill Williams version the name has been changed to AwesomePlus®. If you have any questions about the coding methods, feel free to contact me.
This indicator caught my attention on the Ninjatrader Forum. The idea is good.. REALLY good!- but the coding left a lot to be desired.
I predefined instances of 13 external indicators to slash the resource load while running on the new default setting of COBC=false. Some of the calls to the MIN and MAX functions were moved to an area where they only need to executed on FirstTickOfBar, not on every tick. Also changed the moving average type from EMA to LLMA.
Some of the old code was commented out, with the replacement code immediately following. Use this as a guide for the correct and efficient way to invoke external indicators. It's frustrating to see other coders continuing to handle this so poorly.
The plots look similar to those generated by the indicator on the Ninjatrader forum. Aside from the optimization the program logic is the same. However, some well founded questions have been raised about the validity of that underlying program logic.
October 30th, 2011 12:38 PM Zipper Ripper You didn't change the name or add any deignation such as "V2". So in the list of indicators it has the same exact name
as the one you post yesterday. Please revise. Thanks!