請老師把(高氏〓一圖定乾坤)修改為通達信公式? [通達信]
-
咨詢內容:
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 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容