将信号计算的值设置到指定plot编号的指标里。可以把它视为信号和指标的桥梁。 使用 i_setplotvalue 和 i_getplotvalue 关键字可以避免复制相同脚本同时到指标和信号中来计算相同的值
i_SetPlotValue(index,value)
i_SetPlotValue
index - 相关的指标编号
index
value - 待转换的指标值.
value
设置信号的最大回撤值到plot编号为111的指标中:
i_SetPlotValue(111, maxiddrawdown)
设置信号的动态权益到plot编号为112的指标中:
i_SetPlotValue(112, netprofit + openpositionprofit)