请老师把(高氏〓一图定乾坤)修改为通达信公式? [通达信]
-
咨询内容:
input:N(5,0,100);
PARTLINE((EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),6) > REF(EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),6),1)),EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),5)),colorFF;
PARTLINE((EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),6) < REF(EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),6),1)),EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),5)),colorFF00;
PARTLINE((EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),10) > REF(EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),13),1)),EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),13)),LINETHICK2,colorFF;
PARTLINE((EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),8) < REF(EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),13),1)),EMA(((((2 * CLOSE) + HIGH) + LOW) / 4),13)),LINETHICK2,colorFF00;
PARTLINE((EMA((((LOW + CLOSE) + OPEN) / 3),26) > REF(EMA((((LOW + CLOSE) + OPEN) / 3),28),1)),REF(EMA((((LOW + CLOSE) + OPEN) / 3),28),1)),LINETHICK3,colorFF;
PARTLINE((EMA((((LOW + CLOSE) + OPEN) / 3),26) < REF(EMA((((LOW + CLOSE) + OPEN) / 3),28),1)),REF(EMA((((LOW + CLOSE) + OPEN) / 3),28),1)),LINETHICK3,colorFF00;
PARTLINE((((EMA(LOW,125) + EMA(((CLOSE + LOW) / 2),250)) / 2) > REF(((EMA(LOW,125) + EMA(((CLOSE + LOW) / 2),250)) / 2),1)),((EMA(LOW,125) + EMA(((CLOSE + LOW) / 2),125)) / 2)),POINTDOT,colorFF;
PARTLINE((((EMA(LOW,125) + EMA(((CLOSE + LOW) / 2),250)) / 2) < REF(((EMA(LOW,125) + EMA(((CLOSE + LOW) / 2),250)) / 2),1)),((EMA(LOW,125) + EMA(((CLOSE + LOW) / 2),125)) / 2)),POINTDOT,colorFF00;
A:=HHV(MA((((LOW + HIGH) + CLOSE) / 3),3),3);
B:=LLV(MA((((LOW + HIGH) + CLOSE) / 3),3),5);
DRAWTEXT(((CLOSE >= A) AND (BARSCOUNT(CLOSE) = SYSPARAM(1))),(A * 1.019),'K线说话:短线→继续持股!'),SHIFT1,colorFFFF;
DRAWTEXT((((REF(CLOSE,1) < REF(A,1)) AND (CLOSE >= A)) AND (BARSCOUNT(CLOSE) = SYSPARAM(1))),(A * 0.99),'▲K线说话:短线→进场!'),SHIFT1,colorFF;
DRAWTEXT((((REF(CLOSE,1) > REF(A,1)) AND (CLOSE < A)) AND (BARSCOUNT(CLOSE) = SYSPARAM(1))),(A * 1.011),'K线说话:短线→减仓!'),SHIFT1,colorFFFF;
DRAWTEXT((((REF(CLOSE,1) > REF(B,1)) AND (CLOSE < B)) AND (BARSCOUNT(CLOSE) = SYSPARAM(1))),(A * 0.99),'▼K线说话:短线→持币'),SHIFT1,colorFF00;
趋势线:=ZIG(3,20);
DRAWTEXT(CROSS(REF(ZIG(3,20),1),ZIG(3,20)),(HIGH * 1.03),'均线说话:【一线绿/减1/3仓、二线绿/减1/2仓,三线绿/空仓】! '),ALIGN0,LINETHICK2,colorFF00;
DRAWTEXT(CROSS(ZIG(3,20),TROUGHBARS(3,20,1)),LOW,'均线说话:【一线红/建1/3仓、二线红/建1/2仓,三线红/满仓】!'),ALIGN0,LINETHICK2,colorFF00FF;
G:=(((ZIG(3,5) > REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1) <= REF(ZIG(3,5),2))) AND (REF(ZIG(3,5),2) <= REF(ZIG(3,5),3)));
X:=(((ZIG(3,5) < REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1) >= REF(ZIG(3,5),2))) AND (REF(ZIG(3,5),2) >= REF(ZIG(3,5),3)));
DRAWTEXT(G,(LOW * 1),'▲【箱底】说话:线变红买!'),ALIGN1,colorFF00FF;
DRAWTEXT(G,LOW,' ̄'),ALIGN1,colorFF00;
DRAWTEXT(X,(HIGH * 1.001),'▼【箱顶】说话:线变绿卖!'),ALIGN1,colorFF00;
DRAWTEXT(X,HIGH,' ̄'),ALIGN1,colorFFFF;
ED:=BARSLAST(G);
EF:=BARSLAST(X);
买入到卖出天数:ED,LINETHICK0,colorFFFFFF;
卖出到买入天数:EF,LINETHICK0,colorFFFFFF;
换手:((VOL / CAPITAL) * 100),LINETHICK0,colorFFFFFF;
QQ:=换手;
DRAWTEXT((BARPOS = SYSPARAM(2)),CLOSE,(((((((('买入到到当前周期:' + NUMTOSTR(ED,0)) + '天') + '★卖出到当前周期:') + NUMTOSTR(EF,0)) + '天') + '★换手率:') + NUMTOSTR(QQ,2)) + '%')),ALIGN5,colorFFFF00;
FF:=EMA(CLOSE,2);
MA15:=EMA(CLOSE,4);
波段拐点趋势图:MA(CLOSE,99999997952);
DRAWTEXT(((DATE < 11050516) AND CROSS(FF,MA15)),LOW,'▲小户:红买!'),colorFF;
DRAWTEXT(((DATE < 11050516) AND CROSS(MA15,FF)),HIGH,'▼小户:绿卖!'),colorFF00;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,45);
DRAWTEXT(((DATE < 11050516) AND CROSS(FF,MA15)),LOW,'▲波段说话:【三线红】大户→进场!'),colorFF;
DRAWTEXT(((DATE < 11050516) AND CROSS(MA15,FF)),HIGH,'▼波段说话:【三线绿】大户→退场!'),colorFF00;
Y0:=LINEVALUE((SUM(REFX(ISLASTBAR,0),0) = 0),HIGH,ISLASTBAR,HIGH,0,1);
Y:=LINEVALUE((SUM(REFX(ISLASTBAR,1),0) = 0),HIGH,ISLASTBAR,HIGH,0,1);
Y02:=LINEVALUE((SUM(REFX(ISLASTBAR,2),0) = 0),HIGH,ISLASTBAR,HIGH,0,1);
Y1:=LINEVALUE((SUM(REFX(ISLASTBAR,3),0) = 0),HIGH,ISLASTBAR,HIGH,0,1);
Y2:=LINEVALUE((SUM(REFX(ISLASTBAR,5),0) = 0),HIGH,ISLASTBAR,HIGH,0,1);
Y3:=LINEVALUE((SUM(REFX(ISLASTBAR,7),0) = 0),HIGH,ISLASTBAR,HIGH,0,1);
Y4:=LINEVALUE((SUM(REFX(ISLASTBAR,9),0) = 0),HIGH,ISLASTBAR,HIGH,0,1);
Y5:=LINEVALUE((SUM(REFX(ISLASTBAR,11),0) = 0),HIGH,ISLASTBAR,HIGH,0,1);
Y60:=LINEVALUE((SUM(REFX(ISLASTBAR,20),0) = 0),HHV(HIGH,60),ISLASTBAR,HIGH,0,1);
Z0:=LINEVALUE((SUM(REFX(ISLASTBAR,0),0) = 0),LOW,ISLASTBAR,LOW,0,1);
Z:=LINEVALUE((SUM(REFX(ISLASTBAR,1),0) = 0),LOW,ISLASTBAR,LOW,0,1);
Z02:=LINEVALUE((SUM(REFX(ISLASTBAR,2),0) = 0),LOW,ISLASTBAR,LOW,0,1);
Z1:=LINEVALUE((SUM(REFX(ISLASTBAR,3),0) = 0),LOW,ISLASTBAR,LOW,0,1);
Z2:=LINEVALUE((SUM(REFX(ISLASTBAR,5),0) = 0),LOW,ISLASTBAR,LOW,0,1);
Z3:=LINEVALUE((SUM(REFX(ISLASTBAR,7),0) = 0),LOW,ISLASTBAR,LOW,0,1);
Z4:=LINEVALUE((SUM(REFX(ISLASTBAR,9),0) = 0),LOW,ISLASTBAR,LOW,0,1);
Z5:=LINEVALUE((SUM(REFX(ISLASTBAR,11),0) = 0),LOW,ISLASTBAR,LOW,0,1);
Z60:=LINEVALUE((SUM(REFX(ISLASTBAR,20),0) = 0),LLV(LOW,60),ISLASTBAR,LOW,0,1);
DY1:=SGN((CLOSE - OPEN));
DZC:=SGN((CLOSE - REF(CLOSE,1)));
DCX:=SGN((HIGH - REF(HIGH,1)));
XGD:=((HIGH - HHV(HIGH,60)) = 0);
XDD:=((LOW - LLV(LOW,60)) = 0);
QS:((((((((((((((((((((SGN((Y0 - REF(Y0,1))) + SGN((Y - REF(Y,1)))) + SGN((Y02 - REF(Y02,1)))) + SGN((Y1 - REF(Y1,1)))) + SGN((Y2 - REF(Y2,1)))) + SGN((Y3 - REF(Y3,1)))) + SGN((Y4 - REF(Y4,1)))) + SGN((Y5 - REF(Y5,1)))) + SGN((Z0 - REF(Z0,1)))) + SGN((Z - REF(Z,1)))) + SGN((Z02 - REF(Z02,1)))) + SGN((Z1 - REF(Z1,1)))) + SGN((Z2 - REF(Z2,1)))) + SGN((Z3 - REF(Z3,1)))) + SGN((Z4 - REF(Z4,1)))) + SGN((Z5 - REF(Z5,1)))) + DY1) + DZC) + DCX) + XGD) + (XDD * -1)),LINETHICK0;
DRAWTEXT(ISLASTBAR,(HIGH * IF((XDD = (0 - 20)),1.14,1.02)),(' ' + NUMTOSTR(QS,0))),ALIGN1,SHIFT2,colorFF00;
DRAWTEXT((ISLASTBAR AND (QS <= (0 - 5))),(HIGH * IF((XDD = (0 - 20)),1.14,1.05)),((' \n' + '趋势:中线趋势向下有反弹\n') + '说话:短线按 K线指令执行!')),ALIGN1,SHIFT2,colorFF00;
DRAWTEXT((ISLASTBAR AND (QS = (0 - 20))),(HIGH * IF((XDD = (0 - 20)),1.14,1.05)),(((' \n' + ' \n') + ' \n') + ' 即时说话:短线按K线指令执行!')),ALIGN1,SHIFT2,colorFF00;
DRAWTEXT((ISLASTBAR AND BETWEEN(QS,(0 - 5),7)),HIGH,((' \n' + '趋势:中线趋势→疲软时\n') + '说话:短线按K线指令执行! ')),ALIGN1,SHIFT3,colorFFFF;
DRAWTEXT((ISLASTBAR AND BETWEEN(QS,7,20)),HIGH,((' \n' + '趋势:中线趋势向上有调整\n') + '说话:短线按K线指令执行!')),ALIGN1,SHIFT3,colorFF00FF;
DRAWTEXT((ISLASTBAR AND (QS = 20)),HIGH,((' \n' + ' 趋势:中线趋势→健康时\n') + ' 说话:短线按K线指令执行!')),SHIFT2,colorFF00FF;
【箱顶】说话:可能形成头部小心!:(PEAK(CLOSE,N,1) * 0.998);
【箱底】说话:可能形成底部关注!:(TROUGH(CLOSE,N,1) * 1.003);
BJ:=((CLOSE / INDEXC) * 1000);
QS:(BJ > REF(BJ,1)),LINETHICK0;
RS:=(BJ <= REF(BJ,1));
EXPLAIN(QS,'解盘:个股走势:强于大盘'),colorFF;
EXPLAIN(RS,'解盘:个股走势:弱于大盘'),colorFF00;
HSL:=((VOL / CAPITAL) * 100);
量能:=SUM(HSL,N);
涨幅1:=((100 * (CLOSE - REF(CLOSE,N))) / REF(CLOSE,N));
流通市值:=(CAPITAL * CLOSE);
AH:=HHV(流通市值,N);
AL:=LLV(流通市值,N);
-
通达信技术部:
EXPLAIN(CLOSE,' 〓【换手率解盘】〓'),colorFF;
EXPLAIN((HSL <= 2),'该股票少人关注,属于【冷门股】。');
EXPLAIN(((HSL > 2) AND (HSL < 3)),'该股票成交温和,属于【备份股】。');
EXPLAIN(((HSL > 3) AND (HSL < 5)),'该股票的交投越来越活跃,人们购买该股票的意愿高,属于【热门股】。');
EXPLAIN(((HSL > 5) AND (HSL < 8)),'该股票【带量】!');
EXPLAIN(((HSL > 8) AND (HSL < 15)),'该股票【放量】!');
EXPLAIN(((HSL > 15) AND (HSL < 25)),'该股票【巨量】!');
EXPLAIN((HSL >= 25),'该股票成交【怪异】!');
EXPLAIN(((量能 > (3 * N)) AND (涨幅1 > (3 * N))),'继续【大涨】!');
EXPLAIN(((量能 < (0.5 * N)) AND (涨幅1 < N)),'继续【小涨】!');
EXPLAIN((((量能 < (0.5 * N)) AND (涨幅1 > (0 - N))) AND (涨幅1 > 0)),'【继续小跌】!');
EXPLAIN(((量能 > (3 * N)) AND (涨幅1 < (0 - (3 * N)))),'【继续大跌】!');
EXPLAIN((((((量能 > (3 * N)) AND (涨幅1 < N)) OR ((量能 < (0.5 * N)) AND (涨幅1 > (3 * N)))) OR (((量能 > (3 * N)) AND (涨幅1 > (0 - N))) AND (涨幅1 < 0))) OR ((量能 < (0.5 * N)) AND (涨幅1 < (0 - (3 * N))))),'注意反转!');
EXPLAIN(((涨幅1 > 0) AND (流通市值 <= AL)),'流通市值减小,涨幅加大');
EXPLAIN(((涨幅1 <= 0) AND (流通市值 >= AH)),'流通市值加大,涨幅减小');
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3 * K) - (2 * D));
EXPLAIN((CROSS(J,K) AND (K < 50)),'KDJ金叉'),colorFFFF;
EXPLAIN((CROSS(K,D) AND (K > 70)),'KDJ死叉'),colorFF;
EXPLAINEX((1 = 1),'换手率=',((VOL / CAPITAL) * 100),2,1);
EXPLAINEX((1 = 1),'【获利盘】比例=',(WINNER(CLOSE) * 100),2,1),colorFF;
EXPLAINEX((1 = 1),'【套牢盘】比例=',(100 - (WINNER(CLOSE) * 100)),2,1),colorFF00;
AA:=(((EMA(CLOSE,30) * 2) + MA(CLOSE,60)) / 3);
RA:=(VOL * CLOSE);
VL1A:=(EMA(RA,13) / EMA(VOL,13));
VL2A:=(EMA(RA,60) / EMA(VOL,60));
VLA:=EMA(((VL1A + VL2A) / 2),3);
分水岭:=MA(((AA + VLA) / 2),1);
EXPLAINEX((1 = 1),'【分水岭说话】(中长标)=',分水岭,2,1),colorFF;
EXPLAIN((CROSS(CLOSE,分水岭) AND (CLOSE > REF(CLOSE,1))),'股价上穿【分水岭】,进入【多头】\n');
EXPLAIN((((CLOSE > 分水岭) AND (CLOSE > MA(CLOSE,60))) AND (CLOSE > REF(CLOSE,1))),'股价在【分水岭】之上, 总趋势属【多头】\n'),colorFF;
RA:=(VOL * CLOSE);
VL1A:=(EMA(RA,13) / EMA(VOL,13));
VL2A:=(EMA(RA,60) / EMA(VOL,60));
VLA:=EMA(((VL1A + VL2A) / 2),3);
分水岭:=MA(((AA + VLA) / 2),1);
EXPLAIN((CROSS(分水岭,CLOSE) AND (CLOSE < REF(CLOSE,1))),'股价下穿分水岭,进入空头\n');
EXPLAIN((((CLOSE < 分水岭) AND (CLOSE < MA(CLOSE,60))) AND (CLOSE < REF(CLOSE,1))),'●〓结论〓:股价在生命线之下, 总趋势属空头,超跌只能抢反弹\n');
EXPLAIN(1,(((STKLABEL + STKNAME) + '\n所属板块:') + BLKNAME)),colorFFFF00;
EXPLAIN((CLOSE > 0),' 〓 K 线形态分析 〓 '),colorFF00FF;
★早晨之星:=((((((REF(CLOSE,2) / REF(OPEN,2)) < 0.95) AND (REF(OPEN,1) < REF(CLOSE,2))) AND ((ABS((REF(OPEN,1) - REF(CLOSE,1))) / REF(CLOSE,1)) < 0.03)) AND ((CLOSE / OPEN) > 1.05)) AND (CLOSE > REF(CLOSE,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)));
★长十字:=((CLOSE = OPEN) AND ((HIGH / LOW) > 1.03));
★垂死十字:=(((CLOSE = OPEN) AND (CLOSE = LOW)) AND (CLOSE <> HIGH));
★早晨十字星:=((((((REF(CLOSE,2) / REF(OPEN,2)) < 0.95) AND (REF(OPEN,1) < REF(CLOSE,2))) AND (REF(OPEN,1) = REF(CLOSE,1))) AND ((CLOSE / OPEN) > 1.05)) AND (CLOSE > REF(CLOSE,2)));
★黄昏十字星:=((((((REF(CLOSE,2) / REF(OPEN,2)) > 1.05) AND (REF(OPEN,1) > REF(CLOSE,2))) AND (REF(OPEN,1) = REF(CLOSE,1))) AND ((CLOSE / OPEN) < 0.95)) AND (CLOSE < REF(CLOSE,2)));
★射击之星:=(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) > (3 * (MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE > MA(CLOSE,5)));
★倒转锤头:=(((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))))) AND (CLOSE > MA(CLOSE,5)));
★穿头破脚:=((((((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))));
★乌云盖顶:=(((((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)));
★身怀六甲:=(((((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))));
★十字胎:=(((((ABS((REF(CLOSE,1) - REF(OPEN,1))) / REF(CLOSE,1)) > 0.04) AND (CLOSE = OPEN)) AND (CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)))) AND (CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1))));
★平顶:=((ABS((HIGH - REF(HIGH,1))) / HIGH) < 0.001);
★平底:=(((ABS((LOW - REF(LOW,1))) / LOW) < 0.001) AND ((ABS((REF(LOW,1) - REF(LOW,2))) / REF(LOW,1)) <= 0.001));
★大阳烛:=(((CLOSE / OPEN) > 1.05) AND ((HIGH / LOW) < ((CLOSE / OPEN) + 0.018)));
★红三兵:=(((((REF(CLOSE,2) > REF(OPEN,2)) AND (REF(CLOSE,1) > REF(OPEN,1))) AND (CLOSE > OPEN)) AND (REF(CLOSE,1) > REF(CLOSE,2))) AND (CLOSE > REF(CLOSE,1)));
★双飞乌鸦:=(((REF(CLOSE,1) < REF(OPEN,1)) AND (CLOSE < OPEN)) AND ((CLOSE / OPEN) < 0.98));
★孕育线:=(((((((((((REF(CLOSE,2) > REF(OPEN,2)) AND (((REF(CLOSE,2) - REF(OPEN,2)) / REF(OPEN,2)) >= (2 / 100))) AND (REF(OPEN,1) >= REF(CLOSE,1))) AND (((REF(OPEN,1) - REF(CLOSE,1)) / REF(CLOSE,1)) <= (2 / 100))) AND (REF(OPEN,1) <= REF(CLOSE,2))) AND (REF(CLOSE,1) >= REF(OPEN,2))) AND (CLOSE >= OPEN)) AND (((CLOSE - OPEN) / OPEN) >= (2 / 100))) AND (CLOSE >= REF(OPEN,1))) AND (OPEN <= REF(CLOSE,1))) AND (((MAX(CLOSE,REF(CLOSE,2)) - MIN(CLOSE,REF(CLOSE,2))) / MIN(CLOSE,REF(CLOSE,2))) <= (1 / 100)));
★多方炮:=(((REF(CLOSE,2) > REF(OPEN,2)) AND (REF(CLOSE,1) < REF(OPEN,1))) AND (CLOSE > OPEN));
★出水芙蓉:=(((((OPEN < EMA(CLOSE,20)) OR (OPEN < EMA(CLOSE,40))) OR (OPEN < EMA(CLOSE,60))) AND (CLOSE > MAX(EMA(CLOSE,20),MAX(EMA(CLOSE,40),EMA(CLOSE,60))))) AND (((VOL / MA(VOL,30)) > 1.2) AND ((CLOSE / REF(CLOSE,1)) > 1.049)));
★上升三部曲:=(((((((((((((REF(CLOSE,4) / REF(OPEN,4)) > 1.03) AND (REF(CLOSE,3) < REF(OPEN,3))) AND (REF(CLOSE,2) < REF(OPEN,2))) AND (REF(CLOSE,1) < REF(OPEN,1))) AND (REF(LOW,4) < REF(LOW,3))) AND (REF(LOW,4) < REF(LOW,2))) AND (REF(LOW,4) < REF(LOW,1))) AND (REF(HIGH,4) > REF(HIGH,3))) AND (REF(HIGH,4) > REF(HIGH,2))) AND (REF(HIGH,4) > REF(HIGH,1))) AND ((CLOSE / OPEN) > 1.03)) AND (CLOSE > REF(CLOSE,4)));
★下跌三部曲:=(((((((((((((REF(CLOSE,4) / REF(OPEN,4)) < 0.97) AND (REF(CLOSE,3) > REF(OPEN,3))) AND (REF(CLOSE,2) > REF(OPEN,2))) AND (REF(CLOSE,1) > REF(OPEN,1))) AND (REF(LOW,4) < REF(LOW,3))) AND (REF(LOW,4) < REF(LOW,2))) AND (REF(LOW,4) < REF(LOW,1))) AND (REF(HIGH,4) > REF(HIGH,3))) AND (REF(HIGH,4) > REF(HIGH,2))) AND (REF(HIGH,4) > REF(HIGH,1))) AND ((CLOSE / OPEN) < 0.97)) AND (CLOSE < REF(CLOSE,4)));
★跳空缺口:=((HIGH < REF(LOW,1)) OR (LOW > REF(HIGH,1)));
★三只乌鸦:=(((((REF(CLOSE,2) < REF(OPEN,2)) AND (REF(CLOSE,1) < REF(OPEN,1))) AND (CLOSE < OPEN)) AND (REF(CLOSE,1) < REF(CLOSE,2))) AND (CLOSE < REF(CLOSE,1)));
★光脚阴线:=((LOW = CLOSE) AND (HIGH <> LOW));
★光头阳线:=((HIGH = CLOSE) AND (HIGH <> LOW));
★分离:=((OPEN = REF(OPEN,1)) AND (((CLOSE - OPEN) * (REF(CLOSE,1) - REF(OPEN,1))) < 0));
★长下影:=(((MIN(CLOSE,OPEN) - LOW) / (HIGH - LOW)) > 0.667);
★长上影:=(((HIGH - MAX(CLOSE,OPEN)) / (HIGH - LOW)) > 0.667);
★十字星:=((CLOSE = OPEN) AND (HIGH <> LOW));
★大阴烛:=(((OPEN / CLOSE) > 1.05) AND ((HIGH / LOW) < ((OPEN / CLOSE) + 0.018)));
★好友反攻:=((((REF(CLOSE,1) < REF(OPEN,1)) AND (CLOSE > OPEN)) AND ((ABS((CLOSE - REF(CLOSE,1))) / CLOSE) < 0.002)) OR (((REF(CLOSE,1) > REF(OPEN,1)) AND (CLOSE < OPEN)) AND ((ABS((CLOSE - REF(CLOSE,1))) / CLOSE) < 0.002)));
★倾盆大雨:=(((((REF(CLOSE,1) / REF(OPEN,1)) >= 1.03) AND (OPEN < REF(CLOSE,1))) AND (OPEN > REF(OPEN,1))) AND (CLOSE < REF(OPEN,1)));
EXPLAIN(★倾盆大雨,'★倾盆大雨★见顶信号;'),colorFFFF00;
EXPLAIN(★大阴烛,'★大阴烛★后市向淡,发生逆转;'),colorFFFF00;
EXPLAIN(★好友反攻,'★好友反攻★底部反转;'),colorFF;
EXPLAIN(★跳空缺口,'★跳空缺口★注意向上还是向下跳空;'),colorFFFFFF;
EXPLAIN(★光脚阴线,'★光脚阴线★下跌信号;'),colorFFFF00;
EXPLAIN(★光头阳线,'★光头阳线★后市看涨;'),colorFF;
EXPLAIN(★三只乌鸦,'★三只乌鸦★可能见顶回落;'),colorFFFF00;
EXPLAIN(★分离,'★分离★注意看涨分离和看跌分离;'),colorFFFFFF;
EXPLAIN(★长下影,'★长下影★持续下跌后出现,有可能止跌回升;在升势末期 出现,须多加留意;'),colorFF;
EXPLAIN(★长上影,'★长上影★表明行情上档压力沉重,升势受 阻;'),colorFFFF00;
EXPLAIN(★下跌三部曲,'★下跌三部曲★下跌信号;'),colorFF;
EXPLAIN(★上升三部曲,'★上升三部曲★上涨信号;'),colorFFFF00;
EXPLAIN(★早晨之星,'★早晨之星★见底回升;'),colorFF;
EXPLAIN(★黄昏之星,'★黄昏之星★见顶回落;'),colorFFFF00;
EXPLAIN(★十字星,'★十字星★有转向意味,注意股价位置在顶部还是底 部;'),colorFFFFFF;
EXPLAIN(★长十字,'★长十字★注意在顶部还是底部;'),colorFFFFFF;
EXPLAIN(★垂死十字,'★垂死十字★下跌信号;'),colorFFFF00;
EXPLAIN(★早晨十字星,'★早晨十字星★上涨信号,见底回升;'),colorFF;
EXPLAIN(★黄昏十字星,'★黄昏十字星★下跌信号,见顶回落;'),colorFFFF00;
EXPLAIN(★射击之星,'★射击之星★可能见顶回落,可靠性低;'),colorFFFF00;
EXPLAIN(★倒转锤头,'★倒转锤头★可能见底回升;'),colorFF;
EXPLAIN(★锤头,'★锤头★可能见底回升,如有量配合,信号强 烈;'),colorFF;
EXPLAIN(★吊颈,'★吊颈★上升行情中见顶回落,顶部出现,见顶信 号;'),colorFFFF00;
EXPLAIN(★平顶,'★平顶★温和的反转;'),colorFFFF00;
EXPLAIN(★穿头破脚,'★穿头破脚★顶部出现,见顶回落信号;'),colorFFFF00;
EXPLAIN(★乌云盖顶,'★乌云盖顶★见顶回落信号;'),colorFFFF00;
EXPLAIN(★曙光初现,'★曙光初现★后市见底回升;'),colorFF;
EXPLAIN(★身怀六甲,'★身怀六甲★出现在底部,是见底回升信号;出现在顶部 ,是见顶回落信号;'),colorFF;
EXPLAIN(★十字胎,'★十字胎★'),colorFF;
EXPLAIN(★平底,'★平底★温和的反转;'),colorFF;
EXPLAIN(★大阳烛,'★大阳烛★看涨;'),colorFF;
EXPLAIN(★红三兵,'★红三兵★每日收盘价上移,表示可能见底回升;'),colorFF;
EXPLAIN(★双飞乌鸦,'★双飞乌鸦★行情将见顶回落;'),colorFFFF00;
EXPLAIN(★孕育线,'★孕育线★注意股价位置;'),colorFFFFFF;
EXPLAIN(★多方炮,'★多方炮★在底部出现有上涨可能,在中间出现有可能是 上涨中继,顶部出现是复合见顶信号;'),colorFF;
EXPLAIN(★出水芙蓉,'★出水芙蓉★见底回升;'),colorFF;
多空2:=EMA(CLOSE,50);
多空3:=EMA(CLOSE,50);
出货:EXPLAIN((CLOSE >= 多空2),'★股价站在:大户线之上→买进!'),LINETHICK2,colorFF;
EXPLAIN((CLOSE < 多空2),'★股价站在:大户线之下→做空! '),colorFF00;
EXPLAIN((多空2 >= REF(多空2,1)),'★大户线趋势:向上→做多!'),colorFF;
EXPLAIN((多空2 < REF(多空2,1)),'★大户线趋势:向下→做空! '),colorFF00;
TR:=(((CLOSE * 2.5) / 100) + CLOSE);
HD:=(CLOSE - ((CLOSE * 2.5) / 100));
EXPLAINEX(COST(50),'☆市场平均成本:',COST(50),2,0),colorFFFF00;
EXPLAINEX(COST(4),'☆主力平均成本:',COST(4),2,0),colorFFFF;
EXPLAINEX(COST(30),'☆控盘平均成本:',COST(30),2,0),colorFF;
EXPLAINEX(COST(75),'☆拉升平均成本:',COST(75),2,0),colorFF;
EXPLAINEX(COST(95),'☆顶部平均成本:',COST(95),2,0),colorFFFF;
EXPLAINEX(COST(0.05),'☆底部平均成本:',COST(0.05),2,0),colorFFFF;
EXPLAINEX(TR,'★卖出价预测:',TR,2,0),colorFF00;
EXPLAINEX(HD,'★买入价预测:',HD,2,0),colorFF;
EXPLAINEX(1,'★获利盘比例=',(WINNER(CLOSE) * 100),2,0),colorFF;
EXPLAINEX(1,'★套牢盘比例=',(100 - (WINNER(CLOSE) * 100)),2,0),colorFF00;
-
通达信客服:
这上面两个帖子是联起来是个公式!!!
-
网友交流:
这么长的公式,通达信不知行不行,它好像输出不超过16个的。看看哪位高手能改一改?
- 网友交流: tdx很难啊!!!看了这个是fox的啊!好公式!
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容