Skeleton Indicator Template

Moderator: admin

Skeleton Indicator Template

Postby Skerdekat » Thu Jan 05, 2017 2:19 pm

I'm an ultra novice so there's probably a lot of things to add for error checking and best practices, but this is what I've been able to reduce an indicator down to where it still functions. It doesn't do anything besides load.

function Init()
indicator:name("Skeleton Indicator Template");
indicator:requiredSource(core.Bar);
indicator:type(core.Indicator);
end
local source;
local first;
function Prepare()
local name;
name = profile:id() .. "(" .. instance.source:name() .. ")";
instance:name(name);
end
function Update(period)
end
Attachments
Skeleton Indicator.lua
The absolute minimum indicator requirements.
(547 Bytes) Downloaded 751 times
Skerdekat
 
Posts: 4
Joined: Thu Oct 20, 2016 5:59 pm

Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 6 guests