大智慧趋势买卖指标
-
相关简介:大智慧趋势买卖指标 源码如下: input:n(20),m(32),p1(80),p2(100); VAR1:=(C+H+O+L)/4; 卖出:MA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2; 买入:MA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2; 幅度:100*(卖出-买入)/买入,LINETHICK0; MA1:=MA(VAR1,3); STICKLINE(卖出LOW AND 卖出HIGH,卖出,MAX(
-
文章来源:股海网作者:股海网发布时间:2014-07-22浏览次数:
大智慧趋势买卖指标
源码如下:
input:n(20),m(32),p1(80),p2(100);
VAR1:=(C+H+O+L)/4;
卖出:MA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
买入:MA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
幅度:100*(卖出-买入)/买入,LINETHICK0;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),6,0),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),6,0),COLORGREEN;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
STICKLINE(卖出<LOW,OPEN,CLOSE,6,0),COLORGREEN;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),6,0),COLORMAGENTA;
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),6,0),COLORMAGENTA;
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA;
STICKLINE(买入>HIGH,OPEN,CLOSE,6,0),COLORMAGENTA;
STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'B'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),COLORGREEN;