This script contains a void function called Plot
public override void Plot(Graphics graphics, Rectangle bounds, double min, double max) { . . . }
graphics.DrawString("Upper left corner", textFont, textBrush, bounds.X+10, bounds.Y+10, stringFormat);
I have added this function to my custom strategy script but it will not compile. It flags the function name Plot and says something like " ... not in this context ..."
I have compared the using declarations at the top of my script (all the same as in CustomPlotSample).
I have added the commented lines that appear in the summary block just before the function call and reference the parameters called by the Plot function.
I do not see anything else that might be missing. But there must be something.
v6.5.1000.14, WXP/SP3, new to C and NinjaScript but not to programming
???,
LB
Comment