公式源碼: AA:=MA((2*CLOSE+HIGH+LOW)/4,5); CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 通道A:=AA*N/100; 通道B:=AA*(200-N)/100; 通道C:=(1+M/100)*DD,COLOR6B8E23; 通道D:=(1-M/100)*DD; DRAWBAND(通道C,RGB(100,149,237),通道D,RGB(0,100,0)); DRAWBAND(通道A,RGB( 238,130,238),通道B,RGB(0,100,0)); 通道1:AA*N/100,LINETHICK2; 通道2:AA*(200-N)/100,LINETHICK2; {STICKLINE(通道1-通道2>0,通道1,通道2,1,-1),COLORBLUE;} 通道3:(1+M/100)*DD,COLOR6B8E23,LINETHICK2; 通道4:(1-M/100)*DD,LINETHICK2; {主趨勢線:EMA(EMA(C,10),10),COLORBLUE,LINETHICK2; B:=主趨勢線<REF(主趨勢線,1); IF(B-1,主趨勢線,DRAWNULL)COLORRED,LINETHICK2;} 主趨勢線:EMA(EMA(C,10),10),COLORRED,LINETHICK2; B:=主趨勢線>REF(主趨勢線,1); {IF(B-1,主趨勢線,DRAWNULL)COLORBLUE,LINETHICK2; 操盤線:EMA(EMA(C,5),5),COLORRED,LINETHICK2; Y:=操盤線>REF(操盤線,1); IF(Y-1,操盤線,DRAWNULL)COLORGREEN,LINETHICK2;} ZF:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(DYBLOCK,' '),HYBLOCK),' '),GNBLOCK),' '),FGBLOCK); DRAWTEXT_FIX(ISLASTBAR,0,0,0,ZF),COLORYELLOW; DIF:=EMA(CLOSE,9)-EMA(CLOSE,21); DEA:=EMA(DIF,5); MACD:=(DIF-DEA)*2; 吸:XLPL.NOTEXT吸,NODRAW,COLORLIRED; 拉:XLPL.NOTEXT拉,NODRAW,COLORRED; 派:XLPL.NOTEXT派,NODRAW,COLORGREEN; 落:XLPL.NOTEXT落,NODRAW,COLORWHITE; AAW:=IF(吸!=DRAWNULL,DIF,DRAWNULL),COLORLIRED,LINETHICK2; BBW:=IF(拉!=DRAWNULL,DIF,DRAWNULL),COLORRED,LINETHICK2; CCW:=IF(派!=DRAWNULL,DIF,DRAWNULL),COLORGREEN,LINETHICK2; DDW:=IF(落!=DRAWNULL,DIF,DRAWNULL),COLORWHITE,LINETHICK2; STICKLINE(AAW,LOW,HIGH,0,0),COLORLIRED; STICKLINE(AAW,C,O,3,1),COLORLIRED; STICKLINE(BBW,LOW,HIGH,0,0),COLORRED; STICKLINE(BBW ,C,O,3,1),COLORRED; STICKLINE(CCW,LOW,HIGH,0,0),COLORGREEN; STICKLINE(CCW,C,O,3,1)COLORGREEN; STICKLINE(DDW,LOW,HIGH,0,0),COLORWHITE; STICKLINE(DDW,C,O,3,1),COLORWHITE; DRAWTEXT('KDJ.J'-REF('KDJ.J',1)>30 AND C/REF(C,1)>1.043 AND 'MACD.MACD'>0 AND EXPMA(C,12)>EXPMA(C,50),L*0.995,'起爆'),COLORWHITE; V1:=EMA(CLOSE,5); V2:=EMA(EMA(CLOSE,90)*1.01,10); DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00; VAR1:=LLV(LOW,21); VAR2:=HHV(HIGH,21); AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5); AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13); AB:=CROSS(AK1,AK); DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窩'),COLORYELLOW; AA1:=AMOUNT/V; BB1:=L<AA1*0.9; CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L<MA(C,5)*0.921; EE1:=V<MA(V,5)*1.5; 老鼠倉:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠倉,L*0.99,'老鼠倉'),COLOR0099FF; VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0); VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0); DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大膽搏 '),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加倉 '),COLOR00FFFF; A1AA:=9; A2AA:=(REF(CLOSE,A1AA+1)<CLOSE); DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心變盤'),COLORFFFFFF; VAR6:=REF(C,1); VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100; DRAWTEXT(CROSS(82,VAR7),H*1.01,'逃頂'),COLORYELLOW; 通達(dá)信手機版公式導(dǎo)入方法 一、進(jìn)入公式編輯器界面 1,、點擊進(jìn)入公式編輯器 2,、點擊指標(biāo)編輯,選擇新建指標(biāo) 二,、按照上面所發(fā)布的指標(biāo)公式源碼,,進(jìn)行復(fù)制填寫 1、填寫公式名稱,、描述,、指標(biāo)說明,填好后點左上角公式按鍵 2,、然后點公式,,對公式源碼進(jìn)行復(fù)制黏貼 3、填好后,,點擊測試公式,,通過后點擊保存,公式編輯就結(jié)束了 三,、進(jìn)入主界面選擇公式,即可使用,。 1,、點擊進(jìn)入指標(biāo)選擇 2、在指標(biāo)選擇中的用戶指標(biāo)欄,,根據(jù)所需選擇自編公式 |
|
來自: 常熟老李jlr5mr > 《薛斯通道》