指标第一次出现红柱时写个选股公式
-
相关简介:编写要求: www.guhai.com.cn 股海网解答: 网友求助: DY1:=(2*CLOSE+HIGH+LOW)/4; DY2:=LLV(LOW,34); DY3:=HHV(HIGH,34); BDC:=EMA((DY1-DY2)/(DY3-DY2)*100,9),colorred; BDD:=EMA((0.667*REF(BDC,1)+0.333*BDC),3),colorff9900; BDE:=EMA((DY1-DY2)/(DY3-DY2)*100,30); BDF:=EMA(BD
-
文章来源:股海网作者:股海网发布时间:2019-06-06浏览次数:
编写要求:
www.guhai.com.cn股海网解答:
网友求助:
DY1:=(2*CLOSE+HIGH+LOW)/4;
DY2:=LLV(LOW,34);
DY3:=HHV(HIGH,34);
BDC:=EMA((DY1-DY2)/(DY3-DY2)*100,9),colorred;
BDD:=EMA((0.667*REF(BDC,1)+0.333*BDC),3),colorff9900;
BDE:=EMA((DY1-DY2)/(DY3-DY2)*100,30);
BDF:=EMA(BDE,5);
DY2:=LLV(LOW,34);
DY3:=HHV(HIGH,34);
BDC:=EMA((DY1-DY2)/(DY3-DY2)*100,9),colorred;
BDD:=EMA((0.667*REF(BDC,1)+0.333*BDC),3),colorff9900;
BDE:=EMA((DY1-DY2)/(DY3-DY2)*100,30);
BDF:=EMA(BDE,5);
风险区:80,colorff00ff;
安全区:6,color00ffff;
STICKLINE(BDC>=BDD,BDC,BDD,8,0),colorred;
STICKLINE(BDC<BDD,BDD,BDC,8,0),colorffff33;
FILLRGN(BDE,BDF,BDE>=BDF,RGB(255,0,255),BDE<BDF,RGB(0,255,0));
解答如下:
DY1:=(2*CLOSE+HIGH+LOW)/4;
DY2:=LLV(LOW,34);
DY3:=HHV(HIGH,34);
BDC:=EMA((DY1-DY2)/(DY3-DY2)*100,9);
BDD:=EMA((0.667*REF(BDC,1)+0.333*BDC),3);
XG:BDC>=BDD AND REF(BDC,1)<REF(BDD,1);
DY2:=LLV(LOW,34);
DY3:=HHV(HIGH,34);
BDC:=EMA((DY1-DY2)/(DY3-DY2)*100,9);
BDD:=EMA((0.667*REF(BDC,1)+0.333*BDC),3);
XG:BDC>=BDD AND REF(BDC,1)<REF(BDD,1);
上一篇:太极量指标出现吸和地的选股公式
下一篇:超级短赚指标改成选股公式