setOptimizationResult (SDK Trading)

setOptimizationResult is a Fintechee API to set the result for the optimization.

setOptimizationResult(context, result)

EA SDK This function sets the result for the optimization. Phase (this API's scope): deinit

Kind: global function

Param Type Description
context object the name should be the same with the name of parameter of deinitFunction
result number the result for the optimization

setIndiShift (SDK Trading)

registerEA(
"test_api",
"An EA to test APIs",
[],
function (context) { // Init()
},
function (context) { // Deinit()
    setOptimizationResult(context, 100)
},
function (context) { // OnTick()
})