请高手帮忙编TDX的选股公式
发布网友
发布时间:2022-10-04 14:52
我来回答
共4个回答
热心网友
时间:2023-10-14 17:34
{主图}
工作线:EMA(CLOSE,50),COLORRED,LINETHICK2;
工作线2:EMA(CLOSE,17),LINETHICK2;
九号线:=EMA(CLOSE,99);
暴涨线:=MA(CLOSE,181);
牛:=EMA(CLOSE,144)>=REF(EMA(CLOSE,144),1);
DRAWTEXT((工作线2>=REF(工作线2,1) AND
L<工作线2 AND C>工作线2) ,L, '买'),COLORYELLOW;
DRAWTEXT((九号线>=REF(九号线,1) AND 牛 AND L<九号线 AND H>九号线)
AND ((CLOSE<REF(CLOSE,1) OR O>C)),L*0.98 , '●九号'),COLOR00FF00;
DRAWTEXT((工作线>=REF(工作线,1) AND 牛 AND L<工作线 AND H>工作线)
{AND ((CLOSE<REF(CLOSE,1) OR O>C))},L*0.96 , '◆工作'),COLORWHITE;
DRAWTEXT( (暴涨线>=REF(暴涨线,1) AND 牛 AND L<暴涨线 AND H>暴涨线)
AND ((CLOSE<REF(CLOSE,1) OR O>C)),L*0.94 , '★暴涨'),COLORMAGENTA;
黄昏之星:=((((((REF(CLOSE,2) / REF(OPEN,2)) > 1.03) AND (REF(OPEN,1) >
REF(CLOSE,2))) AND ((ABS((REF(OPEN,1) - REF(CLOSE,1))) /
REF(CLOSE,1)) < 0.02)) AND ((CLOSE / OPEN) < 0.97)) AND (CLOSE <REF(CLOSE,2)));
射击之星:=(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) > (3 *
(MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE > MA(CLOSE,5)));
锤头:=(((HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH -
MIN(OPEN,CLOSE))))) AND (CLOSE < MA(CLOSE,5)));
吊颈:=(( (HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH -
MIN(OPEN,CLOSE))))));
穿头破脚:=((((((REF(CLOSE,1) / REF(OPEN,1)) > 1.03) AND ((CLOSE / OPEN)
< 0.96)) AND (CLOSE < REF(OPEN,1))) AND (OPEN > REF(CLOSE,1))) OR
(((((REF(CLOSE,1) / REF(OPEN,1)) < 0.97) AND ((CLOSE / OPEN) >
1.04)) AND (CLOSE > REF(OPEN,1))) AND (OPEN < REF(CLOSE,1))));
身怀六甲:=(((((ABS((REF(CLOSE,1) - REF(OPEN,1))) / REF(CLOSE,1)) > 0.04)
AND ((ABS((CLOSE - OPEN)) / CLOSE) < 0.005)) AND (MAX(CLOSE,OPEN) <
MAX(REF(CLOSE,1),REF(OPEN,1)))) AND (MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1))));
乌云盖顶:=(((((REF(CLOSE,1) / REF(OPEN,1)) > 1.03) AND ((CLOSE / OPEN) <
0.97)) AND (OPEN > REF(CLOSE,1))) AND (CLOSE < REF(CLOSE,1)));
曙光初现:=(((((REF(CLOSE,1) / REF(OPEN,1)) < 0.97) AND ((CLOSE / OPEN) >
1.03)) AND (OPEN < REF(CLOSE,1))) AND (CLOSE > REF(CLOSE,1)));
倾盆雨:=(((((REF(CLOSE,1) / REF(OPEN,1)) >= 1.03) AND (OPEN <
REF(CLOSE,1))) AND (OPEN > REF(OPEN,1))) AND (CLOSE < REF(OPEN,1)));
DRAWTEXT(倾盆雨,H*1.03,'倾盆大雨'),COLORCYAN;
DRAWTEXT(黄昏之星,H*1.02,'黄昏之星'),COLORCYAN;
DRAWTEXT(射击之星,H*1.03,'射击之星可能见顶'),COLORCYAN;
DRAWTEXT(锤头,L-L*0.02,'锤头可能见底'),COLORGREEN;
DRAWTEXT(吊颈,H*1.03,'吊颈'),COLORCYAN;
DRAWTEXT(穿头破脚,H*1.05,'穿头破脚'),COLORCYAN;
DRAWTEXT(乌云盖顶,H*1.03,'乌云盖顶'),COLORCYAN;
DRAWTEXT(曙光初现,L-L*0.02,'曙光初现(放量)'),COLORGREEN;
DRAWTEXT(身怀六甲,L-L*0.02,'身怀六甲,底升顶落'),COLORGREEN;
{线上阴线买选股:}
工作线2:=EMA(CLOSE,17);
买:工作线2>=REF(工作线2,1) AND L<工作线2 AND C>工作线2};
{卖点选股}
黄昏之星:=((((((REF(CLOSE,2) / REF(OPEN,2)) > 1.03) AND (REF(OPEN,1) >
REF(CLOSE,2))) AND ((ABS((REF(OPEN,1) - REF(CLOSE,1))) /
REF(CLOSE,1)) < 0.02)) AND ((CLOSE / OPEN) < 0.97)) AND (CLOSE <REF(CLOSE,2)));
射击之星:=(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) > (3 *
(MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE > MA(CLOSE,5)));
卖:黄昏之星 OR 射击之星;
热心网友
时间:2023-10-14 17:35
加我的QQ号1070802558 我教您。
STICKLINE(C>0,37,50,4,0),COLOR003800;
37,COLORGRAY;
50,COLORGRAY;
AA:SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100,COLORFFB5FF;
BB:90-AA,COLORFFFF7F;
X0:=((C-LLV(L,33))/(HHV(H,33)-LLV(L,33)))*67;
X1:=MA(3*SMA(X0,33,1)-2*SMA(SMA(X0,43,1),5,1),2);
X2:=IF(X1>REF(X1,1),X1,X1+2*(X1-REF(X1,1)));
趋势:(EMA(X2,7))+20,COLOR0068FF;
X_L1:=(O+C*3+L+H)/6;
X_L2:=V*X_L1;
X_L3:=REF(SUM(X_L2,5)/SUM(V,5),1);
X_L4:=COUNT(BARSLAST(趋势<REF(趋势,1)),BARSLAST(趋势<REF(趋势,1))) AND
(CROSS(AA,BB) OR CROSS(AA,50)) AND C>=X_L3;
DRAWICON(X_L4,32,1);
或是以下这样
{STICKLINE(C>0,37,50,4,0),COLOR003800;
37,COLORGRAY;
50,COLORGRAY;}
AA:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100,COLORFFB5FF;
BB:=90-AA,COLORFFFF7F;
X0:=((C-LLV(L,33))/(HHV(H,33)-LLV(L,33)))*67;
X1:=MA(3*SMA(X0,33,1)-2*SMA(SMA(X0,43,1),5,1),2);
X2:=IF(X1>REF(X1,1),X1,X1+2*(X1-REF(X1,1)));
趋势:=(EMA(X2,7))+20,COLOR0068FF;
X_L1:=(O+C*3+L+H)/6;
X_L2:=V*X_L1;
X_L3:=REF(SUM(X_L2,5)/SUM(V,5),1);
A1:=COUNT(BARSLAST(趋势<REF(趋势,1)),BARSLAST(趋势<REF(趋势,1)));
A2:=CROSS(AA,BB);
A3:=CROSS(AA,50);
A4:=A2 OR A3;
A1 AND A4 AND C>=X_L3;
热心网友
时间:2023-10-14 17:35
用殷宝华的线上阴线买,线下阳线卖编个指示买点和卖点的主图,再用线上阴线买编个选股公式,谢谢。
热心网友
时间:2023-10-14 17:36
还是根据基本面选股的好,这些只能做个参考!