protected override void Initialize()
{
Add(PeriodType.Renko,3);
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)return;
// Condition set 1
if (Close[0] > Open[0] )
{
DrawArrowUp("My up arrow" + CurrentBar, false, 0, Low[0] + -2 * TickSize, Color.Lime);
EnterLong(DefaultQuantity, "");
}
}
Never mind, my bad. I see there is a special syntax for this: AddRenko()

Comment