Contents tagged with LUA strategy lifecycle

  • The Structure of a Strategy Program in LUA

    Hi all,

    I continue investiaging another area of knowledge of humankind, which is FXCM trading Station.

    So, if you need to write strategy, you'll need following methods to be defined in your strategy: 

    Init()

    Prepare(nameOnly)

    Update()

    ReleaseInstance()

    AsyncOperationFinished(cookie, successful, message, message1, message2)

    CheckParameters(parameters)

    ChangeParameters()

    Now little bit details:

    The Init() function of the strategy is called once, when the host application has just loaded the strategy into the memory. In this function the strategy must create profile. Profile is the information which is required for creation of the strategy: strategy name and description and … more