PDA

View Full Version : Highest High/Lowest low of last 'n' bars


hari_krishna
02-12-2010, 02:07 PM
Hi,

I am trying to develop my first simple indicator to calculate highest high and lowest low of last 'n' bars and draw horizontal lines at these values.
Also would like to print these price values on the chart.

Does anyone has similar indicator or code that was already there?

If not please point me some where to get started.

Thanks
Hari

NinjaTrader_Tim
02-15-2010, 07:00 AM
Hi hari_krishna,

Thank you for your post.

Take a look at the following methods....
HighestBar()
LowestBar()
DrawLine()

I recommend starting with the indicator builder (Tools>New NinjaScript>Indicator) and building from there.