DRAWGBK(CLOSE<HHV(HIGH,0),COLORRGB(60,15,35),COLORRGB(50,50,90),1);
多空标准:="MASS.A";
G:=IF(HIGH=HHV(HIGH,3),1,0);
D:=IF(LOW=LLV(LOW,3),1,0);
S:=IF(REF(G,2)=1 AND REF(G,1)=0 AND G=0,REF(HIGH,2),REF(HIGH,2+(BARSLAST(REF(G,2)=1 AND REF(G,1)=0 AND G=0))));
X:=IF(REF(D,2)=1 AND REF(D,1)=0 AND D=0,REF(LOW,2),REF(LOW,2+(BARSLAST(REF(D,2)=1 AND REF(D,1)=0 AND D=0))));
压力:=IF(HIGH>=MA(CLOSE,1),S,REF(S,BARSLAST(HIGH>MA(CLOSE,1))));
支撑:=IF(LOW<=MA(CLOSE,5),X,REF(X,BARSLAST(LOW<=MA(CLOSE,5))));
多空:="MASS.A";
C1:=REF(CLOSE,1)<=压力 AND CLOSE>压力;
C2:=REF(CLOSE,1)>=支撑 AND CLOSE<支撑;
K3:=BARSLAST(C1);
K4:=BARSLAST(C2);
K0:=K3<K4;
PARTLINE(K3<K4,支撑),LINETHICK2,colorFFFF;
PARTLINE(K3>K4,压力),LINETHICK2,colorFFFFFF;
标准:=IF(K3>K4,HHV(压力,BARSLAST(C1)),LLV(支撑,BARSLAST(C2)));
PARTLINE(BETWEEN(CLOSE,标准,多空标准),多空标准),LINETHICK2,colorFFFF00;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),LOW,HIGH,0.5,0),LINETHICK5,color10000;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),OPEN,CLOSE,9,0),LINETHICK5,color10000;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),LOW,HIGH,0.5,0),LINETHICK5,color10000;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),OPEN,CLOSE,9,0),LINETHICK5,color10000;
X:=(BARSLAST(SYSPARAM(2)=BARPOS))+1;
NS:=IF(HHV(ABS(HHV(CLOSE,DA)/LLV(CLOSE,DA)-1),DA)>10/100,3,DA);
N1:=IF(DATATYPE=2,NS*48,IF(DATATYPE=3,NS*16,IF(DATATYPE=4,NS*8,IF(DATATYPE=5,NS*4,NS))));
MM:=IF(STKTYPE=0 OR P=0 OR VOL=0,MA(CLOSE,N1),SUM(AMOUNT,N1)/SUM(VOL,N1)/100);
M1:=REF(MM,1);
买入:=IF(CROSS(CLOSE,M1),M1,0);
卖出:=IF(CROSS(M1,CLOSE),M1,0);
参考操盘价:M1,LINETHICK0,PRECISION2,colorFFFFFF;
YE:=BARPOS;
费用:=FY/1000;
DW:=BARSLAST(卖出>0);
EX10:=HHV(买入>0,DW+1);
BJ:=IF(EX10>REF(EX10,1),买入,0);
SJ:=IF(EX10<REF(EX10,1),卖出,0);
BNN:=BARSLAST(BJ>0);
CC:=REF(BJ,BNN);
盈利:=SJ*(1-费用)-CC*(1+费用);
YL:=SUM(IF(SJ>0,盈利,0),0);
每股盈利:YL,LINETHICK0,PRECISION2,colorFFFFFF;
CN:=SUM(IF(SJ>0 AND REF(CC,1)>0,1,0),0);
CG:=SUM(IF(SJ>0 AND 盈利>0,1,0),0);
成功率:100*CG/CN,LINETHICK0,PRECISION1,color88FF;
H1:=HHV(IF(CT=2,成功率,YL),X);
L1:=LLV(IF(CT=2,成功率,YL),X);
AH:=H1[DATACOUNT];
AL:=L1[DATACOUNT];
AHL:=AH-AL;
POLYLINE(CT=2,成功率),color88FF;
买入均价:SUM(BJ,0)/CN,LINETHICK0,PRECISION1,colorFF;
年收益:100*(240*YL/YE)/买入,LINETHICK0,PRECISION1,colorFF;
持股时间:(SUM(IF(SJ>0 AND CC>0,REF(BNN,1)+1,0),0))/(YE),LINETHICK0,PRECISION2,colorFF00FF;
交易:CN,LINETHICK0,PRECISION0,colorAAAAAA;
(次)成功:CG,LINETHICK0,PRECISION0,colorAAAAAA;
年交均次:=240*CN/YE;
MON:=SUM(IF(MONTH<>REF(MONTH,1),1,0),0);
上市年:=MON/12;
DRAWNUMBER(BJ>0,LOW*0.95,BJ,2),ALIGN0,colorFF;
DRAWICON(BJ>0 AND CT=1,LOW*0.97,4);
DRAWNUMBER(SJ>0 AND CT=1 AND 盈利/(CC*(1+费用))*100>=0,HIGH*1.1,盈利/(CC*(1+费用))*100,1),ALIGN0,colorFF;
DRAWNUMBER(SJ>0 AND CT=1 AND 盈利/(CC*(1+费用))*100<0,HIGH*1.1,盈利/(CC*(1+费用))*100,1),ALIGN0,colorFFFF;
DRAWICON(SJ>0 AND CT=1,HIGH*1.04,5);
DRAWTEXTEX(CLOSE,1,430,30,’☆精准操盘☆’),colorFFFF;
DRAWNUMBER(SJ>0 AND CT=1,HIGH*1.07,SJ,2),ALIGN0,colorFF00;
N波动:(SUM(IF(SJ>0 AND CC>0 AND REF(BNN,1)+1<=N,REF(BNN,1)+1,0),0))/(YE),LINETHICK0,PRECISION2,colorFF00FF;
买价:IF(BJ>0,BJ,0),LINETHICK0,PRECISION2,colorFF;
卖价:IF(SJ>0,SJ,0),LINETHICK0,PRECISION2,colorFF00;
DRAWTEXTEX(CLOSE,1,0,0,’年盈利:’+NUMTOSTR(YL,2)+’元 成功率:’+NUMTOSTR(成功率,1)+’% 年收益:’+NUMTOSTR(年收益,1)+’%’+’ 持股时间比:’+NUMTOSTR(持股时间,1)+’/n’+’交易:’+NUMTOSTR(交易,0)+’次 成功:’+NUMTOSTR(CG,0)+’次 年均:’+NUMTOSTR(年交均次,1)+’次 总共:’+NUMTOSTR(YE,0)+’K线’),colorFFFF;
临界:=(CLOSE/M1-1)*100;
增减:=临界-100*(REF(CLOSE,1)/REF(M1,1)-1);
DRAWTEXTEX(CLOSE,1,620,0,’当前 信号持续:’+NUMTOSTR(BNN,0)+'(K线)’+’ 最高盈利:’+NUMTOSTR(HHV((HIGH/CC-1)*100,BNN+1),1)+’% 买卖临界点:’+NUMTOSTR(临界,1)+’% 增减:’+(NUMTOSTR(IF(BNN>0 AND DATATYPE=6,增减,IF(BNN=0,0,-100)),1))),colorFFFF;
DRAWTEXT(SYSPARAM(3)=BARPOS AND CT<3,HIGH,’.’),color1;
DRAWTEXT(SYSPARAM(3)=BARPOS AND CT<3,LOW,’.’),color1;
参考介入价:MM,LINETHICK0,PRECISION2,colorFFFFFF;
FUA:=HHV(HIGH,15);
FUB:=LLV(LOW,15);
DRAWTEXTEX(CLOSE,1,720,60,’15日最高价:’+NUMTOSTR(FUA,2)+’ ‘),ALIGN2,colorFF;
DRAWTEXTEX(CLOSE,1,840,60,’15日最低价:’+NUMTOSTR(FUB,2)+’ ‘),ALIGN2,colorFF00;
DRAWTEXTEX(CLOSE,1,950,60,’明日操盘价:’+NUMTOSTR(MM,2)+’ ‘),ALIGN2,colorFFFFFF;
STICKLINE(CLOSE>=MM,CLOSE,OPEN,8,0),color88;
STICKLINE(CLOSE>=MM,CLOSE,OPEN,6,0),color99;
STICKLINE(CLOSE>=MM,CLOSE,OPEN,4,0),colorAA;
STICKLINE(CLOSE>=MM,CLOSE,OPEN,2,0),colorBB;
STICKLINE(CLOSE>=MM,CLOSE,OPEN,1,0),colorCC;
STICKLINE(CLOSE>=MM,HIGH,LOW,1,0),colorFF;
STICKLINE(CLOSE<MM,CLOSE,OPEN,8,0),color8800;
STICKLINE(CLOSE<MM,CLOSE,OPEN,6,0),color9900;
STICKLINE(CLOSE<MM,CLOSE,OPEN,4,0),colorAA00;
STICKLINE(CLOSE<MM,CLOSE,OPEN,2,0),colorBB00;
STICKLINE(CLOSE<MM,CLOSE,OPEN,1,0),colorCC00;
STICKLINE(CLOSE<MM,LOW,HIGH,1,0),colorFF00;
STICKLINE(BJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,8,0),color77FF;
STICKLINE(BJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,6,0),color99FF;
STICKLINE(BJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,4,0),colorCCFF;
STICKLINE(BJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,2,0),colorEEFF;
STICKLINE(BJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,1,0),colorFFFF;
STICKLINE(BJ>0 AND CT=1,M1,M1,8,0),colorFFFFFF;
STICKLINE(SJ>0 AND CT=1,CLOSE,(CLOSE+OPEN)/2,8,0),colorFF8800;
STICKLINE(SJ>0 AND CT=1,CLOSE,(CLOSE+OPEN)/2,6,0),colorFFAA11;
STICKLINE(SJ>0 AND CT=1,CLOSE,(CLOSE+OPEN)/2,4,0),colorFFCC22;
STICKLINE(SJ>0 AND CT=1,CLOSE,(CLOSE+OPEN)/2,2,0),colorFFEE33;
STICKLINE(SJ>0 AND CT=1,CLOSE,(CLOSE+OPEN)/2,1,0),colorFFFF33;
STICKLINE(SJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,8,0),color990000;
STICKLINE(SJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,6,0),colorAA0000;
STICKLINE(SJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,4,0),colorBB0000;
STICKLINE(SJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,2,0),colorFF0000;
STICKLINE(SJ>0 AND CT=1,OPEN,(CLOSE+OPEN)/2,1,0),colorFF0000;
STICKLINE(SJ>0 AND CT=1,M1,M1,8,0),colorFFFFFF;
买入信号:BJ>0 AND CT=1,LINETHICK0;
卖出信号:SJ>0 AND CT=1,LINETHICK0;
持股周期:买入信号 OR COUNT(卖出信号,BARSLAST(买入信号))=0,LINETHICK0;
持币周期:卖出信号 OR COUNT(买入信号,BARSLAST(卖出信号))=0,LINETHICK0;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)