VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*50;
VAR3:=EMA(IF(CLOSE*1.3,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,30);
VAR5:=HHV(VAR3,30);
VAR6:=IF(MA(CLOSE,58),1,0);
VAR7:=EMA(IF(LOW100,100,VAR7),COLOR0000FF,LINETHICK2;
{STICKLINE(A>-150,0,A,8,4),COLOR0000FF;}
在上个主图显示的,求改
A:MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
B:=IF(MA(CLOSE,17)纯文本查看 复制代码//+------------------------------------------------------------------+
//| AAA.mq4 |
//| DF |
//| http://www.mql5.com |
//+------------------------------------------------------------------+
#property strict
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_plots 2
#property indicator_label1 "Label1"
#property indicator_type1 DRAW_LINE
#property indicator_color1 clrBlack
#property indicator_style1 STYLE_SOLID
#property indicator_width1 1
#property indicator_label2 "Label2"
#property indicator_type2 DRAW_LINE
#property indicator_color2 clrSpringGreen
#property indicator_style2 STYLE_SOLID
#property indicator_width2 1
double Label1Buffer[];
double Label2Buffer[];
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int OnInit()
{
SetIndexBuffer(0,Label1Buffer);
SetIndexBuffer(1,Label2Buffer);
SetIndexStyle(0,DRAW_LINE);
SetIndexStyle(1,DRAW_LINE);
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
int i,limit;
limit=rates_total-prev_calculated;
if(prev_calculated>0)
limit++;
double B[];
for(i=0; i |