早上好...发一下自用分时部分源码,,喜欢的可以自己添加在自己的分时图上.
止盈不代表能卖到最最高点,会改的可以自己改的更好一些,
A1:=IF((CURRBARSCOUNT = 1),((VOL * 240) / FROMOPEN),VOL);
A2:=((A1 * 10000) / FINANCE(7));
A3:=CONST(BARSLAST((A2 = HHV(A2,180))));
A4:=IF((CURRBARSCOUNT = (A3 + 1)),CONST(REF(((((CLOSE + OPEN) + HIGH) + LOW) / 4),A3)),DRAWNULL);
A5:=A4;
止盈价:A5,COLORYELLOW;
止盈:=VARCAT(VARCAT('止赢价:',VAR2STR(止盈价,2)),'元');
DRAWTEXT_FIX(ISLASTBAR,0.99,0.99,1,止盈)COLOR8000FF;