短線布局,優化指標 公式 源碼[通達信公式]
指標公式代碼分析及使用參考建議:
源碼:
?
短線布局:LC:=REF(CLOSE,1);RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);TTR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);PDI:=((DMP * 100) / TTR);MDI:=((DMM * 100) / TTR);ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);AV:=(RSI5 + ADX);DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);{0,COLORFF00FF;}WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));NEWVOL:=(RSI5 - WR10);底:=(AV + NEWVOL),VOLSTICK;底5:=MA(底,5),COLORGRAY;趨勢線:=LLV(底,1),COLORFFFFFF;STICKLINE((趨勢線 >230 ),250,趨勢線,0.8,1),LINETHICK6,COLORGREEN;AA:=REF(CLOSE,1);BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;HHH:=BBB-LLV(BBB,27);CCC:=LLV(BBB,27)-BBB;SS:=(MA(CCC,2)*3+CCC*13)/16;G3:MA(HHH,3),COLORYELLOW;G6:=MA(HHH,6),COLORMAGENTA;G8:=MA(HHH,8),LINETHICK1,COLORGREEN;{原值 5}QQ:=(MA(HHH,5)*3+HHH*13)/16,COLORYELLOW,LINETHICK1,DOTLINE;{原值 2}MM:=MA(CCC,5);WW:=IF(QQ<G8 ,SS,MM);EE:=IF(SS<MM ,G8,QQ);實量:=V,COLORYELLOW,NODRAW;成交量額:=(AMOUNT+V)/2,VOLSTICK;量:=V/REF(V,1)>1.8;凈cxh1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));買盤:=IF(CLOSE>OPEN,凈cxh1*(HIGH-LOW),IF(CLOSE<OPEN,凈cxh1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,NODRAW;賣盤:=-IF(CLOSE>OPEN,0-凈cxh1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-凈cxh1*(HIGH-LOW),0-VOL/2)),COLORGREEN,NODRAW;凈買:=(買盤-賣盤),VOLSTICK;{程序化久久公式網 m.kzuj.com.cn}cxh2:=(HIGH-LOW);cxh3:=ABS((OPEN-CLOSE));cxh4:=(HIGH-IF((CLOSE>OPEN),CLOSE,OPEN));cxh5:=(IF((CLOSE>OPEN),OPEN,CLOSE)-LOW);cxh6:=((cxh3/cxh2)*VOL);cxh7:=((cxh4/cxh2)*VOL);cxh8:=((cxh5/cxh2)*VOL);cxh9:=IF(((VOL/CAPITAL) >0.001),1,EXP(ABS(LOG(((VOL/CAPITAL)*100)))));cxhA:=(((CLOSE-MA(CLOSE,5))/MA(CLOSE,5))*100);進QQ:=cxh6>=cxh7 AND cxh6>= cxh8 AND CLOSE<OPEN;進MMM:=CLOSE<EMA(CLOSE,5) AND 進QQ;進JJJ:=CLOSE>=EMA(CLOSE,5) AND 進QQ;進JJ:=cxh6>=cxh7 AND cxh6>=cxh8 AND CLOSE>OPEN;進XX:=cxh8>cxh6 AND cxh8>cxh7;進MM:=cxh7>cxh6 AND cxh7>cxh8;量AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));買量:=IF(CLOSE>OPEN,量AA*(HIGH-LOW),IF(CLOSE<OPEN,量AA*((HIGH-OPEN)+ (CLOSE-LOW)),VOL/2));賣量:=IF(CLOSE>OPEN,0-量AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0- 量AA*(HIGH-LOW),0-VOL/2));進出量:買量+賣量,NODRAW;凈量:進出量+賣量,NODRAW;昨日凈量:=REF(凈量,1);凈量比:進出量/凈量,COLORMAGENTA,NODRAW;額:=AMOUNT/100000000,VOLSTICK,COLORFF00FF;額cxh1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));流入億:=IF(CLOSE>OPEN,額cxh1*(HIGH-LOW),IF(CLOSE<OPEN,額cxh1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;流出億:=IF(CLOSE>OPEN,0-額cxh1*((HIGH-CLOSE)+(OPEN- LOW)),IF(CLOSE<OPEN,0-額cxh1*(HIGH-LOW),0-AMOUNT/2))/100000000,COLORMAGENTA,NODRAW;差億:=流入億+流出億,COLORFFFF00,NODRAW;凈:=EMA(EMA(差億,2),2),COLOR00FFFF,NODRAW;WWWcxh99COM:=EMA(凈,2);凈1:=EMA(凈,2);流:=EMA(凈1,7);凈流:3*EMA(凈1+流,2),COLORRED,NODRAW;五日量額比:成交量額/REF(MA(成交量額,5),1),COLORMAGENTA,NODRAW;跌停:=C<=DTPRICE(REF(CLOSE,1),0.097);STICKLINE((底>=0) AND 凈買>=0,0,底,0.6,0),LINETHICK2,COLORYELLOW;STICKLINE(進出量<0 AND 凈買<0,0,底,3.2,0),COLOR006600;STICKLINE(進出量<0 AND 凈買<0,0,底,2.6,0),COLOR008800;STICKLINE(進出量<0 AND 凈買<0,0,底,1.9,0),COLOR00AA00;STICKLINE(進出量<0 AND 凈買<0,0,底,1.1,0),COLOR00CC00;STICKLINE(進出量<0 AND 凈買<0,0,底,0.3,0),COLOR00FF00;STICKLINE(進MMM OR 跌停,0,底,0.0,0),COLORGREEN;STICKLINE(進MMM OR 跌停,0,底,3.1,0),COLORFF0000;STICKLINE(進MMM OR 跌停,0,底,1.9,0),COLORFF0000;STICKLINE(進MMM OR 跌停,0,底,0.1,0),COLORFFFF00;STICKLINE(凈買>=0 AND 進JJ>=1 AND 底<0,0,底,2.3,0 ),COLOR880088;STICKLINE(凈買>=0 AND 進JJ>=1 AND 底<0,0,底,1.6,0 ),COLORAA00AA;STICKLINE(凈買>=0 AND 進JJ>=1 AND 底<0,0,底,0.8,0 ),COLORCC00CC;STICKLINE(凈買>=0 AND 進JJ>=1 AND 底<0,0,底,0.1,0 ),COLOREE00EE;STICKLINE(凈買>=0 AND 底>=0 AND 底>=REF(底,1),0,底,3.2,0),COLOR0000BB;STICKLINE(凈買>=0 AND 底>=0 AND 底>=REF(底,1),0,底,1.3,0),COLOR2233DD;STICKLINE(凈買>=0 AND 底>=0 AND 底>=REF(底,1),0,底,0.3,0),COLOR6677FF;STICKLINE(凈買>=0 AND 底>=0 AND 底>=REF(底,1) AND 凈流>=REF(凈流,1),0,底,0.1,0),COLORYELLOW;STICKLINE((G6>G8 OR (G8<50 AND G3>G6 AND G6>REF(G6,1))) AND 凈買>=0 AND G3>REF(G3,1) AND 底5>REF(底5,1) AND 量,0,底,2.3,0),COLORMAGENTA;AMV1:G3,COLORRED,LINETHICK2;AMV2:SMA(G3,2,1),COLORYELLOW,LINETHICK2;AMV3:SMA(AMV2,2,1),COLORGREEN,LINETHICK2;
?
公式導入教程: 【通達信公式源碼導入方法教程】 【同花順公式源碼導入方法教程】 【大智慧新一代公式源碼導入方法教程】
?
有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友
可聯系技術人員 QQ: 262069696 或微信:cxhjy888 進行 有償收費 編寫!(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關文章
-
沒有相關內容