趋势买卖写个选股公式
-
相关简介:编写要求: www.guhai.com.cn 股海网解答: 网友求助: 趋势 买卖 ,请老师 写个选股 公式 出现 笑脸 选出 VAR1:=(C+H+O+L)/4; 卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2; 买入:XMA(VAR1,M)*(1-P2/1000),COLORRED,LINETHICK1.9; 幅度:100*(卖出-买入)/买入,NODRAW; MA1:=MA(VAR1,3); STICKLINE(卖出LOW AND 卖出H
-
文章来源:股海网作者:股海网发布时间:2015-11-28浏览次数:
编写要求:
www.guhai.com.cn股海网解答:
网友求助:
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR1,M)*(1-P2/1000),COLORRED,LINETHICK1.9;
幅度:100*(卖出-买入)/买入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLOR00FFFF;
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLOR00FFFF;
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLOR00FFFF;
STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLOR00FFFF;
STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLOR00FFFF;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
HP:=HHV(H,9);
LP:=LLV(L,9);
R:=(C-LP)/(HP-LP)*100;
K:=SMA(R,3,1);
D:=SMA(K,3,1);
DRAWICON((CROSS(CCI,-100) OR CROSS(K,D)) AND C<买入,LOW*0.95,5);
DRAWICON((CROSS(-CCI,100) OR CROSS(-K,-D)) AND C>卖出,HIGH*0.95,6);
买入:=XMA(VAR1,M)*(1-P2/1000);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
HP:=HHV(H,9);
LP:=LLV(L,9);
R:=(C-LP)/(HP-LP)*100;
K:=SMA(R,3,1);
D:=SMA(K,3,1);
XG:(CROSS(CCI,-100) OR CROSS(K,D)) AND C<买入;