Primarily, an average of a calculation for the past number of specified bars.
A lower-plot to display a single line.
ThinkScript: average(((high-low) / ((open+close) / 2)),barLength)*100;
protected override void OnBarUpdate() { double calc = ( ( (High[0]-Low[0])/(Open[0]+Close[0]) ) /2 )*100; Line1.Set(calc); }
How is the input user-specified number of bars handled? Average?
If you can write all for me -- Great! And/or, I appreciate any help and/or direction that you can provide.
I have been reading many NinjaTrader items. Please suggest any related references?
Thanks!
-- Tren D
Comment