以下是通达信压力支撑八根线公式

通达信压力支撑八根线公式

P = 1  3  2
N:=POW(2,P);
FF:=CONST(REF(C,1));
AAJ:=IF((FF < 100),FF,(FF / 100));
A:=INTPART(((N * (LOG(AAJ) / LOG(2))) + 1));
Y1:=(A/N);
Y2:=((A+1 ) / N);
Y3:=((A+2 ) / N);
Y4:=((A+3 ) / N);
Z1:=((A-1) / N);{第一个支撑}
Z2:=((A-2) / N);更多指标公式:www.shenqizhibiao.com
Z3:=((A-3) / N);
Z4:=((A-4) / N);

ZC1:=IF((FF > 100),(POW(2,Z1) * 100),POW(2,Z1));
ZC2:=IF((FF > 100),(POW(2,Z2) * 100),POW(2,Z2));
ZC3:=IF((FF > 100),(POW(2,Z3) * 100),POW(2,Z3));
ZC4:=IF((FF > 100),(POW(2,Z4) * 100),POW(2,Z4));

YL1:=IF((FF > 100),(POW(2,Y1) * 100),POW(2,Y1));
YL2:=IF((FF > 100),(POW(2,Y2) * 100),POW(2,Y2));
YL3:=IF((FF > 100),(POW(2,Y3) * 100),POW(2,Y3));
YL4:=IF((FF > 100),(POW(2,Y4) * 100),POW(2,Y4));
压一:IF(CURRBARSCOUNT<=240,YL1,DRAWNULL),COLOR05DDFC;
支一:IF(CURRBARSCOUNT<=240,ZC1,DRAWNULL),COLOR00F24F;
支二:IF(CURRBARSCOUNT<=240,ZC2,DRAWNULL),CIRCLEDOT,COLORBROWN ,LINETHICK1;
压二:IF(CURRBARSCOUNT<=240,YL2,DRAWNULL)CIRCLEDOT,COLORWHITE ,LINETHICK1;
支三:IF(CURRBARSCOUNT<=240,ZC3,DRAWNULL),CIRCLEDOT,COLORBLUE,LINETHICK1;
压三:IF(CURRBARSCOUNT<=240,YL3,DRAWNULL)CIRCLEDOT,COLORMAGENTA,LINETHICK1;
支四:IF(CURRBARSCOUNT<=240,ZC4,DRAWNULL)CIRCLEDOT,COLORLIMAGENTA,LINETHICK1;
压四:IF(CURRBARSCOUNT<=240,YL4,DRAWNULL)CIRCLEDOT,COLORBROWN ,LINETHICK1;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。