{公式名称: 常用主图
公式描述: 量学主图
参数数量: 1
参数1: 天数, 最小: 5, 最大: 300, 缺省: 20
主图叠加}
VAR1:=STRCAT(4,STRCAT(STRCAT(STRCAT(5,HYBLOCK),STRCAT(6,DYBLOCK)),STRCAT(7,GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,VAR1);
均价:AMOUNT/VOL/100,NODRAW,COLORWHITE;
VAR2:=(CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10;
STICKLINE(VAR2=1,OPEN,CLOSE,3,0),COLORMAGENTA;
VAR3:=MIN(CLOSE,OPEN)>REF(MAX(CLOSE,OPEN),1);
明日涨停参考:CLOSE*1.1,NODRAW,COLORWHITE;
STICKLINE(VAR3=1,OPEN,CLOSE,0.4,0),COLORYELLOW;
价柱腰价:(LOW+HIGH)/2,NODRAW,COLORWHITE;
实体腰价:(OPEN+CLOSE)/2,NODRAW,COLORWHITE;
价柱上三一价:MAX(HIGH,LOW)-(HIGH-LOW)/3,NODRAW,COLORWHITE;
价柱下三一价:MIN(HIGH,LOW)+(HIGH-LOW)/3,NODRAW,COLORWHITE;
实体上三一价:MAX(OPEN,CLOSE)-ABS(OPEN-CLOSE)/3,NODRAW,COLORWHITE;
实体下三一价:MIN(OPEN,CLOSE)+ABS(OPEN-CLOSE)/3,NODRAW,COLORWHITE;
VAR4:=FINDHIGHBARS(VOL,1,天数,1);
VAR5:=FINDHIGHBARS(VOL,VAR4+5,天数,1);
VAR6:=FINDHIGHBARS(VOL,10,100,1);
VAR7:=FINDLOWBARS(VOL,5,100,1);
VAR8:=CURRBARSCOUNT;
VAR9:=0;
VAR10:=CONST(VAR4);
VAR11:=CONST(VAR5);
VAR12:=CONST(VAR6);
VAR13:=CONST(VAR7);
VAR14:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),VAR10+VAR9));
VAR15:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),VAR10+VAR9));
DRAWICON(CURRBARSCOUNT=VAR10+1,LOW*0.98,38),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=VAR10,VAR14,VAR14,4,1),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT<=VAR10,VAR15,VAR15,2,(-1)),COLORMAGENTA;
VAR16:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),VAR11+VAR9));
VAR17:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),VAR11+VAR9));
DRAWICON(CURRBARSCOUNT=VAR11+1,LOW*0.98,11),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=VAR11,VAR16,VAR16,4,1),COLORLICYAN;
STICKLINE(CURRBARSCOUNT<=VAR11,VAR17,VAR17,2,(-1)),COLORLICYAN;
VAR18:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),VAR12));
DRAWICON(CURRBARSCOUNT=VAR12+1,HIGH,35),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=VAR12,VAR18,VAR18,4,(-1)),COLORRED;
VAR19:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),VAR13));
DRAWICON(CURRBARSCOUNT=VAR13+1,LOW*0.97,34),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=VAR13,VAR19,VAR19,1,(-1)),COLORRED;
{分析家公式网 WWW.70822.COM 整理}
p20206133582456607.jpg
|