求高手指标公式改为选股公式

求将下面出现短牛买,中牛买,大牛买3种条件时各种的选股公式
VAR1:=LLV(LOW,10);

VAR2:=HHV(HIGH,15);

动力线:= EMA((CLOSE-VAR1)/(VAR2-VAR1)*4,4);

趋势:MA(动力线,2);

STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),3.5,0),COLOR000033;

STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),2.8,0),COLOR000055;

STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),2.0,0),COLOR000077;

STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),1.2,0),COLOR000099;

STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),0.4,0),COLOR0000DD;

STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),3.5,0),COLOR003300;

STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),2.8,0),COLOR005500;

STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),2.0,0),COLOR007700;

STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),1.2,0),COLOR009900;

STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),0.4,0),COLOR00DD00;

下跌趋势:IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2;

上涨趋势:IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORRED,LINETHICK2;
B:=趋势,COLORWHITE;

G:MA(B,2),COLORYELLOW,POINTDOT;

D:=CROSS(B,G)*1000,COLORRED;

W:=CROSS(G,B)*1000,POINTDOT,COLORBLUE;

DRAWTEXT(W=1000,B*1.05,'高卖' ),COLOR00FF00;
DRAWTEXT(D=1000,B*1.05,' 低买'),COLORFFFFFF;

低买:D,NODRAW,COLORFFFFFF;

高卖:W,NODRAW,COLOR00FF00;

MA5:=EMA(C,5);

MA13:=EMA(C,13);

UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;

DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;

BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);

短牛买:BT,NODRAW,COLOR0000FF;

STICKLINE(UP,0,0.2,3,0),COLOR0000FF;

STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;

STICKLINE(BT,0,3,2,0),COLOR000088;

STICKLINE(BT,0,3,1,0),COLOR0000CC;

STICKLINE(BT,0,3,0.22,0),COLOR0000FF;

DRAWTEXT(BT,3,' 短牛买'),COLOR0000FF;

TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
中牛买:TJ1,NODRAW,COLORFF00FF;

STICKLINE(TJ1,0,2,3,0),COLOR880088;

STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;

STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;

STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;

DRAWTEXT(TJ1,2,' 中牛买'),COLORFF00FF;

HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);

HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);

TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;

大牛买:TJ2,NODRAW,COLOR00FFFF;
STICKLINE(TJ2,0,1,3,0),COLOR008888;
STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;
STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;
STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF;
DRAWTEXT(TJ2,1,' 大牛买'),COLOR00FFFF;

由于公式要求有三种选股方案,那么公式要求有三种方案的输出,由于条件选股只能有1个输出,所以不能将公式放到条件选股里,只能放在技术指标类里,但不会对选股有影响。公式如下:
选股的时候,选综合选股,然后将将短牛买,中牛买,大牛买的值等于1,然后就可以选股了。
VAR1:=LLV(LOW,10);
VAR2:=HHV(HIGH,15);
动力线:= EMA((CLOSE-VAR1)/(VAR2-VAR1)*4,4);
趋势:=MA(动力线,2);
下跌趋势:=IF(趋势<REF(趋势,1),趋势,DRAWNULL);
上涨趋势:=IF(趋势>REF(趋势,1),趋势,DRAWNULL);
B:=趋势;
G:=MA(B,2);
D:=CROSS(B,G)*1000;
W:=CROSS(G,B)*1000;
低买:=D;
高卖:=W;
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0);DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0);
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
短牛买:BT;
TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
中牛买:TJ1;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
大牛买:TJ2;
温馨提示:内容为网友见解,仅供参考
第1个回答  2019-05-01

VAR1:=LLV(LOW,10);
VAR2:=HHV(HIGH,15);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0);
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)REF(DOWN,1);
TJ1:=REF(DOWN,1)REF(DOWN,1) AND C<HHV(H,21)*0.82;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(DOWN,1)REF(DOWN,1) AND C<HRY33;
XG:BT OR TJ1 OR TJ2;


注意未来函数

求高手帮忙,把指标改成选股公式
。选股公式如下:VAR1:=(C+H+O+L)\/4;卖出:=XMA(VAR1,N)*(1+P1\/1000),COLORGREEN,LINETHICK2;买入:=XMA(VAR1,M)*(1-P2\/1000),COLORMAGENTA,LINETHICK2;CROSS(LOW,买入);其中XMA是标准的未来函数,也就是信号会发生漂移。因此这个公式只能用来做参考,且莫用做股票操作的依据。

求高手指标公式改为选股公式
选股的时候,选综合选股,然后将将短牛买,中牛买,大牛买的值等于1,然后就可以选股了。VAR1:=LLV(LOW,10);VAR2:=HHV(HIGH,15);动力线:= EMA((CLOSE-VAR1)\/(VAR2-VAR1)*4,4);趋势:=MA(动力线,2);下跌趋势:=IF(趋势<REF(趋势,1),趋势,DRAWNULL);上涨趋势:=IF(趋势>REF(趋势,1...

求高手将指标公式修改为选股公式
AR3:=AMOUNT\/VOL\/7;VAR4:=(3*HIGH+LOW+OPEN+2*CLOSE)\/7;VAR7:=REF((LOW+OPEN+CLOSE+HIGH)\/4,1);VAR8:=SMA(ABS(LOW-VAR7),13,1)\/SMA(MAX(LOW-VAR7,0),10,1);VAR9:=EMA(VAR8,10);VAR10:=LLV(LOW,33);VAR11:=EMA(IF(LOW<=VAR10,VAR9,0),3);进场:VAR11>REF(VAR11...

求大神把指标公式改成选股公式
可以修改选股公式,但是你要说清楚选股条件,例如选黄色柱位置的选股提示效果如下图。

恳请高手帮我把指标公式改写成选股公式,不胜感激!!!
X4:=(L+H+C*4)\/6;X6:=EMA(X4,19);X9:=(X6-REF(X6,1))\/REF(X6,1)*100;X9>=0 AND MA(CLOSE,20)>REF (MA(CLOSE,20),1) AND MA(CLOSE,60)>REF(MA(CLOSE,60),1) AND MA(CLOSE,120)>REF(MA(CLOSE,120),1);

请大师帮我将通达信附图指标公式改为选股公式
朋友,以下是你要的选股公式:A1:=EMA(C,12)-EMA(C,25);A2:=EMA(A1,6);获利回吐:=(A2>=0)*A2,COLORWHITE,LINETHICK0;大黑马:=(A2<0)*A2,COLORD4FF7F,LINETHICK0;坚绝做空:=(A1<0)*A1,COLORB00058,LINETHICK0;买入持股:=(A1>=0)*A1,COLORRED,LINETHICK0;VAR8:=VOL>2*MA(VOL,...

指标公式如何改写成选股条件公式
选股条件公式:P\/E比率越低,说明投资者需要投入的资金相对较少,投资价值相对更高。2. P\/B比率指标公式:P\/B比率=股价\/每股净资产。选股条件公式:P\/B比率越低,说明股票价格与净值之间的比率越小,投资价值越高。3. EPS指标公式:EPS=净利润\/总股本。选股条件公式:EPS越高,说明公司每股的收益...

求通达信高手把技术指标副图公式改成选股公式。
VAR2:=LLV(LOW,10); VAR3:=HHV(HIGH,25); 动力线:= EMA((CLOSE-VAR2)\/(VAR3-VAR2)*4,4); CROSS(动力线,0.5);

求高手改成条件选股公式谢谢
高度控盘:=IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0);信号:控盘<REF(控盘,1) AND 控盘>0;

求高手帮忙把以下指标公式改成选股公式
VAR6:=(CLOSE-LLV(CLOSE,530))\/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)\/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)\/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VARA:=BARSCOUNT(CLOSE);...

相似回答