|
|
void IndicatorShortName( string name)
设置显示在数据窗口和子窗口中自定义指标的"简称"。
参量:
name - 新简称。
示例:
int init()
{
//----使用计算2个添加缓冲
IndicatorBuffers(3);
//---- 画出设定
SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,3);
SetIndexDrawBegin(0,SignalSMA);
IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+2);
//---- 绘制3个添加缓冲位置
SetIndexBuffer(0,ind_buffer1);
SetIndexBuffer(1,ind_buffer2);
SetIndexBuffer(2,ind_buffer3);
//---- DataWindow 和自定义子窗口标签名称
IndicatorShortName("OsMA("+FastEMA+","+SlowEMA+","+SignalSMA+")");
//---- 初始化完成
return(0);
}复制代码 |
|