{多空轉(zhuǎn)折★【主圖指標(biāo)】} 半年線【120】紅:=MA(CLOSE,120)COLOR0099FF,DOTLINE; {波段生命線} 全年線【250】藍(lán):=MA(CLOSE,250)COLORMAGENTA,DOTLINE; {線上做票,線下觀望。} 紅藍(lán)色塊:DRAWBAND(半年線【120】紅,RGB(58,0,0),全年線【250】藍(lán),RGB(0,0,88));{255,20,160 // 0,0,228}; 振幅:=REF(DYNAINFO(13),1); 半年線標(biāo)識:DRAWTEXT(ISLASTBAR ,半年線【120】紅,' ● 半年'),COLOR0099FF; 全年線標(biāo)識:DRAWTEXT(ISLASTBAR ,全年線【250】藍(lán),' ● 全年'),COLORMAGENTA; MTR:=MAX(MAX((H-L),ABS(REF(C,1)-H)),ABS(REF(C,1)-L))NODRAW,COLORRED; {當(dāng)天真實波動幅度} ATR:=MA(MTR,20)NODRAW,COLORGREEN; ATR_五日均:=MA(C,5),COLORRED,LINETHICK1; 壹倍【上】:=ATR_五日均+ATR,DOTLINE,COLORFF901E,NODRAW; {1倍ATR上通道} 貳倍【上】:=ATR_五日均+ATR*2,DOTLINE,COLOR0099FF,NODRAW; {2倍ATR上通道} 叁倍【上】:=ATR_五日均+ATR*3,COLORMAGENTA,NODRAW; {3倍ATR上通道} 壹倍【下】:=ATR_五日均-ATR,DOTLINE,COLORFF901E,NODRAW; {1倍ATR下通道} 貳倍【下】:=ATR_五日均-ATR*2,DOTLINE,COLORYELLOW,NODRAW; {2倍ATR下通道} 叁倍【下】:=ATR_五日均-ATR*3,COLORMAGENTA,NODRAW; {3倍ATR下通道}; 上一區(qū):=DRAWBAND(壹倍【上】,RGB(20,20,20),ATR_五日均,RGB(20,20,20)); 上二區(qū):=DRAWBAND(壹倍【上】,RGB(25,25,25),貳倍【上】,RGB(25,25,25)); 上三區(qū):=DRAWBAND(貳倍【上】,RGB(30,30,30),叁倍【上】,RGB(30,30,30)); 下一區(qū):=DRAWBAND(壹倍【下】,RGB(20,20,20),ATR_五日均,RGB(20,20,20)); 下二區(qū):=DRAWBAND(壹倍【下】,RGB(25,25,25),貳倍【下】,RGB(25,25,25)); 下三區(qū):=DRAWBAND(貳倍【下】,RGB(30,30,30),叁倍【下】,RGB(30,30,30)); 壹:=ATR_五日均+ATR,COLORB3886E,DOTLINE; {ATR_五日均+ATR,COLORB3886E,DOTLINE; } 貳:=ATR_五日均+ATR*2,COLORB3886E,DOTLINE; 叁:=ATR_五日均+ATR*3,COLORB3881E,DOTLINE; 肆:=ATR_五日均-ATR,COLORB3886E,DOTLINE; 伍:=ATR_五日均-ATR*2,COLORB3886E,DOTLINE; 陸:=ATR_五日均-ATR*3,COLORB3881E,DOTLINE; 攻擊線【05】:MA(CLOSE,05)COLORRED; {壓力與支撐 斜率 站穩(wěn)抓牢不破不下車。} 操盤線【10】:MA(CLOSE,10)COLORGREEN; {短線操盤手的操盤線 助漲助跌線 短線強弱線 短線操盤離場點 } 生命線【20】:=MA(CLOSE,20)COLORRED; {真正的月線 波段生命線} 趨勢線【30】:=MA(CLOSE,30)COLORLICYAN; {趨勢波段操盤線} 決策線【60】:MA(CLOSE,60)COLORFF901E,LINETHICK1,NODRAW; {牛熊分界線 線上做票,線下觀望。} 百日線【100】:=MA(CLOSE,100)COLORWHITE,LINETHICK1; {100日多空線} 多空線【120】:MA(CLOSE,120)COLOR0099FF,DOTLINE; {中長線的多空分界線} 牛熊線【250】:MA(CLOSE,250)COLORMAGENTA,DOTLINE; {中長線的牛熊分界線} 走牛:=IF(牛熊線【250】>=REF(牛熊線【250】,1),牛熊線【250】,DRAWNULL)COLORMAGENTA,DOTLINE; 走熊:=IF(牛熊線【250】<REF(牛熊線【250】,1),牛熊線【250】,DRAWNULL)COLORMAGENTA,DOTLINE; 平均成本:=COST(50)COLOR0099FF,NODRAW; 成本多頭:=IF(平均成本>=REF(平均成本,1),平均成本,DRAWNULL)COLOR005CFF,LINETHICK1; 成本空頭:=IF(平均成本<REF(平均成本,1),平均成本,DRAWNULL)COLOR00FF00,LINETHICK1; A1:=IF(C>REF(EXPMEMA(H,5),1),1,0); A2:=IF(C<REF(EXPMEMA(L,5),1),-1,0); A3:=A1+A2; A4:=IF(A3=0,REF(A3,BARSLAST(NOT(A3=0))),A3); 轉(zhuǎn)折操盤:IF(A4=-1,MA(HIGH,5),MA(LOW,5)),COLORYELLOW,LINETHICK3; {COLORFF901E} 轉(zhuǎn)折操盤向上:DRAWICON(LONGCROSS(轉(zhuǎn)折操盤,REF(轉(zhuǎn)折操盤,1),7),轉(zhuǎn)折操盤-0.5,1); X01:=REF(CLOSE,1); X02:=(SMA(MAX(CLOSE-X01,0),13,1))/(SMA(ABS(CLOSE-X01),13,1))*100; X03:=(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-50)*1.032+50; X04:=(X02+X03)/2;{X4:=(X2+X3)/2;} 奇妙:CLOSE+(X04/50-1)*(MA(CLOSE,30)/20)*2,COLORRED,LINETHICK2; {原名——奇妙線 COLORFF901E COLORCYAN} 五日多頭:=IF(攻擊線【05】>=REF(攻擊線【05】,1),攻擊線【05】,DRAWNULL)COLOR0099FF,LINETHICK3; 五日空頭:=IF(攻擊線【05】<REF(攻擊線【05】,1),攻擊線【05】,DRAWNULL)COLORCYAN,LINETHICK2; 二十多頭:=IF(生命線【20】>=REF(生命線【20】,1),生命線【20】,DRAWNULL)COLORMAGENTA,LINETHICK2; 二十空頭:=IF(生命線【20】<REF(生命線【20】,1),生命線【20】,DRAWNULL)COLORBLUE,LINETHICK2; 奇妙多頭攻擊:=IF(奇妙>=REF(奇妙,1),奇妙,DRAWNULL)COLORRED,LINETHICK2; {原名——奇妙線多頭} 奇妙空頭攻擊:=IF(奇妙<REF(奇妙,1),奇妙,DRAWNULL)COLORB3881E,LINETHICK1; {原名——奇妙線空頭} 多頭:IF(奇妙>=REF(OPEN,0),奇妙,DRAWNULL)COLORRED,LINETHICK2; 空頭:IF(奇妙<REF(OPEN,0),奇妙,DRAWNULL)COLORB3881E,LINETHICK3; {奇妙空頭 COLORB48246} 總家數(shù):=DYNAINFO(60)+DYNAINFO(61),COLORYELLOW,NODRAW; AAA1:=STRCAT('滬深上漲家數(shù): ',CON2STR(DYNAINFO(60),0)); AAA2:=STRCAT('滬深下跌家數(shù): ',CON2STR(DYNAINFO(61),0)); 標(biāo)識001:DRAWTEXT_FIX(ISLASTBAR,0.707,0.01,0,AAA1),COLORRED; 標(biāo)識002:DRAWTEXT_FIX(ISLASTBAR,0.778,0.01,0,AAA2),COLORGREEN; 標(biāo)識003:=DRAWKLINE("880005$C","880005$C","880005$C","880005$C"); 數(shù)字文字:DRAWTEXT_FIX(C!=1,0.854,0.01,0,STRCAT('漲跌總家數(shù):',STRCAT(CON2STR(總家數(shù),0),' ~'))),COLORADDEEC; 單筆可買股:=50000/C/100,COLORLICYAN,NODRAW; 可買股數(shù):DRAWTEXT_FIX(C!=1,0.625,0.98,0 ,STRCAT(' ◆ 單筆可買股數(shù):',STRCAT(CON2STR(單筆可買股,1),' 手~【1筆=5萬元 1手=100股】')))COLORADDEEC; {名稱代碼所屬行業(yè)及概念板塊} 所屬行業(yè):DRAWTEXT_FIX(1,0.02,0.05,0,'所屬行業(yè):'),COLORFF6000; 行業(yè)標(biāo)識:DRAWTEXT_FIX(1,0.059,0.05,0,HYBLOCK),COLORRED; 地域標(biāo)識:DRAWTEXT_FIX(1,0.100,0.05,0,DYBLOCK),COLORGREEN; 名稱代碼:=STRCAT(STRCAT(STRCAT(STRCAT('名稱: ',STKNAME),' 代碼: '),CODE),' ' ); 概念板塊:=STRCAT('概念板塊: ',GNBLOCK); 名稱代碼標(biāo)識:DRAWTEXT_FIX(ISLASTBAR,0.14,0.05,0,STRCAT(名稱代碼,概念板塊)),COLORLIBLUE; 格價差:=REF(伍,0)-REF(陸,0); 價差比:=(REF(伍,0)-REF(陸,0))/REF(陸,0)*100; 每格價差:=DRAWTEXT_FIX(C!=1,0.860,0.920,0,STRCAT('★ 每格價差:',STRCAT(CON2STR(格價差,2),' 元~')))COLORADDEEC; 價差比例:=DRAWTEXT_FIX(C!=1,0.860,0.960,0,STRCAT('★ 價差比例:',STRCAT(CON2STR(價差比,2),' %~')))COLORADDEEC; 振幅【%】:DRAWTEXT_FIX(C!=1,0.531,0.98,0 ,STRCAT(' ◆◆◆ 振幅:',STRCAT(CON2STR(振幅*100,2),' % ')))COLORBROWN; {綠色打底K線} 標(biāo)識1:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORGREEN; 標(biāo)識2:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORGREEN; 標(biāo)識3:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORGREEN; 標(biāo)識4:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORGREEN; 標(biāo)識5:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORGREEN; 標(biāo)識6:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORGREEN; 標(biāo)識7:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORGREEN; 標(biāo)識8:STICKLINE(CLOSE< 轉(zhuǎn)折操盤 AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORGREEN; 標(biāo)識9:STICKLINE(CLOSE< 轉(zhuǎn)折操盤 AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORGREEN; 標(biāo)識10:STICKLINE(CLOSE< 轉(zhuǎn)折操盤 AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORGREEN; 標(biāo)識11:STICKLINE(CLOSE< 轉(zhuǎn)折操盤 AND OPEN<CLOSE,OPEN,LOW,0,0),COLORGREEN; 標(biāo)識12:STICKLINE(CLOSE< 轉(zhuǎn)折操盤 AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORGREEN; {紅K線系列} 標(biāo)識13:STICKLINE(CLOSE> 轉(zhuǎn)折操盤 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標(biāo)識14:STICKLINE(CLOSE> 轉(zhuǎn)折操盤 AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED; 標(biāo)識15:STICKLINE(CLOSE> 轉(zhuǎn)折操盤 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標(biāo)識16:STICKLINE(CLOSE> 轉(zhuǎn)折操盤 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標(biāo)識17:STICKLINE(CLOSE> 轉(zhuǎn)折操盤 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; 標(biāo)識18:STICKLINE(CLOSE> 轉(zhuǎn)折操盤 AND 轉(zhuǎn)折操盤>REF( 轉(zhuǎn)折操盤,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標(biāo)識19:STICKLINE(CLOSE> 轉(zhuǎn)折操盤 AND 轉(zhuǎn)折操盤>REF( 轉(zhuǎn)折操盤,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED; 標(biāo)識20:STICKLINE(CLOSE> 轉(zhuǎn)折操盤 AND 轉(zhuǎn)折操盤>REF( 轉(zhuǎn)折操盤,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標(biāo)識21:STICKLINE(CLOSE> 轉(zhuǎn)折操盤 AND 轉(zhuǎn)折操盤>REF( 轉(zhuǎn)折操盤,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標(biāo)識22:STICKLINE(CLOSE> 轉(zhuǎn)折操盤 AND 轉(zhuǎn)折操盤>REF( 轉(zhuǎn)折操盤,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; 大連電瓷:=(C-8.05)/8.05*100,COLORLICYAN,NODRAW; 電瓷漲幅:=DRAWTEXT_FIX(C!=1,0.268,0.86,0 ,STRCAT(' ● 大連電瓷波段上漲的第一根陽線收盤價距今的漲幅:',STRCAT(CON2STR(大連電瓷,2), ' %~ 【需對應(yīng)上個股看】.'))),COLOR008080; 賽輪輪胎:=(C-12.54)/12.54*100,COLORLICYAN,NODRAW; 輪胎漲幅:=DRAWTEXT_FIX(C!=1,0.268,0.91,0 ,STRCAT(' ● 賽輪輪胎波段上漲的第一根陽線收盤價距今的漲幅:',STRCAT(CON2STR(賽輪輪胎,2), ' %~ 【需對應(yīng)上個股看】.'))),COLOR008080; 柯力傳感:=(C-25.85)/25.85*100,COLORLICYAN,NODRAW; 傳感漲幅:=DRAWTEXT_FIX(C!=1,0.268,0.96,0 ,STRCAT(' ● 柯力傳感波段上漲的第一根陽線收盤價距今的漲幅:',STRCAT(CON2STR(柯力傳感,2), ' %~ 【需對應(yīng)上個股看】.'))),COLOR008080; 操盤要義1:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.91,0,' ★ 轉(zhuǎn)折線即是操盤線。線上做多,線下做空。 ')COLORRED; 操盤要義2:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.18,0.91,0 ,' ★ 操盤的底線——年線下方不做票。 ')COLORGREEN; 操盤要義3:=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.960,0 ,' ★ 年線上方翻紅重倉。年線下方翻紅輕倉。 ')COLORRED; 操盤要義4:=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.165,0.960,0 ,' ◆ K線 翻綠時段一律空倉。 ')COLORGREEN; 實盤:=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.06,0,' ★ 交易系統(tǒng)設(shè)置【24年10月8日】 ★★★ 止損:股價跌破買股當(dāng)日最低價 (或出現(xiàn)陰線) 即止損。 ◆ 止盈:股價在高位出現(xiàn)藍(lán)K線或紫紅色數(shù)字,而個股漲幅已超15%以上且不再創(chuàng)新高時,隨時可以止盈。 ')COLORFFBF00; 交易:=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.11,0,' ★ 風(fēng)險收益比:>= 1 : 3 ◆ 勝率:>= 60 % ◆ 單筆交易單位:3萬元(單筆可買股數(shù)看下方) ◆ 輕倉標(biāo)配:1個單筆交易單位。 ◆ 重倉標(biāo)配: 2-10個單筆交易單位【看勢下單】。 ')COLORFFBF00; 戰(zhàn)略戰(zhàn)術(shù):=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.16,0,' ★ 轉(zhuǎn)折線即是決策線、操盤線,亦是生命線。股價站上轉(zhuǎn)折線即可出手——該出手時就出手。股價跌破了轉(zhuǎn)折線即當(dāng)空倉。這是必須遵守的鐵律。截斷虧損,讓利潤奔跑! 遵守這條鐵律,定能決勝千里。 ')COLORFFBF00; 二十趨勢:=MA(C,20); 數(shù)值A(chǔ):DRAWNUMBER(FILTERX(HIGH>REF(貳倍【上】,1)AND HHV(H,20),3),REF(HIGH,0)*1.060,REF(HIGH,0))COLORRED; 數(shù)值B:DRAWNUMBER(FILTERX(LOW<REF(貳倍【下】,1)AND LLV(L,20),3)AND 二十趨勢>=REF(二十趨勢,1),REF(LOW,0)*0.990,REF(LOW,0))COLORLIGREEN; {數(shù)值A(chǔ): 最高價大于貳倍【上】,并且,是20日內(nèi)最高價的最高值。 數(shù)值B: 最低價小于貳倍【下】,并且,是20日內(nèi)最低價的最低值,并且,20日均上行。} 數(shù)值C:DRAWNUMBER(FILTERX(HIGH>REF(叁倍【上】,1)AND HHV(H,20),3),REF(HIGH,0)*1.100,REF(HIGH,0))COLORMAGENTA; 數(shù)值D:DRAWNUMBER(FILTERX(LOW<REF(叁倍【下】,1)AND LLV(L,20)AND 二十趨勢>=REF(二十趨勢,1),3),REF(LOW,0)*0.908,REF(LOW,0))COLORCYAN; {數(shù)值C: 最高價大于叁倍【上】,并且,是20日內(nèi)最高價的最高值。 數(shù)值D: 最低價小于叁倍【下】,并且,是20日內(nèi)最低價的最低值,并且,20日均上行。} 高位標(biāo)識:STICKLINE(HIGH>叁倍【上】 AND CLOSE>=OPEN,CLOSE,CLOSE-0.03,3,0),COLORFF6600; 股價上穿轉(zhuǎn)折線:=CROSS(C,轉(zhuǎn)折操盤); 選股:DRAWICON(FILTER(CROSS(CLOSE,轉(zhuǎn)折操盤)AND 多頭 OR 股價上穿轉(zhuǎn)折線,10),L*0.99,9); 最高價最高值:=HHV(H,100); 最低價最低值:=LLV(L,100); 高價差:=(C-最高價最高值)/最高價最高值*100; 低價差:=(C-最低價最低值)/最低價最低值*100; 百日最高價:DRAWTEXT_FIX(C!=1,0.340,0.910,0,STRCAT(' ★ 百日內(nèi)最高價的最高值:',STRCAT(CON2STR(最高價最高值,2),' 元 ')))COLORMAGENTA; 百日最低價:DRAWTEXT_FIX(C!=1,0.485,0.910,0,STRCAT(' ★ 百日內(nèi)最低價的最低值:',STRCAT(CON2STR(最低價最低值,2),' 元 ')))COLORCYAN; 高低價差值:=最高價最高值-最低價最低值,COLORADDEEC; 高低價差:DRAWTEXT_FIX(C!=1,0.625,0.910,0,STRCAT(' ★ 百日內(nèi)最高價與最低價的差值:',STRCAT(CON2STR(高低價差值,2),' 元 ')))COLORYELLOW; 高價差比例:DRAWTEXT_FIX(C!=1,0.02,0.960,0,STRCAT(' ★ 百日內(nèi)從最高點跌下來的跌幅:',STRCAT(CON2STR(高價差,2),' % ')))COLORADDEEC; 低價差比例:DRAWTEXT_FIX(C!=1,0.18,0.960,0,STRCAT(' ★ 百日內(nèi)從最低點漲上來的漲幅:',STRCAT(CON2STR(低價差,2),' % ')))COLORADDEEC; 中間價:=(最高價最高值-最低價最低值)/2+最低價最低值; 今日中間價:=REF(中間價,1),COLORADDEEC; 高低價的中間價:DRAWTEXT_FIX(C!=1,0.34,0.960,0,STRCAT(' ★ 百日內(nèi)最高價至最低價的中間價:',STRCAT(CON2STR(中間價,2),' 元~')))COLORADDEEC; {清倉:1.655*MA(FORCAST(CLOSE,2),40),COLORBLUE,DOTLINE; 出貨:1.356*MA(FORCAST(CLOSE,2),40),COLORWHITE,DOTLINE; 低吸:0.817*MA(FORCAST(CLOSE,2),40),COLOR0099FF,DOTLINE; 滿倉:0.7178*MA(FORCAST(CLOSE,2),40),COLORYELLOW,DOTLINE; 強勢:1.1566*MA(FORCAST(CLOSE,2),40),COLORMAGENTA,DOTLINE; 生命線:MA(CLOSE,55)COLORRED,DOTLINE; VALUE:=(2*C+H+L+O)/5;}; 中國核電:REFDATE(CLOSE,DATE),DOTLINE,COLORCYAN; |
|
來自: 知博陋室 > 《指標(biāo)公式》