将千钧老师的“千钧DDX”“千钧DDY”改写为选股公式_理想论坛

周线踩上453线选股

周线踩上453线选股

【股票资源馆】大智慧专业版破解版,大智慧机构破解版,大智慧ACE破解版,ACE策略,AI活跃度。

编写条件:

编写方法:

 网友求助:

源码:

千钧DDX

N:=22;jj:=(HIGH+LOW+CLOSE)/3;qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);

qj1:=IF(CAPITAL=0,qj0*(jj-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));

qj2:=IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(jj-MIN(CLOSE,OPEN))));

qj3:=IF(CAPITAL=0,qj0*(HIGH-MAX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));

qj4:=IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-jj),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-jj)));

DDX:((qj1+qj2)-(qj3+qj4))/sum(vol,60),COLOR00aaaa,LINETHICK0;DX:=ma(ddx,5)*N;

STICKLINE(DDX>0,0,DDX,8,0),COLOR000088;

STICKLINE(DDX>0,0,DDX,5,0),COLOR0000aa;

STICKLINE(DDX>0,0,DDX,3,0),COLOR0000cc;

STICKLINE(DDX>0,0,DDX,1,0),COLOR0000ee;

STICKLINE(DDX<0,0,DDX,8,0),COLOR008800;

STICKLINE(DDX<0,0,DDX,5,0),COLOR00aa00;

STICKLINE(DDX<0,0,DDX,3,0),COLOR00cc00;

STICKLINE(DDX<0,0,DDX,1,0),COLOR00ee00;

DDX1:sma(DX,3,1),COLORFFFFFF;

DDX2:sma(DDX1,3,1),COLOR00FFFF;

DDX3:wma(DDX2,5),COLORFF00FF;

预警:DDX>0 and ma(v,5)>ma(ma(v,5),5) and CROSS(DDX1,DDX2),LINETHICK0;

天:=COUNT(DDX>0,5);

DRAWTEXT(预警,DDX*1.06,''),LINETHICK3,COLOR00FFFF;

DRAWTEXTABS(180,0,'一周内翻红:'+NUMTOSTRN(天,0)+' 天'),Color00EEFF;

DRAWTEXTREL(10,0,'大单动向'),ColorEEEEFF;

DRAWTEXTREL(600,900,'证券代码: '+STKLABEL+' 证券名称: '+STKNAME+''),ColorFFAA00;

请将此公式改写为DDX,DDX1,DDX2,DDX3共同上涨的选股公式,谢谢。

 

 

千钧DDY
N:=22;jj:=(HIGH+LOW+CLOSE)/3;qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);
qj1:=IF(CAPITAL=0,qj0*(jj-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
qj2:=IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(jj-MIN(CLOSE,OPEN))));
qj3:=IF(CAPITAL=0,qj0*(HIGH-MAX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
qj4:=IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-jj),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-jj)));
DDY:((qj2+qj4)-(qj1+qj3))/SUM(vol,60),COLOR00DD00,LINETHICK0;
DY:=ma(ddy,5)*N;
STICKLINE(DDY<0,0,DDY,8,0),COLORFF8800;
STICKLINE(DDY<0,0,DDY,5,0),COLORFFaa00;
STICKLINE(DDY<0,0,DDY,3,0),COLORFFcc00;
STICKLINE(DDY<0,0,DDY,1,0),COLORFFee00;
STICKLINE(DDY>0,0,DDY,8,0),COLOR880088;
STICKLINE(DDY>0,0,DDY,5,0),COLORaa00aa;
STICKLINE(DDY>0,0,DDY,3,0),COLORcc00CC;
STICKLINE(DDY>0,0,DDY,1,0),COLORee00ee;
DDY1:sma(DY,3,1),ColorFFFFFF;
DDY2:sma(DDY1,3,1),Color00FFFF;
DDY3:wma(DDY2,5),ColorFF00FF;
预警:DDy>0 and CROSS(DDy1,DDy2) and ddy1<0,LINETHICK0;
DRAWTEXT(预警,DDy*1.06,''),LINETHICK3,COLOR00BBFF;
DRAWTEXTREL(10,0,'涨跌动因'),ColorEEEEFF;
DRAWTEXTREL(600,900,'证券代码: '+STKLABEL+' 证券名称: '+STKNAME+''),Color00BB00;

请将上面公式改写为DDY,DDY1,DDY2,DDY3共同上涨的选股公式

谢谢老师~!
 

 
解答如下:
{DDX}

N:=22;

jj:=(HIGH+LOW+CLOSE)/3;

qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);

qj1:=IF(CAPITAL=0,qj0*(jj-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));

qj2:=IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(jj-MIN(CLOSE,OPEN))));

qj3:=IF(CAPITAL=0,qj0*(HIGH-MAX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));

qj4:=IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-jj),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-jj)));

DDX:=((qj1+qj2)-(qj3+qj4))/sum(vol,60);

DX:=ma(ddx,5)*N;

DDX1:=sma(DX,3,1);

DDX2:=sma(DDX1,3,1);

DDX3:=wma(DDX2,5);

REF(DDX,2)>REF(DDX,1) AND DDX>REF(DDX,1) AND

REF(DDX1,2)>REF(DDX1,1) AND DDX1>REF(DDX1,1) AND

REF(DDX2,2)>REF(DDX2,1) AND DDX2>REF(DDX2,1) AND

REF(DDX3,2)>REF(DDX3,1) AND DDX3>REF(DDX3,1);

================================

{DDY}

N:=22;

jj:=(HIGH+LOW+CLOSE)/3;qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);

qj1:=IF(CAPITAL=0,qj0*(jj-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));

qj2:=IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(jj-MIN(CLOSE,OPEN))));

qj3:=IF(CAPITAL=0,qj0*(HIGH-MAX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));

qj4:=IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-jj),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-jj)));

DDY:=((qj2+qj4)-(qj1+qj3))/SUM(vol,60);

DY:=ma(ddy,5)*N;

DDY1:=sma(DY,3,1);

DDY2:=sma(DDY1,3,1);

DDY3:=wma(DDY2,5);

REF(DDY,2)>REF(DDY,1) AND DDY>REF(DDY,1) AND

REF(DDY1,2)>REF(DDY1,1) AND DDY1>REF(DDY1,1) AND

REF(DDY2,2)>REF(DDY2,1) AND DDY2>REF(DDY2,1) AND

REF(DDY3,2)>REF(DDY3,1) AND DDY3>REF(DDY3,1);

 

 

{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}

【股票资源馆】东方财富L2决策破解版,东方财富网,东方财富投资大师破解版,东方财富先锋版破解,东方财富领航版破解,同花顺远航版破解,同花顺财富先锋破解,同花顺L2破解。

以季度为时间单位的大智慧箱体指标

以季度为时间单位的大智慧箱体指标

大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:

下载地址:https://share.weiyun.com/LPoU0GHu