短线布局,优化指标 公式 源码[通达信公式]
指标公式代码分析及使用参考建议:
源码:
短线布局: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;{程序化久久公式网 www.cxh99.com}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或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容