Sample Looping code
publicoverridevoid Plot(Graphics graphics, Rectangle bounds, double min, double max)
{
// ---< ensure you call the base Plot Method prior to exiting this method >---
base.Plot(graphics, bounds, min, max);
if (Bars == null || /*Plots.Count < 2 ||*/ ChartControl == null)
return;
if (CurrentBar <= 1)
return;
// ------------< Initialise Offsets & Graphic environment >---------------------
int barWidth = ChartControl.ChartStyle.GetBarPaintWidth(ChartCont rol.BarWidth);
int barSpace = ChartControl.BarSpace;
SmoothingMode oldSmoothingMode = graphics.SmoothingMode;
graphics.SmoothingMode = SmoothingMode.AntiAlias;
// ===< Determaine where Indicators will be displayed. Top or Bottom of the Price Chart >===
double[] YValues = newdouble[MaxNumOfSignalRows];
for (int i = 0; i < MaxNumOfSignalRows; i++) {
YValues[i] = (int)GetYValue(bounds, i + 1);
// ---< For each bar that is displayed on the screen >---
for(int cntBar = ChartControl.FirstBarPainted; cntBar <= ChartControl.LastBarPainted; cntBar++)
{
if ( (CurrentBar - cntBar) < 0)
continue;
int x = ChartControl.GetXByBarIdx(cntBar);
DrawMySymbols(graphics, cntBar, x, (int)YValues[0] );
//=====< Return SmoothingMode to its original value >========
graphics.SmoothingMode = oldSmoothingMode;
}
Alternative 3:
Design your own FONT & load it into Windows.
This is not hard. Sorry I don't bandwidth to write you a tutorial on this at present. But try searching MSDN.Microsoft.com for tips on how to load you own font.
A commercial approach below.
Comment