歐歐 歐歐量化 2023-09-08 08:01 發(fā)表于廣西
一、指標(biāo)說明:主圖畫線區(qū)間表示上升(下降)趨勢的振幅,方便觀察手中個股上升 下降,了解目前股價處于趨勢的什么位置。 二、主圖公式如下: DRAWTEXT_FIX(1,0.005,0,0,'所屬風(fēng)格:'),COLOR80FFFF;DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLOR80FFFF;DRAWTEXT_FIX(1,0.005,0.05,0,'所屬概念:'),COLORMAGENTA;DRAWTEXT_FIX(1,0.06,0.05,0,GNBLOCK),COLOR80FFFF;CAT2:=CONST(CAT)>CONST(CAT1);CAT3:=CONST(CAT)<CONST(CAT1);CAT5:=(G-CAT4)*0.218+CAT4;CAT6:=(G-CAT5)*0.382+CAT5;DRAWLINE(CAT3 AND CURRBARSCOUNT=CONST(CAT1)+1,L,CAT3 AND CURRBARSCOUNT=CONST(CAT)+1,H,0),COLOR80FFFF,LINETHICK3;DRAWLINE(CAT2 AND CURRBARSCOUNT=CONST(CAT)+1,H,CAT2 AND CURRBARSCOUNT=CONST(CAT1)+1,L,0),COLORGREEN,LINETHICK3;STICKLINE(CAT3 AND CURRBARSCOUNT=CONST(CAT)+1,H,CAT4,0,-1),COLORLIGRAY;DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公眾號:歐歐量化'),COLORRED;DRAWLINE(CAT3 AND CURRBARSCOUNT=CONST(CAT)+1,CAT4,CAT3 AND ISLASTBAR,CAT4,0),COLORLIGRAY,DOTLINE;DRAWLINE(CAT3 AND CURRBARSCOUNT=CONST(CAT)+1,CAT5,CAT3 AND ISLASTBAR,CAT5,0),COLORLIGRAY,DOTLINE;DRAWLINE(CAT3 AND CURRBARSCOUNT=CONST(CAT)+1,CAT6,CAT3 AND ISLASTBAR,CAT6,0),COLORLIGRAY,DOTLINE;STICKLINE(CAT2 AND CURRBARSCOUNT=CONST(CAT1)+1,L,CAT7,0,-1),COLORLIGREEN;DRAWLINE(CAT2 AND CURRBARSCOUNT=CONST(CAT1)+1,CAT7,CAT2 AND ISLASTBAR,CAT7,0),COLORLIGREEN,DOTLINE;DRAWLINE(CAT2 AND CURRBARSCOUNT=CONST(CAT1)+1,CAT8,CAT2 AND ISLASTBAR,CAT8,0),COLORLIGREEN,DOTLINE;DRAWLINE(CAT2 AND CURRBARSCOUNT=CONST(CAT1)+1,CAT9,CAT2 AND ISLASTBAR,CAT9,0),COLORLIGREEN,DOTLINE;A:=CAT3 AND CURRBARSCOUNT=CONST(CAT)+15;B:=CAT3 AND CURRBARSCOUNT=CONST(CAT)+3;A1:=CAT2 AND CURRBARSCOUNT=CONST(CAT);B1:=CAT2 AND CURRBARSCOUNT=CONST(CAT1)+3;DRAWTEXT(A,G*0.98,VARCAT(VARCAT('本輪區(qū)間振幅:',VAR2STR((G-D)/D*100,2)),'%,')),COLOR80FFFF;DRAWNUMBER(B,CAT4,CAT4),COLOR80FFFF;DRAWNUMBER(B,CAT5,CAT5),COLOR80FFFF;DRAWNUMBER(B,CAT6,CAT6),COLOR80FFFF;DRAWTEXT(A1,G*0.98,VARCAT(VARCAT('本輪區(qū)間振幅:',VAR2STR((G-D)/D*100,2)),'%,')),COLORGREEN;DRAWNUMBER(B1,CAT7,CAT7),COLORGREEN;DRAWNUMBER(B1,CAT8,CAT8),COLORGREEN;DRAWNUMBER(B1,CAT9,CAT9),COLORGREEN;三、選股公式如下:
風(fēng)險提示:本指標(biāo)公式僅作為知識分享,模擬測試不構(gòu)成任何投資建議,不作投資依據(jù)。
|