不知道设置中的 "channel=0 "是什么意思,有哪些其他可能的值?
muller:
不知道设置中的 "channel=0 "是什么意思?
不知道设置中的 "channel=0 "是什么意思?
这里有几段代码:(似乎是一个乘法器)
inputint SSP = 20; //逆转期
inputint Channel = 0; //Channel
inputint Ch_Stop = 30; //停止通道
inputint relay = 10; //shift
smax = High -(Low-High)*Channel/ 100; // 最大值
smin = Low+(High-Low)*Channel / 100; // smin
smax2= High -(High-Low)*(Channel+Ch_Stop) /100; // 最大值
smin2= Low+(High-Low)*(Channel+Ch_Stop) /100; // smin
我需要对代码进行编辑。
而不是
//---- 将动态数组转换为指标缓冲区 SetIndexBuffer(1,BuyBuffer,INDICATOR_DATA); //---- 移动指示器绘制倒计时 2 的起始位置 PlotIndexSetInteger(1,PLOT_DRAW_BEGIN,StartBars); //--- 创建要在数据窗口中显示的标签 PlotIndexSetString(1,PLOT_LABEL,"Buy"); //---- 字符为指示符 PlotIndexSetInteger(1,PLOT_ARROW,108); //---- 像时间序列一样对缓冲区中的项目进行索引 ArraySetAsSeries(BuyBuffer,true); //---- 禁止指标绘制空值 PlotIndexSetDouble(0,PLOT_EMPTY_VALUE,0);
将
//---- 将动态数组转换为指标缓冲区 SetIndexBuffer(1,BuyBuffer,INDICATOR_DATA); //---- 移动指示器绘制倒计时 2 的起始位置 PlotIndexSetInteger(1,PLOT_DRAW_BEGIN,StartBars); //--- 创建要在数据窗口中显示的标签 PlotIndexSetString(1,PLOT_LABEL,"Buy"); //---- 字符为指示符 PlotIndexSetInteger(1,PLOT_ARROW,108); //---- 像时间序列一样对缓冲区中的项目进行索引 ArraySetAsSeries(BuyBuffer,true); //---- 禁止指标绘制空值 PlotIndexSetDouble(1,PLOT_EMPTY_VALUE,0);
箭头和曲线:
箭头和曲线显示开仓和平仓的信号。
作者: Nikolay Kositsin