導航:首頁 > 源碼編譯 > 左側戰法源碼

左側戰法源碼

發布時間:2024-04-10 01:02:14

1. 烽火戰法指標公式

····TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
虛擬量:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),虛擬量,0,-1,-1),COLORFFFFFF;
成交量:VOL,VOLSTICK;
V5:MA(V,5),COLORWHITE;
V10:MA(V,10),COLORYELLOW;
V20:MA(V,20),COLORMAGENTA;
V120:MA(V,120),POINTDOT;
{20日內高量}
M:=10;
HDX:=FILTER(BACKSET(FILTER(REF(V,M)=HHV(V,2*M+1),M),M+1),M);
AAX:=REF(V,BARSLAST(HDX));
T1AX:=BARSLAST(HDX);
STICKLINE(T1AX,AAX,AAX,9,0),COLORWHITE;
二十量高點:IF(T1AX,AAX,AAX),COLORWHITE,NODRAW;
{30日內高量}
P:=15;
HDZ:=FILTER(BACKSET(FILTER(REF(V,P)=HHV(V,2*P+1),P),P+1),P);
AAZ:=REF(V,BARSLAST(HDZ));
T1AZ:=BARSLAST(HDZ);
STICKLINE(T1AZ,AAZ,AAZ,9,0),COLORF00FF0;
三十量高點:IF(T1AZ,AAZ,AAZ),COLORF00FF0,NODRAW;
{60日內高量}
MP:=30;
HDH:=FILTER(BACKSET(FILTER(REF(V,MP)=HHV(V,2*MP+1),MP),MP+1),MP);
AAH:=REF(V,BARSLAST(HDH));
T1AH:=BARSLAST(HDH);
STICKLINE(T1AH,AAH,AAH,9,0),COLOR0099FF;
六十量高點:IF(T1AH,AAH,AAH),COLOR0099FF,NODRAW;
量60:=IF(VOL>REF(HHV(VOL,60),1),222,0),COLORFF3399;
DRAWTEXT(CROSS(量60,1),六十量高點,'超量'),COLORGREEN;
{黃金柱}
綠低量:=13;
藍低量:=55;
灰低量:=100;
H_L:=0.1*CONST(HHV(VOL,240));
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模擬量}
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,1,-1),COLOR00C0C0;
量:VOL,VOLSTICK;
換手: VOL*10000/FINANCE(7),NODRAW; {DYNAINFO(37)*100}
換10T: SUM(換手,10),NODRAW;
倍數:=1.9;
倍量: VOL>=REF(V,1)*倍數 AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW;
倍縮: REF(V,1)>=VOL*倍數,COLORMAGENTA,NODRAW;
平量: RANGE(V/REF(V,1),0.97,1.03) AND BARSCOUNT(V)>=2,COLORWHITE,NODRAW;
低量10: VOL=LLV(VOL,綠低量) AND BARSCOUNT(V)>=綠低量,COLORGREEN,NODRAW;
低量50: VOL=LLV(VOL,藍低量) AND BARSCOUNT(V)>=藍低量,COLORBLUE,NODRAW;
地量: VOL=LLV(VOL,灰低量) AND BARSCOUNT(V)>=灰低量,COLORGRAY,NODRAW;
V1:=VOL*0.9;{圖標位置}
V2:=VOL*0.8;
STICKLINE(倍量, 0,V1,1,0),COLORYELLOW;
STICKLINE(平量,0,V1,1,0),COLORWHITE;
STICKLINE(低量10,0,V2,1,0),COLORLIGREEN;
STICKLINE(低量50,0,V2,1,0),COLORBLUE;
STICKLINE(地量,0,V2,1,0),COLORGRAY;
STICKLINE(倍縮,0,V*0.45,1,0),COLORMAGENTA;
STICKLINE(C<O AND C>REF(C,1),0,V,0,0),COLORRED;{假陰柱}
真陽或假陰:=C>O OR C>REF(C,1);
收陽:= REF(真陽或假陰,3);
倍量1:=REF(倍量,3);
高量:=REF(V,3)>=HHV(V,7);
三日不破:= LLV(C,3)>=REF(L,3);
價升:=COUNT(C>=REF(C,1),3)=3;{收盤價逐升}
量縮:=COUNT(V<=REF(V,1),3)=3;
連陽:= COUNT(真陽或假陰,3)=3;
倍量將軍柱:= 倍量1 AND 三日不破 AND 收陽;
高量將軍柱:= 高量 AND 三日不破 AND 收陽;
將軍柱:= 倍量將軍柱 OR 高量將軍柱;
黃金柱:= 將軍柱 AND 價升 AND 量縮 AND 連陽 ;
STICKLINE(黃金柱,0.3*V,0.7*V,1,0),COLORRED; {紅柱}
DRAWICON(黃金柱,V*1.5,1);
V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)>=100;
百日地量群:=COUNT(V100,5)>=3;
DRAWTEXT(FILTER(百日地量群,4),V+3*H_L,'地量群'),COLORGRAY;
長陰短柱:=C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9;
DRAWTEXT(長陰短柱 ,V+1.6*H_L,'!'),COLORLICYAN;
{信息}
虛與量柱比:=虛擬量/六十量高點,NODRAW;
DRAWTEXT_FIX(1,0.00,0.00,0,STRCAT('虛擬與量柱比:',CON2STR(虛與量柱比,2))),COLOR0099FF;
本虛擬實比:=虛擬量/V,NODRAW;
DRAWTEXT_FIX(1,0.00,0.18,0,STRCAT('虛擬與實量比:',CON2STR(本虛擬實比,2))),COLORMAGENTA;
虛昨量比:=虛擬量/REF(V,1),NODRAW;
DRAWTEXT_FIX(1,0.00,0.36,0,STRCAT('虛擬與昨量比:',CON2STR(虛昨量比,2))),COLORMAGENTA;
量比:=DYNAINFO(17);
DRAWTEXT_FIX(1,0.35,0.00,0,STRCAT('量比:',CON2STR(量比,2))),COLORYELLOW;
{漲幅:=(C-REF(C,1))/REF(C,1)*100;
DRAWTEXT_FIX(1,0.21,0.34,0,STRCAT('漲幅:',CON2STR(漲幅,2))),COLORYELLOW;}
量填滿:=V/MA(VOL,5);
DRAWTEXT_FIX(1,0.35,0.18,0,STRCAT('量填滿:',CON2STR(量填滿,2))),COLORWHITE;
實昨量比:=V/REF(V,1),NODRAW;
DRAWTEXT_FIX(1,0.35,0.36,0,STRCAT('實量與昨量比:',CON2STR(實昨量比,2))),COLORCYAN;
量能飽和:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),11)*100,COLORLIMAGENTA,NODRAW;
VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主動買盤:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2)),COLORYELLOW;
{STICKLINE(量能飽和=100,主動買盤/8000,0,2,0),COLORMAGENTA;}
百日低量柱:=MIN(LLV( VOL,99),VOL)=VOL;
DRAWTEXT(百日低量柱,VOL*1.06,'百日低'),COLORYELLOW;
DRAWICON(V=LLV(V,99),V5,26);
總家數:=INDEXADV+INDEXDEC,NODRAW;
漲家數:=INDEXADV,NODRAW;
跌家數:=INDEXDEC,NODRAW;
差數:=INDEXADV-INDEXDEC,NODRAW;
DRAWTEXT_FIX(1,0.55,0.00,0,STRCAT('【漲家數】:',CON2STR(漲家數,0))),COLORMAGENTA;
DRAWTEXT_FIX(1,0.55,0.18,0,STRCAT('【跌家數】:',CON2STR(跌家數,0))),COLORGREEN;
DRAWTEXT_FIX(1,0.75,0.00,0,STRCAT('【總家數】:',CON2STR(總家數,0))),COLORYELLOW;
DRAWTEXT_FIX(1,0.75,0.18,0,STRCAT('【差 數】:',CON2STR(差數,0))),COLORGREEN;

2. 煩請老師重新編個寧俊明135戰法:「紅杏出牆」公式

{BARSLAST}---不是未來函數

3. 2560戰法選股公式怎麼選回踩

{2560戰法主圖}

MA5:MA(C,5),LINETHICK2;

MA10:MA(C,10);

MA25:MA(C,25),LINETHICK2;

MA60:MA(C,60);

MA120:MA(C,120);

MA250:MA(C,250);

IF(MA25<REF(MA25,1),MA25,DRAWNULL),COLORGREEN, LINETHICK2;

PP1:=H>=MA(C,5)*1.08;

PP2:=L*1.2<=MA(C,25);

DRAWICON(PP1,H*1.02,15);

DRAWICON(PP2,L*0.97,26);

STICKLINE(CROSS(MA(C,5),MA(C,25)),O,C,1,0),COLORYELLOW;

DRAWICON((MA(C,4)*4+MA(C,25))/5>=MA(C,25) AND MA(C,5)<MA(C,25),L*0.97,1);

=================================

{使用的2560戰法十分簡單:25日均線堅決向上,5日均線上穿或回踩25日均線時,成交量5均量大於60均量就是介入機會,最好此時出現縮量小星線過渡:};

XG:COUNT(MA(C,25)>REF(MA(C,25),1),5)>=1 AND (CROSS(MA(C,5),MA(C,25)) OR L<MA(C,25) AND C>MA(C,25)) AND MA(V,5)>MA(V,60) AND V/REF(V,1)<1.2 AND MIN(C,O)-L>ABS(O-C)*2.5;

4. 老師 我的系統是通達信,下面是二選股公示源碼

EMA30:EMA(C,30),colorwhite,LINETHICK2;
EMA60:EMA(C,60),COLORFF00FF;
EMA90:EMA(C,90),coloryellow;
EMA120:EMA(C,120),COLORFFCC66;
EMA250:EMA(C,250),colorblue;
ss:=CROSS(EMA30,EMA60) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA30,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA60,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA30,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(EMA30,EMA120);
{DRAWICON(SS,L-0.04,1);}
DD:=CROSS(EMA60,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA60,EMA250) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA90,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(EMA60,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(EMA30,EMA250);
DD OR SS;

5. 贏在起漲點戰法選股公式

公式源代碼如下

CROSS(EXPMA(C,12),EXPMA(C,50)) AND O>C AND CROSS(EXPMA(C,50),L) AND C>EXPMA(C,50)

所有的指標不是萬能的,公式篩選的成功率也跟大盤的強弱有關,弱勢行情下的篩選准確率肯定也要打折扣,但是強勢情況下,篩選就非常有必要了。

閱讀全文

與左側戰法源碼相關的資料

熱點內容
linux內存子系統 瀏覽:968
加密思維幣 瀏覽:688
魅族訪客文件夾 瀏覽:50
添加的文件夾怎麼找 瀏覽:615
程序員涉黃 瀏覽:698
maven編譯resources下的js 瀏覽:519
ubuntu文件移動命令 瀏覽:227
安卓i怎麼查找蘋果手機 瀏覽:949
雲伺服器宕機概率 瀏覽:231
在線買葯用什麼app知乎 瀏覽:813
ubuntu解壓xz文件 瀏覽:674
宏傑加密時電腦關機 瀏覽:388
自己寫單片機編譯器 瀏覽:599
單片機按鍵閃爍 瀏覽:381
為什麼icloud總是顯連接伺服器失敗 瀏覽:890
如何設置域控伺服器 瀏覽:740
想在上海租房子什麼app好 瀏覽:186
編譯程序各部分是必不可少的嗎 瀏覽:887
編程不超過十行 瀏覽:765
數電編譯器的作用 瀏覽:339