Hello all,
In the following function, I have 2 problems:
1. debug says "SystemHappyFace not defined". so i put a var SystemHappyFace stmt in the function. It stopped complaining but nothing draws.
2. nothing draws with the drawShapeRelative stmt either.
I know it's executing the function because the debugPrintln is printing all the appropriate bars.
Do I need to initialize something? or define where the images are?
Thanks in advance,
phil
function funcTrade(trade, i,bar) {
debugPrintln("[funcTrade] " + trade + ": "+i+" bar="+bar);
//drawImageRelative(xBar, yValue, Image, Url, Flags, TagName);
drawImageRelative(0, low() - vVar, SystemHappyFace, "", Image.BOTTOM, "buyShp" + getValue("time"));
drawShapeRelative(0, low() - 1, Shape.UPARROW, null, Color.green, Shape.ONTOP, getValue("rawtime") + "B");
}
In the following function, I have 2 problems:
1. debug says "SystemHappyFace not defined". so i put a var SystemHappyFace stmt in the function. It stopped complaining but nothing draws.
2. nothing draws with the drawShapeRelative stmt either.
I know it's executing the function because the debugPrintln is printing all the appropriate bars.
Do I need to initialize something? or define where the images are?
Thanks in advance,
phil
function funcTrade(trade, i,bar) {
debugPrintln("[funcTrade] " + trade + ": "+i+" bar="+bar);
//drawImageRelative(xBar, yValue, Image, Url, Flags, TagName);
drawImageRelative(0, low() - vVar, SystemHappyFace, "", Image.BOTTOM, "buyShp" + getValue("time"));
drawShapeRelative(0, low() - 1, Shape.UPARROW, null, Color.green, Shape.ONTOP, getValue("rawtime") + "B");
}
Comment