量价:=(vol/CLOSE)/3;
A2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);
A3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);
A6:=A2+A3;DD1:=1;比:=A2/A3;
AAA1:=STRCAT(STRCAT(‘买= ‘,CON2STR((100*A2)/A6,0)),’%’);
AAA2:=STRCAT(STRCAT(‘卖= ‘,CON2STR((100*A3)/A6,0)),’%’);
AAA3:=STRCAT(STRCAT(‘差= ‘,CON2STR((100*(A2-A3))/A6,0)),’%’);
DRAWTEXT_FIX(DD1=1,0,0.04,0,AAA1),COLORRED;
DRAWTEXT_FIX(DD1=1,0,0.12,0,AAA2),COLORGREEN;
DRAWTEXT_FIX(DD1=1,0,0.20,0,AAA3),COLOR00FFFF;
IF(macd.DEA<0,C,DRAWNULL),COLORYELLOW ,LINETHICK9;
A1:=IF((CURRBARSCOUNT = 1),((VOL * 240) / FROMOPEN),VOL);
AA2:=((A1 * 10000) / FINANCE(7));
AA3:=CONST(BArslAST((AA2 = HHV(AA2,180))));
A4:=IF((CURRBARSCOUNT <= (AA3 + 1)),CONST(REF(((((CLOSE + OPEN) + HIGH) + LOW) / 4),AA3)),DRAWNULL);
A5:=A4;
止盈价:A5,COLORYELLOW;
止盈:=VARCAT(VARCAT(‘止赢价:’,VAR2STR(止盈价,2)),’元’);
DRAWTEXT_FIX(ISLASTBAR,0.99,0.99,1,止盈)COLOR8000FF;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)