价托,价压;量托,量压 指标 (已补图)介绍
价托,价压;量托,量压 指标 (已补图)
上代码:
价托,价压指标(放到主图里):
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,30);
MA5:MA(CLOSE,60);
MA40:=MA(CLOSE,40);
A:=BARSLAST(CROSS(MA1,MA2));
B:=BARSLAST(CROSS(MA1,MA3));
CC:=BARSLAST(CROSS(MA2,MA3));
D:=A>B AND b>CC AND CC=0;
DRAWTEXT(D,MA3,'月价托');
E:=BARSLAST(CROSS(MA3,MA40));
F:=BARSLAST(CROSS(MA3,MA5));
G:=BARSLAST(CROSS(MA40,MA5));
Y:=E>F AND F>G AND G=0;
DRAWTEXT(Y,MA5,'季价托');
J:=BARSLAST(CROSS(MA1,MA2));
K:=BARSLAST(CROSS(MA1,MA5));
M:=BARSLAST(CROSS(MA2,MA5));
N:=J>K AND K>M AND M=0;
DRAWTEXT(N,MA5,'长短价托');
OO:=BARSLAST(CROSS(MA2,MA1));
P:=BARSLAST(CROSS(MA3,MA1));
Q:=BARSLAST(CROSS(MA3,MA2));
R:=OO>P AND P>Q AND Q=0;
DRAWTEXT(R,MA3,'月价压');
SS:=BARSLAST(CROSS(MA40,MA3));
TT:=BARSLAST(CROSS(MA5,MA3));
UU:=BARSLAST(CROSS(MA5,MA40));
VV:=SS>TT AND TT>UU AND UU=0;
DRAWTEXT(VV,MA5,'季价压');
WW:=BARSLAST(CROSS(MA2,MA1));
XX:=BARSLAST(CROSS(MA5,MA1));
YY:=BARSLAST(CROSS(MA5,MA2));
ZZ:=WW>XX AND XX>YY AND YY=0;
DRAWTEXT(ZZ,MA5,'长短价压');
量托,压指标放到(成交量副图中):
MA1:MA(VOL,M1);
MA2:MA(VOL,M2);
MA3:MA(VOL,M3);
MA40:=MA(VOL,40);
MA5:=MA(VOL,60);
A:=BARSLAST(CROSS(MA1,MA2));
B:=BARSLAST(CROSS(MA1,MA3));
CC:=BARSLAST(CROSS(MA2,MA3));
D:=A>B AND b>CC AND CC=0;
DRAWTEXT(D,MA3,'月量托');
E:=BARSLAST(CROSS(MA3,MA40));
F:=BARSLAST(CROSS(MA3,MA5));
G:=BARSLAST(CROSS(MA40,MA5));
Y:=E>F AND F>G AND G=0;
DRAWTEXT(Y,MA5,'季量托');
OO:=BARSLAST(CROSS(MA2,MA1));
P:=BARSLAST(CROSS(MA3,MA1));
Q:=BARSLAST(CROSS(MA3,MA2));
R:=OO>P AND P>Q AND Q=0;
DRAWTEXT(R,MA3,'月量压');
SS:=BARSLAST(CROSS(MA40,MA3));
TT:=BARSLAST(CROSS(MA5,MA3));
UU:=BARSLAST(CROSS(MA5,MA40));
VV:=SS>TT AND TT>UU AND UU=0;
DRAWTEXT(VV,MA5,'季量压');
因为价托压和量托压在看图时很容易忽略掉,或者有时均线缠绕到你看不清~借助软件咱就方便多了。需要的取之。。。。。。
另外感谢志志对我编写此代码时的帮助。
注:结合自己的炒股理念配合该指标使用成功率较高。。。切忌生搬硬套哈...
gd13311