百万主图 转载和谐完全加密通达信指标!

[复制链接]
查看30 | 回复0 | 2022-6-27 22:12:07 | 显示全部楼层 |阅读模式

 {公式名称: 百万主图

公式描述: 主图
参数数量: 2
参数1: 显示九转, 最小: 0, 最大: 1, 缺省: 1
参数2: 显示上榜标志, 最小: 0, 最大: 1, 缺省: 1
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
 
参数精灵:
请设置计算参数:
显示九转: Param#0 (0.00--1.00)
显示上榜标志: Param#1 (0.00--1.00)
用法注释:无
公式源码:}
VAR1:=AMOUNT/VOL/100;
VAR2:=REF(CLOSE,1)/CLOSE>1.04;
STICKLINE(VAR2,OPEN,CLOSE,1,0),COLORWHITE;
VAR3:=OPEN>CLOSE AND VAR1>REF(CLOSE,1);
STICKLINE(VAR3,OPEN,CLOSE,1,0),COLORRED;
VAR4:=LOW>REF(HIGH,1) AND NOT(HIGH=LOW);
VAR5:=BARSLAST(VAR4);{www.70822.com}
DRAWLINE(VAR5=0,LOW,VAR5=1,REF(LOW,1),1),DOTLINE,COLORBROWN,LINETHICK2;
VAR6:=REF(LOW,1)>HIGH;
VAR7:=BARSLAST(VAR6);
DRAWLINE(VAR7=0,HIGH,VAR7=1,REF(HIGH,1),1),DOTLINE,COLORMAGENTA,LINETHICK2;
VAR8:=CLOSE>REF(CLOSE,4);
VAR9:=BARSLASTCOUNT(VAR8);
VAR10:=VAR9=9;
VAR11:=ISLASTBAR AND BETWEEN(VAR9,1,8);
VAR12:=(BACKSET(VAR10>0,9) OR BACKSET(VAR11>0,VAR9))*VAR9;
DRAWTEXT(VAR12>0 AND 显示九转=1,HIGH*1.005,VAR2STR(VAR12,0)),COLORMAGENTA;
DRAWTEXT(VAR9=9 AND 显示九转=1,HIGH*1.005,1),COLORGREEN;
VAR13:=CLOSE<REF(CLOSE,4);
VAR14:=BARSLASTCOUNT(VAR13);
VAR15:=VAR14=9;
VAR16:=ISLASTBAR AND BETWEEN(VAR14,1,8);
VAR17:=(BACKSET(VAR15>0,9) OR BACKSET(VAR16>0,VAR14))*VAR14;
DRAWTEXT(VAR17>0 AND 显示九转=1,LOW*0.995,VAR2STR(VAR17,0)),COLORMAGENTA;
DRAWTEXT(VAR14=9 AND 显示九转=1,LOW*0.995,1),COLORGREEN;
VAR18:=MIN(LOW,REF(CLOSE,1));
VAR19:=MAX(HIGH,REF(CLOSE,1));
VAR20:=IF(VAR12,HIGH+(VAR19-VAR18),0);
VAR21:=IF(VAR17,LOW+(VAR19-VAR18),0);
VAR22:=BARSLAST(VAR20);
当前压力:DRAWLINE(VAR22=0,HIGH,VAR22=1,REF(HIGH,1),1),COLORGREEN,LINETHICK2;
VAR23:=BARSLAST(VAR21);{www.70822.com}
当前支撑:DRAWLINE(VAR23=0,LOW,VAR23=1,REF(LOW,1),1),COLORRED,LINETHICK2;
AB:DRAWLINE(HIGH>=HHV(HIGH,20),HIGH,LOW<=LLV(LOW,5),HHV(HIGH,5),1),DOTLINE,COLORWHITE;
VAR24:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR25:=NAMELIKE(2) OR NAMELIKE(3) OR NAMELIKE(4) AND VAR24>=4.945;
VAR26:=NAMELIKE(2) OR NAMELIKE(3) OR NAMELIKE(4) AND VAR24<=(-4.945);
涨停价:IF(VAR25,REF(CLOSE,1)*1.05,REF(CLOSE,1)*1.1),NODRAW,COLORRED;
跌停价:IF(VAR26,REF(CLOSE,1)*0.95,REF(CLOSE,1)*0.9),NODRAW,COLORGREEN;
VAR27:=NAMELIKE(2)=1 OR NAMELIKE(3)=1 OR NAMELIKE(5)=1 OR NAMELIKE(6)=1 OR NAMELIKE(7)=1;
VAR28:=CLOSE/REF(CLOSE,1)>1.095 OR (CLOSE/REF(CLOSE,1)>1.0495 AND VAR27);
VAR29:=REF(CLOSE,1)/CLOSE>1.0995 AND REF(CLOSE,1)/CLOSE<1.1 OR (REF(CLOSE,1)/CLOSE>1.0495 AND VAR27);
STICKLINE(VAR28,CLOSE,OPEN,3,0),COLORMAGENTA;
STICKLINE(VAR29,CLOSE,OPEN,3,0),COLORGREEN;
DRAWICON(HIGH=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE!=HIGH,LOW*0.965,15);
 

p20185517203931942.jpg

p20185517203931942.jpg

20185517203342439.rar

4.09 KB, 下载次数: 0

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

20185517203342439.rar

回复

使用道具 举报

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

本版积分规则