I want to see 4 lines plotted on my 2 Tick Range Chart.
Here is the code so far.
-----------------------------------------------------------------------
protectedoverridevoid Initialize()
{
Add("", PeriodType.Range , 4);
Add("", PeriodType.Range , 6);
Add("", PeriodType.Range , 8);
Add(TRIXoverlayGreen(3, 4.5, 3.75));
Add(TRIXoverlayGreen(BarsArray[1],3, 4.5, 3.75));
Add(TRIXoverlayGreen(BarsArray[2],3, 4.5, 3.75));
Add(TRIXoverlayGreen(BarsArray[3],3, 4.5, 3.75));
CalculateOnBarClose = true;
}
///<summary>
/// Called on each bar update event (incoming tick)
///</summary>
protectedoverridevoid OnBarUpdate()
{
if (BarsInProgress == 0)
{
// Do Something
}
if (BarsInProgress == 1)
{
// Do Something
}
if (BarsInProgress == 2)
{
// Do Something
}
if (BarsInProgress == 3)
{
// Do Something
}
--------------------------------------------------------------
Is it possible to plot these 4 lines on the same chart through this strategy?
What needs to be added to each "bar in progress" make this happen?
Thanks,
RJay
Comment