//*** This is a tradestation version of the code Big Mike and Fat Tails have
uploaded here. I made several modifications as well. The sample
picture is inspired from BMT traders and many sharky templates.
//*** The sample picture contains Super trend and Double WMA Ultra Grad
Version 1: Modified Jan 2012 for tradestation ELD ***********
//**** added up dn color, added single or multi dot ***********
//**** added median price moving average logic
The indicator plots supply and demand based zones from various time frames on the chart. It also adds a context menu item to the default Ninjatrader context menu to hide and show active and broken zones.
This indicator is the Kaufman Adaptive Moving Average, a/k/a KAMA, but which changes color when the indicator changes direction. This is a direct descendant of the Mov Avg Adaptive indicator that comes with MultiCharts.
I like single line indicators that change color when a trend changes, so this is my implementation of the KAMA with those attributes. The screenshot here is actually from TradeStation, but it looks and functions the same in MC.
Indicator Name: Mov Avg Adaptive Color Change Inputs: Same as a normal KAMA, plus:
UsePlotColoring >>> set to true for coloring; false to turn it off
UpTrendColor >>> self explanatory
DownTrendColor >>> self explanatory
Small Difference in Original Calculation:
I added the Round2Fraction function to the MAA calculation, to round to the nearest minimum move for the chart. This helps filter out minor fluctuations when the indicator is practically flat, that may show a change in trend that isn't there. I don't believe this fundamentally changes anything, from my observations.
Import the PLA and apply to a chart. You're all set!
I posted a TradeStation version in that section, as the syntax is slightly different.
April 23rd, 2021 05:38 PM vmodus Thanks, this is very cool. There is a zero/div error that may occur from time to time that I corrected. Do you want th
e updated code?
October 14th, 2020 10:26 AM vmodus Great little indicator, thank you!