筹码密集主图和选股,【淘股掘金】指标之一(通达信公式 主图 源码 测试图)

[复制链接]
查看76 | 回复0 | 2022-6-27 14:52:35 | 显示全部楼层 |阅读模式

筹码密集主图

筹码获利比例:是当前价格下,获利的筹码占总流通盘的比例。
筹码平均成本:当前行情下的所有筹码的平均成本价。
比平均成本获利%:当前价格下,比所有筹码的平均成本价 高多少,或者低多少。(百分比)
压力线、支撑线:价格的压力和支撑线。和均线一样,只是参考。
支撑位、阻力位:当前筹码 获得支撑和阻力的 价位。和均线一样,只是参考。

【淘股掘金】筹码指标之一
 
筹码获利比例% : IF(WINNER(C),WINNER(C) * 100,0),NODRAW,COLOR8800FF;
筹码平均成本 : COST(50),NODRAW,COLORYELLOW;
比平均成本获利 : ((C - COST(50)) / COST(50)) * 100,NODRAW,COLOR00CCFF;
VAR0 := REF(C,1);
VAR1 := MA(C,5);
VAR2 := ((SMA(MAX(C - VAR0,0),6,1)) / (SMA(ABS(C - VAR0),6,1))) * 100;
VAR3 := ((SMA(MAX(C - VAR0,0),12,1)) / (SMA(ABS(C - VAR0),12,1))) * 100;
VAR4 := ((SMA(MAX(C - VAR0,0),24,1)) / (SMA(ABS(C - VAR0),24,1))) * 100;
VAR5 := IF(CROSS(VAR2,VAR4),LOW,REF(LOW,BARSLAST(CROSS(VAR2,VAR4))));
VAR6 := IF(CROSS(VAR4,VAR2),HIGH,REF(HIGH,BARSLAST(CROSS(VAR4,VAR2))));
VAR7 := IF(C >= MA(C,20),80,50);
VAR8 := IF(C >= MA(C,20),50,20);
VAR9 := IF((VAR2 < VAR7) AND (REF(VAR2,1) >= VAR7),HHV(REF(HIGH,1),(BARSLAST((VAR2 >= VAR7) AND (REF(VAR2,1) < VAR7))) - 1),REF(HHV(REF(HIGH,1),(BARSLAST((VAR2 >= VAR7) AND (REF(VAR2,1) < VAR7))) - 1),BARSLAST((VAR2 < VAR7) AND REF(VAR2,1))));
VAR10 := IF(HIGH > VAR9,LOW,REF(LOW,BARSLAST(HIGH > VAR9)));
VAR11 := IF(HIGH > VAR9,VAR2,REF(VAR2,BARSLAST(HIGH > VAR9)));
VAR12 := IF(((HIGH > VAR10) AND (VAR2 < VAR11)) AND (VAR2 < VAR4),HIGH,REF(HIGH,BARSLAST(((HIGH > VAR10) AND (VAR2 < VAR11)) AND (VAR2 < VAR4))));
VAR13 := IF((VAR2 > VAR8) AND (REF(VAR2,1) <= VAR8),LLV(REF(LOW,1),(BARSLAST((VAR2 <= VAR8) AND (REF(VAR2,1) > VAR8))) - 1),REF(LLV(REF(LOW,1),(BARSLAST((VAR2 <= VAR8) AND (REF(VAR2,1) > VAR8))) - 1),BARSLAST((VAR2 > VAR8) AND REF(VAR2,1))));
VAR14 := IF(LOW < VAR13,HIGH,REF(HIGH,BARSLAST(LOW < VAR13)));
VAR15 := IF(LOW < VAR13,VAR2,REF(VAR2,BARSLAST(LOW < VAR13)));
VAR16 := IF(((LOW < VAR14) AND (VAR2 > VAR15)) AND (VAR2 > VAR4),LOW,REF(LOW,BARSLAST(((LOW < VAR14) AND (VAR2 > VAR15)) AND (VAR2 > VAR4))));
压力线 : VAR16,DOTLINE,COLOR3300FF;
支撑线 : VAR12,DOTLINE,COLORBLUE;
VAR17 := (ABS(((((2 * C) + HIGH) + LOW) / 4) - MA(C,20))) / MA(C,20);
VAR18 := CONST((1 - (7 / 100)) * DMA(C,VAR17));
VAR19 := CONST((1 + (7 / 100)) * DMA(C,VAR17));
支撑位 : IF(PERIOD = 5,IF(BARSLAST(CURRBARSCOUNT = 5),VAR18,DRAWNULL),DRAWNULL),COLORYELLOW,LINETHICK3;
阻力位 : IF(PERIOD = 5,IF(BARSLAST(CURRBARSCOUNT = 5),VAR19,DRAWNULL),DRAWNULL),COLORGREEN,LINETHICK3;
MA5 : MA(C,3);
MA10 : MA(C,7),COLORYELLOW;
MA20 : MA(C,13),COLORMAGENTA;
MA60 : MA(C,21),COLORGREEN;
MA120 : MA(C,34),COLORAAAAAA;
量比 : VOL / REF(MA(VOL,5),1),NODRAW;
流通盘亿 : FINANCE(7) / 100000000,NODRAW;
流通市值亿 : (C * FINANCE(7)) / 100000000,NODRAW;
成交金额亿 : AMOUNT / 100000000,NODRAW,COLORCYAN;
市盈率PE : C / FINANCE(33),NODRAW,COLORFFAA00;
市净率 : C / FINANCE(34),NODRAW,COLOR77FF00;
VAR20 := COST(99.9);
VAR21 := COST(0.1);
VAR22 := (VAR20 - VAR21) / 50;
VAR23 := VAR20 - VAR22;
VAR24 := VAR20 - (2 * VAR22);
VAR25 := VAR20 - (3 * VAR22);
VAR26 := VAR20 - (4 * VAR22);
VAR27 := VAR20 - (5 * VAR22);
VAR28 := VAR20 - (6 * VAR22);
VAR29 := VAR20 - (7 * VAR22);
VAR30 := VAR20 - (8 * VAR22);
VAR31 := VAR20 - (9 * VAR22);
VAR32 := VAR20 - (10 * VAR22);
VAR33 := VAR20 - (11 * VAR22);
VAR34 := VAR20 - (12 * VAR22);
VAR35 := VAR20 - (13 * VAR22);
VAR36 := VAR20 - (14 * VAR22);
VAR37 := VAR20 - (15 * VAR22);
VAR38 := VAR20 - (16 * VAR22);
VAR39 := VAR20 - (17 * VAR22);
VAR40 := VAR20 - (18 * VAR22);
VAR41 := VAR20 - (19 * VAR22);
VAR42 := VAR20 - (20 * VAR22);
VAR43 := VAR20 - (21 * VAR22);
VAR44 := VAR20 - (22 * VAR22);
VAR45 := VAR20 - (23 * VAR22);
VAR46 := VAR20 - (24 * VAR22);
VAR47 := VAR20 - (25 * VAR22);
VAR48 := VAR20 - (26 * VAR22);
VAR49 := VAR20 - (27 * VAR22);
VAR50 := VAR20 - (28 * VAR22);
VAR51 := VAR20 - (29 * VAR22);
VAR52 := VAR20 - (30 * VAR22);
VAR53 := VAR20 - (31 * VAR22);
VAR54 := VAR20 - (32 * VAR22);
VAR55 := VAR20 - (33 * VAR22);
VAR56 := VAR20 - (34 * VAR22);
VAR57 := VAR20 - (35 * VAR22);
VAR58 := VAR20 - (36 * VAR22);
VAR59 := VAR20 - (37 * VAR22);
VAR60 := VAR20 - (38 * VAR22);
VAR61 := VAR20 - (39 * VAR22);
VAR62 := VAR20 - (40 * VAR22);
VAR63 := VAR20 - (41 * VAR22);
VAR64 := VAR20 - (42 * VAR22);
VAR65 := VAR20 - (43 * VAR22);
VAR66 := VAR20 - (44 * VAR22);
VAR67 := VAR20 - (45 * VAR22);
VAR68 := VAR20 - (46 * VAR22);
VAR69 := VAR20 - (47 * VAR22);
VAR70 := VAR20 - (48 * VAR22);
VAR71 := VAR20 - (49 * VAR22);
VAR72 := (WINNER(VAR20) * 100) - (WINNER(VAR23) * 100);
VAR73 := (WINNER(VAR23) * 100) - (WINNER(VAR24) * 100);
VAR74 := (WINNER(VAR24) * 100) - (WINNER(VAR25) * 100);
VAR75 := (WINNER(VAR25) * 100) - (WINNER(VAR26) * 100);
VAR76 := (WINNER(VAR26) * 100) - (WINNER(VAR27) * 100);
VAR77 := (WINNER(VAR27) * 100) - (WINNER(VAR28) * 100);
VAR78 := (WINNER(VAR28) * 100) - (WINNER(VAR29) * 100);
VAR79 := (WINNER(VAR29) * 100) - (WINNER(VAR30) * 100);
VAR80 := (WINNER(VAR30) * 100) - (WINNER(VAR31) * 100);
VAR81 := (WINNER(VAR31) * 100) - (WINNER(VAR32) * 100);
VAR82 := (WINNER(VAR32) * 100) - (WINNER(VAR33) * 100);
VAR83 := (WINNER(VAR33) * 100) - (WINNER(VAR34) * 100);
VAR84 := (WINNER(VAR34) * 100) - (WINNER(VAR35) * 100);
VAR85 := (WINNER(VAR35) * 100) - (WINNER(VAR36) * 100);
VAR86 := (WINNER(VAR36) * 100) - (WINNER(VAR37) * 100);
VAR87 := (WINNER(VAR37) * 100) - (WINNER(VAR38) * 100);
VAR88 := (WINNER(VAR38) * 100) - (WINNER(VAR39) * 100);
VAR89 := (WINNER(VAR39) * 100) - (WINNER(VAR40) * 100);
VAR90 := (WINNER(VAR40) * 100) - (WINNER(VAR41) * 100);
VAR91 := (WINNER(VAR41) * 100) - (WINNER(VAR42) * 100);
VAR92 := (WINNER(VAR42) * 100) - (WINNER(VAR43) * 100);
VAR93 := (WINNER(VAR43) * 100) - (WINNER(VAR44) * 100);
VAR94 := (WINNER(VAR44) * 100) - (WINNER(VAR45) * 100);
VAR95 := (WINNER(VAR45) * 100) - (WINNER(VAR46) * 100);
VAR96 := (WINNER(VAR46) * 100) - (WINNER(VAR47) * 100);
VAR97 := (WINNER(VAR47) * 100) - (WINNER(VAR48) * 100);
VAR98 := (WINNER(VAR48) * 100) - (WINNER(VAR49) * 100);
VAR99 := (WINNER(VAR49) * 100) - (WINNER(VAR50) * 100);
VAR100 := (WINNER(VAR50) * 100) - (WINNER(VAR51) * 100);
VAR101 := (WINNER(VAR51) * 100) - (WINNER(VAR52) * 100);
VAR102 := (WINNER(VAR52) * 100) - (WINNER(VAR53) * 100);
VAR103 := (WINNER(VAR53) * 100) - (WINNER(VAR54) * 100);
VAR104 := (WINNER(VAR54) * 100) - (WINNER(VAR55) * 100);
VAR105 := (WINNER(VAR55) * 100) - (WINNER(VAR56) * 100);
VAR106 := (WINNER(VAR56) * 100) - (WINNER(VAR57) * 100);
VAR107 := (WINNER(VAR57) * 100) - (WINNER(VAR58) * 100);
VAR108 := (WINNER(VAR58) * 100) - (WINNER(VAR59) * 100);
VAR109 := (WINNER(VAR59) * 100) - (WINNER(VAR60) * 100);
VAR110 := (WINNER(VAR60) * 100) - (WINNER(VAR61) * 100);
VAR111 := (WINNER(VAR61) * 100) - (WINNER(VAR62) * 100);
VAR112 := (WINNER(VAR62) * 100) - (WINNER(VAR63) * 100);
VAR113 := (WINNER(VAR63) * 100) - (WINNER(VAR64) * 100);
VAR114 := (WINNER(VAR64) * 100) - (WINNER(VAR65) * 100);
VAR115 := (WINNER(VAR65) * 100) - (WINNER(VAR66) * 100);
VAR116 := (WINNER(VAR66) * 100) - (WINNER(VAR67) * 100);
VAR117 := (WINNER(VAR67) * 100) - (WINNER(VAR68) * 100);
VAR118 := (WINNER(VAR68) * 100) - (WINNER(VAR69) * 100);
VAR119 := (WINNER(VAR69) * 100) - (WINNER(VAR70) * 100);
VAR120 := (WINNER(VAR70) * 100) - (WINNER(VAR71) * 100);
VAR121 := (WINNER(VAR71) * 100) - (WINNER(VAR21) * 100);
STICKLINE(ISLASTBAR,VAR20,VAR20,VAR72 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR23,VAR23,VAR72 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR24,VAR24,VAR73 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR25,VAR25,VAR74 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR26,VAR26,VAR75 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR27,VAR27,VAR76 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR28,VAR28,VAR77 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR29,VAR29,VAR78 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR30,VAR30,VAR79 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR31,VAR31,VAR80 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR32,VAR32,VAR81 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR33,VAR33,VAR82 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR34,VAR34,VAR83 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR35,VAR35,VAR84 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR36,VAR36,VAR85 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR37,VAR37,VAR86 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR38,VAR38,VAR87 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR39,VAR39,VAR88 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR40,VAR40,VAR89 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR41,VAR41,VAR90 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR42,VAR42,VAR91 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR43,VAR43,VAR92 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR44,VAR44,VAR93 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR45,VAR45,VAR94 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR46,VAR46,VAR95 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR47,VAR47,VAR96 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR48,VAR48,VAR97 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR49,VAR49,VAR98 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR50,VAR50,VAR99 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR51,VAR51,VAR100 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR52,VAR52,VAR101 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR53,VAR53,VAR102 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR54,VAR54,VAR103 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR55,VAR55,VAR104 * 50,0),COLORGRAY;
STICKLINE(ISLASTBAR,VAR56,VAR56,VAR105 * 50,0),NODRAW,COLOR8800FF;
STICKLINE(ISLASTBAR,VAR57,VAR57,VAR106 * 50,0),NODRAW,COLORYELLOW;
STICKLINE(ISLASTBAR,VAR58,VAR58,VAR107 * 50,0),NODRAW,COLOR00CCFF;
STICKLINE(ISLASTBAR,VAR59,VAR59,VAR108 * 50,0),DOTLINE,COLOR3300FF;
STICKLINE(ISLASTBAR,VAR60,VAR60,VAR109 * 50,0),DOTLINE,COLORBLUE;
STICKLINE(ISLASTBAR,VAR61,VAR61,VAR110 * 50,0),COLORYELLOW,LINETHICK3;
STICKLINE(ISLASTBAR,VAR62,VAR62,VAR111 * 50,0),COLORGREEN,LINETHICK3;
STICKLINE(ISLASTBAR,VAR63,VAR63,VAR112 * 50,0);{分析家公式网WWW.70822.COM}
STICKLINE(ISLASTBAR,VAR64,VAR64,VAR113 * 50,0),COLORYELLOW;
STICKLINE(ISLASTBAR,VAR65,VAR65,VAR114 * 50,0),COLORMAGENTA;
STICKLINE(ISLASTBAR,VAR66,VAR66,VAR115 * 50,0),COLORGREEN;
STICKLINE(ISLASTBAR,VAR67,VAR67,VAR116 * 50,0),COLORAAAAAA;
STICKLINE(ISLASTBAR,VAR68,VAR68,VAR117 * 50,0),NODRAW;
STICKLINE(ISLASTBAR,VAR69,VAR69,VAR118 * 50,0),NODRAW;
STICKLINE(ISLASTBAR,VAR70,VAR70,VAR119 * 50,0),NODRAW;
STICKLINE(ISLASTBAR,VAR21,VAR21,VAR121 * 50,0),NODRAW,COLORCYAN;
DRAWKLINE(HIGH,OPEN,LOW,C),NODRAW,COLORFFAA00;
 

2022528974268703.png

2022528974268703.png

2022528975098321.png

2022528975098321.png

2022528923556650.rar

17.45 KB, 下载次数: 0

售价: 2 金钱  [记录]  [购买]

2022528923556650.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则