PDA

View Full Version : Visible bar


MrBaffalo
01-18-2007, 03:09 AM
Hi there!

I'm looking for a new set of idicators which plot horizontal lines from a given point, so I would like to set no numbers of lines, but it's dependant from the visible starting points of the charts.

Example, five swing point visible from the chart, plot five lines as support and resistance to the right, if 20 swings identified, plot 20 lines to the right, but I need to define something like visiblebars?

I didn'd find nothing about, suggestions?

Thanks in advance,

Best regards

Marce

NinjaTrader_Ray
01-18-2007, 04:04 AM
Hi Marce,

This is not documented in our Help Guide. Within OnBarUpdate() do something like:



if (ChartControl != null)
{
if (swingBarIndex >= ChartControl.FirstBarPainted && swingBarIndex < ChartControl.LastBarPainted)
// Paint a line
}


Ray

MrBaffalo
01-18-2007, 04:07 AM
As usual many many thanks!

Marce