Skip to content

Instantly share code, notes, and snippets.

@DexterHaslem
Created July 3, 2012 18:08
Show Gist options
  • Save DexterHaslem/3041454 to your computer and use it in GitHub Desktop.
Save DexterHaslem/3041454 to your computer and use it in GitHub Desktop.
2liner
protected override void OnBarUpdate()
{
if (Historical) return;Enumerable.Range(0,14).ToList().ForEach(i =>DrawText((CurrentBar+i).ToString(),"\u0CA0_\u0CA0",0, i % 2 == 0 ? (Close[0]+TickSize) + (TickSize*i) : (Close[0]-TickSize)-(TickSize*i),i % 2 == 0 ? Color.FromArgb(255 - (i*15),0, 0,255):Color.FromArgb(255 - (i*15),255, 0,0)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment