江下云郎浮云 均线背驰
2016-8-4 14:04:35点击:
var1:=MA(C,p1)-MA(C,P2);
IF((var1>=0),var1,0),STICK,colorred;
IF((var1<0),var1,0),STICK,colorgreen;
正:=IF((var1>=0),var1,0),colorred;
负:=IF((var1<0),var1,0),colorgreen;
zheng:=0;
fu:=0;
var2:=0;
i:=0;
IF (var1>0) THEN BEGIN
var2:=var1;
WHILE (var2>0) DO BEGIN
zheng:=zheng+var2;
i:=i+1;
var2:=REF(var1,i);
IF (i>P3) THEN BREAK;
END
END
ELSE
BEGIN
var2:=var1;
WHILE (var2<0) DO
BEGIN
fu:=fu+var2;
i:=i+1;
var2:=REF(var1,i);
IF (i>P3) THEN BREAK;
END
END
{涨势面积和:zheng;}
涨势平均力度:zheng*p4/i,coloryellow;
{跌势面积和:fu;}
跌势平均力度:fu*p4/i,colorwhite;
中轴:0;