How to draw circle
Posted: Mon May 18, 2015 3:45 am
This is a simple example of how you can draw a circle via Draw function.
The circle is defined by two points.
The closing price of last candle.
The closing price N period ago.
Your last stop on a way to find a fast growing community of forex traders and software developers. Best forex charts indicators are available here for download. Custom development of indicators and translation to .LUA is also available on request.
http://fxcodebase.com/code/
local font;
local Size=10;
function Prepare()
font = core.host:execute("createFont", "Wingdings", Size, false, false);
end
function Update(period)
core.host:execute("drawLabel1", 1, source:date(period), core.CR_CHART, source[perice], core.CR_CHART, core.H_Center, core.V_Top, font, core.rgb(0, 255, 255), "\108");
end
function ReleaseInstance()
core.host:execute("deleteFont", font);
end