通达信短中长K线形态副图指标 源码 贴图 长期形态值:SHAPE_LONG ,COLORFF00FF,NODRAW; 中期形态值:SHAPE_MID ,COLORFFFFFF,NODRAW; 短期形态值:SHAPE_SHORT,COLOR00FFFF,NODRAW; { K线 长期,中期,短期形态及序号 } DRAWTEXT(CURRBARSCOUNT=100,20 ,' K线 长期,中期,短期形态及序号值 '),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=110,17 , ' 14 . 序号值=14 ;NA不确定 '),COLORAAAAAA; DRAWTEXT(CURRBARSCOUNT=110,15 , ' 13 . 序号值=13 ;降后 横盘 '),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=110,13 , ' 12 . 序号值=12 ;升后 横盘 '),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=110,11 , ' 11 . 序号值=11 ;降后 短回 '),COLOR00BB00; DRAWTEXT(CURRBARSCOUNT=110,9 , ' 10 . 序号值=10 ;升后 短回 '),COLOR0000BB; DRAWTEXT(CURRBARSCOUNT=110,7 , ' 9 . 序号值=9 ;下 降 ↓↓↓↓↓↓'),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=110,5 , ' 8 . 序号值=8 ;上 升 ↑↑↑↑↑↑'),COLOR0000FF; DRAWTEXT(CURRBARSCOUNT=80,17 , ' 7 . 序号值=7 ;横盘后降 '),COLOR009900; DRAWTEXT(CURRBARSCOUNT=80,15 , ' 6 . 序号值=6 ;横盘后升 '),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=80,13 , ' 5 . 序号值=5 ;横 盘 '),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=80,11 , ' 4 . 序号值=4 ;M 形 态 '),COLORAAAA00; DRAWTEXT(CURRBARSCOUNT=80,9 , ' 3 . 序号值=3 ;W 形 态 '),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=80,7 , ' 2 . 序号值=2 ;∨ 形 态 '),COLORFF00FF; DRAWTEXT(CURRBARSCOUNT=80,5 , ' 1 . 序号值=1 ;∧ 形 态 '),COLORFFFF00; { 短期形态时间段 周期数 } STICKLINE(CURRBARSCOUNT=30,21,19,250,1),COLORLIGREEN; DRAWTEXT(CURRBARSCOUNT=59,20,'短期形态 -- 周期数 : 60'),COLORLIGREEN; { 短期形态 标示 } DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=14,20,'14. NA不确定 '),COLORAAAAAA; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=14,19,21,3,0),COLORAAAAAA; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=13,20,'13. 降后 横盘 '),COLORYELLOW; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=13,19,21,3,0),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=12,20,'12. 升后横盘 '),COLORYELLOW; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=12,19,21,3,0),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=11,20,'11. 降后 短回 '),COLOR00BB00; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=11,19,21,3,0),COLOR00BB00; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=10,20,'10. 升后短回 '),COLOR0000BB; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=10,19,21,3,0),COLOR0000BB; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=9,20,'9. 下 降 '),COLOR00FF00; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=9,19,21,3,0),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=8,20,' 8. 上 升 '),COLOR0000FF; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=8,19,21,3,0),COLOR0000FF; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=7,20,' 7. 横盘后降 '),COLOR009900; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=7,19,21,3,0),COLOR009900; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=6,20,' 6. 横盘后升 '),COLORLIRED; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=6,19,21,3,0),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=5,20,' 5. 横 盘 '),COLORYELLOW; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=5,19,21,3,0),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=4,20,' 4. M 形 态 '),COLORAAAA00; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=4,19,21,3,0),COLORAAAA00; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=3,20,' 3. W 形态 '),COLORAA00AA; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=3,19,21,3,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=2,20,' 2. ∨ 形 态 '),COLORFF00FF; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=2,19,21,3,0),COLORFF00FF; DRAWTEXT(CURRBARSCOUNT=12 AND 短期形态值=1,20,' 1. ∧ 形 态 '),COLORFFFF00; STICKLINE(CURRBARSCOUNT=25 AND 短期形态值=1,19,21,3,0),COLORFFFF00; { 中期形态时间段 周期数 } STICKLINE(CURRBARSCOUNT=60,24,22,500,1),COLORAAAAAA; DRAWTEXT(CURRBARSCOUNT=119,23,'中期形态 -- 周期数 : 120'),COLORFFFFFF; { 中期形态 标示 } DRAWTEXT(CURRBARSCOUNT=14 AND 中期形态值=14,23,' 14. NA不确定 '),COLORAAAAAA; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=14,22,24,3,0),COLORAAAAAA; DRAWTEXT(CURRBARSCOUNT=14 AND 中期形态值=13,23,' 13. 降后 横盘 '),COLORYELLOW; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=13,22,24,3,0),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=14 AND 中期形态值=12,23,' 12. 升后 横盘 '),COLORYELLOW; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=12,22,24,3,0),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=14 AND 中期形态值=11,23,' 11. 降后 短回 '),COLOR00BB00; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=11,22,24,3,0),COLOR00BB00; DRAWTEXT(CURRBARSCOUNT=13 AND 中期形态值=10,23,' 10. 升后短回 '),COLOR0000BB; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=10,22,24,3,0),COLOR0000BB; DRAWTEXT(CURRBARSCOUNT=13 AND 中期形态值=9,23,' 9. 下 降 '),COLOR00FF00; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=9,22,24,3,0),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=13 AND 中期形态值=8,23,' 8. 上 升 '),COLOR0000FF; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=8,22,24,3,0),COLOR0000FF; DRAWTEXT(CURRBARSCOUNT=13 AND 中期形态值=7,23,' 7. 横盘后降 '),COLOR009900; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=7,22,24,3,0),COLOR009900; DRAWTEXT(CURRBARSCOUNT=13 AND 中期形态值=6,23,' 6. 横盘后升 '),COLORLIRED; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=6,22,24,3,0),COLORLIRED; DRAWTEXT(CURRBARSCOUNT=13 AND 中期形态值=5,23,' 5. 横 盘 '),COLORYELLOW; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=5,22,24,3,0),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=13 AND 中期形态值=4,23,' 5. M 形 态 '),COLORAAAA00; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=4,22,24,3,0),COLORAAAA00; DRAWTEXT(CURRBARSCOUNT=13 AND 中期形态值=3,23,' 3. W 形态 '),COLORAA00AA; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=3,22,24,3,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=13 AND 中期形态值=2,23,' 2. ∨ 形 态 '),COLORFF00FF; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=2,22,24,3,0),COLORFF00FF; DRAWTEXT(CURRBARSCOUNT=13 AND 中期形态值=1,23,' 1. ∧ 形 态 '),COLORFFFF00; STICKLINE(CURRBARSCOUNT=25 AND 中期形态值=1,22,24,3,0),COLORFFFF00; { 长期形态时间段 周期数 } STICKLINE(CURRBARSCOUNT=150,27,25,3928,1),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=150,26,'长期形态 -- 周期数 : 240 -- 500'),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=15 AND 长期形态值=12,26,' 12. 升后 横盘 '),COLOR000099; STICKLINE(CURRBARSCOUNT=25 AND 长期形态值=12,27,25,3,0),COLOR000099; DRAWTEXT(CURRBARSCOUNT=15 AND 长期形态值=1,26,' 1. ∧ 形 态 '),COLORFFFF00; STICKLINE(CURRBARSCOUNT=25 AND 长期形态值=1,27,25,3,0),COLORFFFF00;
|