|
马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
本帖最后由 wen98 于 2011-9-11 20:45 编辑
量柱指标,在主图一显无遗,
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);
B1:=VOL>=1.9*(REF(VOL,1)) AND CLOSE>REF(CLOSE,1);
B2:=VOL<(REF(VOL,1));
B3:=COUNT(B2,3);
B4:=COUNT(LOW>(REF(LOW,1)),3);
B41:=VOL>(REF(VOL,1));
B5:=COUNT(B41,3);
B6:=CLOSE>OPEN;
DRAWTEXT(B1 AND B6,LOW*0.997,'←倍'),COLORYELLOW;
STICKLINE(B1,OPEN,CLOSE,1.5,0),COLOR108090;
DRAWICON(B1 AND B6,LOW*0.995,11);
B7:=LLV(VOL,X地);DRAWTEXT(B7=VOL,LOW*0.998,'←地'),COLORGREEN;
STICKLINE(B7=VOL,OPEN,CLOSE,1.5,0),COLORBLUE;
B9:=HHV(VOL,X天);DRAWTEXT(B9=VOL,HIGH*1.002,'←高'),COLORGREEN;
DRAWTEXT(B5=3,HIGH*1.003,'←梯');
DRAWTEXT(B4=3 AND(B3=3),HIGH*1.001,'←缩'),COLORYELLOW;
DRAWICON(B4=3 AND(B3=3),HIGH*1.002,12);
B8:=VOL<=(REF(VOL,1))/2;
DRAWTEXT(B4=3 AND B8,HIGH*1.002,'←倍缩'),COLORYELLOW;
QLC:=REF(CLOSE,1);
QRSI:=((SMA(MAX((CLOSE - QLC),0),3,1) / SMA(ABS((CLOSE - QLC)),3,1)) * 100);
DRAWTEXT(CROSS(88,QRSI),HIGH*1.005,'⊙←顶'),COLORMAGENTA;
DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),
HIGH*1.02,'←落袋为安');
V1:=VOL;
V2:=REF(VOL,1);
D:=IF(V1>V2,(V1-V2)/V2,(V2-V1)/V1);
DRAWTEXT(D<0.03,HIGH*1.003,'←平'),COLORBLUE;
双阴出:=FILTER(COUNT(C<O,2)=2 L<REF(C,1),10);
DRAWTEXT(双阴出,H*1.009,'双阴出货'),COLORBLUE;
DRAWICON(双阴出,HIGH*1.009,2);
===========
wen98注:
原贴出错,没有给出参数,这里给出参考!
- X地:=100;
- X天:=20;
- MA5:MA(CLOSE,5);
- MA10:MA(CLOSE,10);
- MA20:MA(CLOSE,20);
- MA60:MA(CLOSE,60);
- B1:=VOL>=1.9*(REF(VOL,1)) AND CLOSE>REF(CLOSE,1);
- B2:=VOL<(REF(VOL,1));
- B3:=COUNT(B2,3);
- B4:=COUNT(LOW>(REF(LOW,1)),3);
- B41:=VOL>(REF(VOL,1));
- B5:=COUNT(B41,3);
- B6:=CLOSE>OPEN;
- DRAWTEXT(B1 AND B6,LOW*0.997,'←倍'),COLORYELLOW;
- STICKLINE(B1,OPEN,CLOSE,1.5,0),COLOR108090;
- DRAWICON(B1 AND B6,LOW*0.995,11);
- B7:=LLV(VOL,X地);DRAWTEXT(B7=VOL,LOW*0.998,'←地'),COLORGREEN;
- STICKLINE(B7=VOL,OPEN,CLOSE,1.5,0),COLORBLUE;
- B9:=HHV(VOL,X天);DRAWTEXT(B9=VOL,HIGH*1.002,'←高'),COLORGREEN;
- DRAWTEXT(B5=3,HIGH*1.003,'←梯');
- DRAWTEXT(B4=3 AND(B3=3),HIGH*1.001,'←缩'),COLORYELLOW;
- DRAWICON(B4=3 AND(B3=3),HIGH*1.002,12);
- B8:=VOL<=(REF(VOL,1))/2;
- DRAWTEXT(B4=3 AND B8,HIGH*1.002,'←倍缩'),COLORYELLOW;
- QLC:=REF(CLOSE,1);
- QRSI:=((SMA(MAX((CLOSE - QLC),0),3,1) / SMA(ABS((CLOSE - QLC)),3,1)) * 100);
- DRAWTEXT(CROSS(88,QRSI),HIGH*1.005,'⊙←顶'),COLORMAGENTA;
- DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),
- HIGH*1.02,'←落袋为安');
- V1:=VOL;
- V2:=REF(VOL,1);
- D:=IF(V1>V2,(V1-V2)/V2,(V2-V1)/V1);
- DRAWTEXT(D<0.03,HIGH*1.003,'←平'),COLORBLUE;
- 双阴出:=FILTER(COUNT(C<O,2)=2 AND L<REF(C,1),10);
- DRAWTEXT(双阴出,H*1.009,'双阴出货'),COLORBLUE;
- DRAWICON(双阴出,HIGH*1.009,2);
复制代码 |
|