Is there a step that I'm missing when it comes to plotting in Renko bars. HERE's a Sample of my conditional statement. Before you reply, NOTe that I can plot the EMA in RENKO bars, when I remove my Conditional statment. But the whole point is I want the full conditions to be available on these Renko bars as well as time based bars.
*My variables are Period1 and Period2
*MY Plots are EMA1 and EMA2
protected override void OnBarUpdate()
{
EMA1.Set(EMA(Input, Period1)[0]);
EMA2.Set(EMA(Input, Period2)[0]);
if (CrossBelow(Low, EMA(Period1), 1)
&& Close[5] >= EMA(Period2)[5] //This is the close of 5 bars ago
&& Close[4] >= EMA(Period2)[4] ) //This is the close of 4 bars ago
{
DrawTriangleUp("My triangle up" + CurrentBar, true, 0, Low[0] + -1 * TickSize, Color.Cyan);
}
}
Comment