Best
protected override void OnBarUpdate()
{
// When the close of the bar crosses above the HMA, draw a blue diamond
if (CrossAbove(Close, HMA(period), 1))
{
/* Adding the 'CurrentBar' to the string creates unique draw objects because they will all have unique IDs
Having unique ID strings may cause performance issues if many objects are drawn */
BarColor = Color.Blue;
CandleOutlineColor = Color.Black;
DrawArrowUp("Up Arrow" + CurrentBar, 0, Low[0] - TickSize, Color.Blue);
DrawHorizontalLine("Up Line" + CurrentBar,Low[0] , Color.Blue,DashStyle.Dash,3);
}
Comment