First, I am aware that this is probably not the simplest example possible.
It is one of the possible implementations.
viewtopic.php?f=31&t=66908If you are to learn SDK, familiarize yourself with the Lua programming language.
Probably the best place to start is.
http://www.lua.orgHere you can download a book.
Programming in Lua
by Roberto Ierusalimschy
Also download and install, our SDK Lua extension.
Editor and Debugger are included, and also an extensive Help.
http://fxcodebase.com/documentation.phpAlso, I'm holding private webinars on the topics,
with a focus on programming for Marketscope / TS 2 trading platform.
if you will be interested contact me via email.