registerEA (SDK Trading)

registerEA is a Fintechee API to register your expert advisor(trading robot).

registerEA(eaName, eaDesc, paramsTemplate, initFunction, deinitFunction, onTickFunction)

EA SDK This function registers EA.

Kind: global function

Param Type Description
eaName string name of EA
eaDesc string description of EA
paramsTemplate array parameters of EA (the range MUST be filled with null if the type is NOT PARAMETER.NUMBER) e.g. [{ name: "factor", value: 1, required: true, type: PARAMETER.NUMBER, range: [0, 1] }, { name: "checked", value: true, required: false, type: PARAMETER.BOOLEAN, range: null }]
initFunction function init function of EA (e.g. function () {})
deinitFunction function deinit function of EA (e.g. function () {})
onTickFunction function onTick function of EA (e.g. function (context) {})

registerEA (SDK Trading)

registerEA(
"test_api",
"An EA to test APIs",
[],
function (context) { // Init()
    printMessage("Test Ok!")
},
function (context) { // Deinit()
},
function (context) { // OnTick()
})