(indicator_color1) — 指定指标线的颜色,我们将指定(clrBlue)。 (indicator_style1) — 指定指标线的样式,我们将指定(STYLE_SOLID)。 (indicator_width1) — 指定指标线的粗细,我们将指定(3)。 #property indicator_separate_window #property indica
#property indicator_buffers 4 #property indicator_plots 2 #property indicator_color1 Red,Green #property indicator_type1 DRAW_COLOR_LINE #property indicator_style1 STYLE_SOLID #property indicator_width1 2 #property indicator_color2 Yellow,Blue #property indicator_type2 DRAW_COLOR_LINE #property indic...
SetLevelStyle()IndicatorSetInteger(INDICATOR_LEVELSTYLE,STYLE_DOT); SetLevelValue()IndicatorSetInteger(INDICATOR_LEVELS,2); IndicatorSetDouble(INDICATOR_LEVELVALUE,0,20); IndicatorSetDouble(INDICATOR_LEVELVALUE,1,80); Day() DayOfWeek() DayOfYear() ...
INDICATOR_HEIGHT 修正指标窗口的高度(预处理命令 #property indicator_height) IndicatorSetInteger INDICATOR_LEVELCOLOR 水平线颜色 IndicatorSetInteger INDICATOR_LEVELS 指标窗口中的水平数量 IndicatorSetInteger INDICATOR_LEVELSTYLE 水平线类型 IndicatorSetInteger INDICATOR_LEVELTEXT 水平描述 IndicatorSetString INDICATOR_LEV...
indicator_style1 STYLE_SOLID #property indicator_width1 1 #property indicator_label2 "Signal Line" #property indicator_color2 Red #property indicator_style2 STYLE_SOLID #property indicator_width2 1 #property indicator_label3 "Histogram" #property indicator_color3 Lime #property indicator_style3 ...
PlotIndexSetInteger(0,PLOT_LINE_COLOR,DeepPink);SetLevelStyle()IndicatorSetInteger(INDICATOR_LEVELSTYLE,STYLE_DOT);SetLevelValue()IndicatorSetInteger(INDICATOR_LEVELS,2); IndicatorSetDouble(INDICATOR_LEVELVALUE,0,20); IndicatorSetDouble(INDICATOR_LEVELVALUE,1,80); Day() ...
ObjectSetInteger(0,m_name,OBJPROP_STYLE,styleISO); ObjectSetDouble(0,m_name,OBJPROP_PRICE,0,m_price); ObjectSetInteger(0,m_name,OBJPROP_TIME,0,T(0)); ObjectSetDouble(0,m_name,OBJPROP_PRICE,1,m_price+1); ObjectSetInteger(0,m_name,OBJPROP_TIME,1,T(0)); ...
#defineNAME_INDICATOR"count_click_1: " 为信号灯标志增加了一个变量: intflagAntivandal; 之后是一个大小等于"保护的"对象数量的数组, 用于保存创建对象的时间: datetimetimeCreateObj[QUANT_OBJ]; 增加了一个文字数组用于保存两个警告信息, 以防指标从图表中"自我分离". 一个是为了成功从图表中删除, 第二个...
properties" #property indicator_type1 DRAW_LINE // Line type for the first plot #property indicator_color1 clrRoyalBlue // Line color for the first plot #property indicator_style1 STYLE_SOLID // Line style for the first plot #property indicator_width1 1 // Line width for the first plot ...
indicator_styleN PlotIndexSetInteger(N-1,PLOT_LINE_STYLE, nType) 图N的线型 indicator_typeN PlotIndexSetInteger(N-1,PLOT_DRAW_TYPE, nType) 图N的线种 indicator_widthN PlotIndexSetInteger(N-1,PLOT_LINE_WIDTH, nWidth) 图N的线宽 常用指标属性 ...