响应论坛活动。将研究的二个看盘主图一同打包,源码奉献给大家,各自自行优化。
第一套 日线级别地量看盘主图
指标构思:这套日线级别的地量画线是将N(可自行调节)周期内10根最大阳量和十根最小阴量连线,方便您参考N周期内放量和缩量集中在哪个价位。
枚红色水平画线表示阳量 绿色水平画线表示阴量,黄s加粗水平画线表示阴量最高画线。根据画线可以参考N周期阳量 阴量集中在哪个价位,参考买进 卖出
阳量取N周期内最大排名前十,阴量取N周期内最小(地量)排名前十画线
第二套 大盘个股K线同框主图
指标构思:将大盘和个股 的K线走势变通后,放在同一个主图里,当K线出现重合一般会有变盘时间窗口。使用后请仔细观察。
当出现黄sK线时如果在底部请注意向上变盘。如果在高位注意参考向下变盘!
指标只是给你参考,不可能99.99%准确!!
{妞妞地量日线看盘主图}
N:=350;
Y1:=C>O OR (C=O AND C>=REF(C,1));
Y2:=C<O OR (C=O AND C<REF(C,1));
L1:=IF(Y1,VOL,0);
L2:=IF(Y2,VOL,9999999999);
T1:=CONST(FINDHIGHBARS(L1,0,N,1));
T2:=CONST(FINDHIGHBARS(L1,0,N,2));
T3:=CONST(FINDHIGHBARS(L1,0,N,3));
T4:=CONST(FINDHIGHBARS(L1,0,N,4));
T5:=CONST(FINDHIGHBARS(L1,0,N,5));
T6:=CONST(FINDHIGHBARS(L1,0,N,6));
T7:=CONST(FINDHIGHBARS(L1,0,N,7));
T8:=CONST(FINDHIGHBARS(L1,0,N,8));
T9:=CONST(FINDHIGHBARS(L1,0,N,9));
T10:=CONST(FINDHIGHBARS(L1,0,N,10));
D1:=CONST(FINDLOWBARS(L2,0,N,1));
D2:=CONST(FINDLOWBARS(L2,0,N,2));
D3:=CONST(FINDLOWBARS(L2,0,N,3));
D4:=CONST(FINDLOWBARS(L2,0,N,4));
D5:=CONST(FINDLOWBARS(L2,0,N,5));
D6:=CONST(FINDLOWBARS(L2,0,N,6));
D7:=CONST(FINDLOWBARS(L2,0,N,7));
D8:=CONST(FINDLOWBARS(L2,0,N,8));
D9:=CONST(FINDLOWBARS(L2,0,N,9));
D10:=CONST(FINDLOWBARS(L2,0,N,10));
DRAWLINE(CURRBARSCOUNT=T1+1,C,ISLASTBAR,REF(C,T1),0),COLORMAGENTA;
DRAWLINE(CURRBARSCOUNT=T2+1,C,ISLASTBAR,REF(C,T2),0),COLORMAGENTA;
DRAWLINE(CURRBARSCOUNT=T3+1,C,ISLASTBAR,REF(C,T3),0),COLORMAGENTA;
DRAWLINE(CURRBARSCOUNT=T4+1 ,C,ISLASTBAR,REF(C,T4),0),COLORMAGENTA;
DRAWLINE(CURRBARSCOUNT=T5+1 ,C,ISLASTBAR,REF(C,T5),0),COLORMAGENTA;
DRAWLINE(CURRBARSCOUNT=T6+1 ,C,ISLASTBAR,REF(C,T6),0),COLORMAGENTA;
DRAWLINE(CURRBARSCOUNT=T7+1 ,C,ISLASTBAR,REF(C,T7),0),COLORMAGENTA;
DRAWLINE(CURRBARSCOUNT=T8+1 ,C,ISLASTBAR,REF(C,T8),0),COLORMAGENTA;
DRAWLINE(CURRBARSCOUNT=T9+1 ,C,ISLASTBAR,REF(C,T9),0),COLORMAGENTA;
DRAWLINE(CURRBARSCOUNT=T10+1 ,C,ISLASTBAR,REF(C,T10),0),COLORMAGENTA;
E:DRAWLINE(CURRBARSCOUNT=D1+1 ,C,ISLASTBAR,REF(C,D1),0),COLORGREEN;
E1:DRAWLINE(CURRBARSCOUNT=D2+1,C,ISLASTBAR,REF(C,D2),0),COLORGREEN;
E2:DRAWLINE(CURRBARSCOUNT=D3+1,C,ISLASTBAR,REF(C,D3),0),COLORGREEN;
E3:DRAWLINE(CURRBARSCOUNT=D4+1 ,C,ISLASTBAR,REF(C,D4),0),COLORGREEN;
E4:DRAWLINE(CURRBARSCOUNT=D5+1,C,ISLASTBAR,REF(C,D5),0),COLORGREEN;
E5:DRAWLINE(CURRBARSCOUNT=D6+1 ,C,ISLASTBAR,REF(C,D6),0),COLORGREEN;
E6:DRAWLINE(CURRBARSCOUNT=D7+1,C,ISLASTBAR,REF(C,D7),0),COLORGREEN;
E7:DRAWLINE(CURRBARSCOUNT=D8+1,C,ISLASTBAR,REF(C,D8),0),COLORGREEN;
E8:DRAWLINE(CURRBARSCOUNT=D9+1 ,C,ISLASTBAR,REF(C,D9),0),COLORGREEN;
E9:DRAWLINE(CURRBARSCOUNT=D10+1 ,C,ISLASTBAR,REF(C,D10),0),COLORGREEN;
HH:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(E,E1),E2),E3),E4),E5),E6),E7),E8),E9);
T:=BARSLAST(C=CONST(HH));
DRAWLINE(CURRBARSCOUNT=CONST(T)+1,C,ISLASTBAR,REF(C,T),0),COLORYELLOW,LINETHICK2;
将大盘和个股 的K线走势变通后,放在同一个主图里,当K线出现重合一般会有变盘时间窗口。使用后请仔细观察。
当出现黄sK线时如果在底部请注意向上变盘。如果在高位注意参考向下变盘!
指标只是给你参考,不可能99.99%准确!!
{大盘和个股同框主图}
n:=70;
CY:=INBLOCK('创业板');
ZXB:=INBLOCK('中小企业');
SZ:=INBLOCK('上证A股');
H2:=IF(ZXB=1,"399005$H",IF(CY=1,"399006$H",IF(SZ=1,"999999$H","399001$H")));
O2:=IF(ZXB=1,"399005$O",IF(CY=1,"399006$O",IF(SZ=1,"999999$O","399001$O")));
L2:=IF(ZXB=1,"399005$L",IF(CY=1,"399006$L",IF(SZ=1,"999999$L","399001$L")));
C2:=IF(ZXB=1,"399005$C",IF(CY=1,"399006$C",IF(SZ=1,"999999$C","399001$C")));
DL:=CONST(LLV(L2,N));
DH:=CONST(HHV(H2,N));
DC:=DH-DL;
GL:=CONST(LLV(L,N));
GH:=CONST(HHV(H,N));
GC:=GH-GL;
B:=GC/DC;
CC:=GL+(C2-DL)*B;
OO:=GL+(O2-DL)*B;
LL:=GL+(L2-DL)*B;
HH:=GL+(H2-DL)*B;
TJ0:=BETWEEN(MIN(CC,OO),MIN(C,O),MAX(C,O)) OR BETWEEN(MAX(CC,OO),MIN(C,O),MAX(C,O));
TJ1:=BETWEEN(MIN(C,O),MIN(CC,OO),MAX(CC,OO)) OR BETWEEN(MAX(C,O),MIN(CC,OO),MAX(CC,OO));
TJ:=TJ0 OR TJ1;
T:=BARSLAST(TJ);
GG:=MAX(MAX(MAX(C,O),CC),OO);
DD:=MIN(MIN(MIN(C,O),CC),OO);
DRAWKLINE(H,O,L,C);
{分析家公式网www.fxjgsw.com}
STICKLINE(C2>O2,CC,HH,0,0),COLORMAGENTA;
STICKLINE(C2>O2,CC,OO,2,1),COLORMAGENTA;
STICKLINE(C2>O2,LL,OO,0,0),COLORMAGENTA;
STICKLINE(C2<O2,OO,HH,0,0),COLORGREEN;
STICKLINE(C2<O2,CC,OO,2,0),COLORGREEN;
STICKLINE(C2<O2,LL,CC,0,0),COLORGREEN;
STICKLINE(T=0,DD,GG,1.5,0),COLORYELLOW;
|