|
楼主 |
发表于 2019-12-18 11:51:47
|
显示全部楼层
参数1: N, 最小: 22, 最大: 125, 缺省: 45
参数2: 承担风险, 最小: 3, 最大: 20, 缺省: 10
参数精灵:
请设置计算参数:
N: Param#0 (22.00--125.00)
承担风险: Param#1 (3.00--20.00)
X_1:=IF(DATE<1200830 AND DATE>900101,1,0);
低点:IF(CURRBARSCOUNT<=N,CONST(IF(ISLASTBAR=1,LLV(LOW,BARSLAST(CURRBARSCOUNT=45)),1)),DRAWNULL),COLORRED,LINETHICK3;
X_2:=CONST(LLVBARS(LOW,45))+1=CURRBARSCOUNT;
DRAWICON(X_2,低点,34);
止损位:IF(CURRBARSCOUNT<=N,CONST(IF(ISLASTBAR=1,LLV(低点*(100-承担风险)/100,BARSLAST(CURRBARSCOUNT=45)),1)),DRAWNULL),COLORFF8000,LINETHICK3;
X_3:=((低点-低点*0.01)/CLOSE-1)*100*X_1;
DRAWTEXT_FIX(CLOSE>0,0.32,0,0,STRCAT(STRCAT(764,CON2STR(-承担风险,2)),765)),COLORYELLOW;
计划仓位:IF(承担风险/ABS(X_3)*100>=100,100-ABS(X_3),承担风险/ABS(X_3)*100),NODRAW,COLORRED;
DRAWTEXT(CURRBARSCOUNT=N,低点*1.02,STRCAT(STRCAT(766,VAR2STR(低点,2)),6)),COLORRED;
DRAWTEXT(CURRBARSCOUNT=N,止损位*1.02,STRCAT(STRCAT(767,VAR2STR(止损位,2)),6)),COLORFF8000;
X_4:=ISLASTBAR AND 计划仓位<=6;
X_5:=ISLASTBAR AND 6<计划仓位 AND 计划仓位<15;
X_6:=ISLASTBAR AND 15<计划仓位 AND 计划仓位<25;
X_7:=ISLASTBAR AND 25<计划仓位 AND 计划仓位<35;
X_8:=ISLASTBAR AND 35<计划仓位 AND 计划仓位<45;
X_9:=ISLASTBAR AND 45<计划仓位 AND 计划仓位<55;
X_10:=ISLASTBAR AND 55<计划仓位 AND 计划仓位<65;
X_11:=ISLASTBAR AND 65<计划仓位 AND 计划仓位<75;
X_12:=ISLASTBAR AND 75<计划仓位 AND 计划仓位<85;
X_13:=ISLASTBAR AND 85<计划仓位 AND 计划仓位<95;
X_14:=ISLASTBAR AND 95<计划仓位;
DRAWGBK(X_4=1,0,0,0,768,0);
DRAWGBK(X_14=1,0,0,0,769,0);
DRAWGBK(X_13=1,0,0,0,770,0);
DRAWGBK(X_12=1,0,0,0,771,0);
DRAWGBK(X_11=1,0,0,0,772,0);
DRAWGBK(X_10=1,0,0,0,773,0);
DRAWGBK(X_9=1,0,0,0,774,0);
DRAWGBK(X_8=1,0,0,0,775,0);
DRAWGBK(X_7=1,0,0,0,776,0);
DRAWGBK(X_6=1,0,0,0,777,0);
DRAWGBK(X_5=1,0,0,0,778,0);
X_15:=LLVBARS(LOW,60);
X_16:=BARSLAST(CURRBARSCOUNT=CONST(X_15)+1);
X_17:=FINDHIGHBARS(HIGH,X_15+1,60,1);
AA1:DRAWLINE(CURRBARSCOUNT=CONST(X_17)+1,HIGH,ISLASTBAR,REF(HIGH,X_17),0),COLORYELLOW,LINETHICK2;
X_18:=BARSLAST(CURRBARSCOUNT=CONST(X_17)+1);
X_19:=CROSS(CLOSE,CONST(AA1*X_1));
X_20:=COUNT(X_19,X_18+1)=1 AND X_19;
X_21:=COUNT(VOL<MA(VOL,277),X_18+1);
X_22:=X_21/(X_18+1)*100;
X_23:=X_20 AND X_18>40 AND X_22>70;
X_24:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(X_23))+1);
X_25:=REF(HIGH,X_18);
X_26:=REF(LOW,X_16);
X_27:=REF(CLOSE,X_24);
X_28:=(X_27-X_26)/X_26*100;
X_29:=X_28/REF(X_16,X_24);
X_30:=X_23 AND X_29<2.95;
牛线2号:DRAWLINE(X_16=0,(AA1-LOW)*0.618+LOW,ISLASTBAR,REF((AA1-LOW)*0.618+LOW,X_16),0),DOTLINE,COLORLIMAGENTA;
DRAWICON(X_30,LOW*0.95,9);
DRAWTEXT(X_16=0,LOW*0.98,749),COLORYELLOW;
X_31:=IF(CLOSE>OPEN OR (CLOSE=OPEN AND CLOSE>=REF(CLOSE,1)),VOL,0);
X_32:=IF(CLOSE<OPEN OR (CLOSE=OPEN AND CLOSE<REF(CLOSE,1)),VOL,0);
X_33:=SUM(X_31,X_16)/SUM(X_32,X_16);
X_34:=COUNT(CROSS(CLOSE>=牛线2号,0.5),X_16+1)=1 AND CROSS(CLOSE>=牛线2号,0.5) AND X_33>1.5*X_1;
DRAWICON(X_34*X_1,LOW*0.95,25);
STICKLINE(X_34*X_1,CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE(X_34*X_1,HIGH,LOW,0,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,AA1*0.999,STRCAT(738,CON2STR(AA1,2))),COLORYELLOW;
DRAWTEXT(X_18=0,REF(HIGH,X_18)*1.0007,VARCAT(VARCAT(702,VAR2STR(REF(HIGH,X_18),2)),6)),COLORWHITE;
X_35:=COUNT(CROSS(CLOSE>=AA1*X_1,0.5),X_18+1)=1 AND CROSS(CLOSE>=AA1*X_1,0.5) AND X_15>1.5;
DRAWICON(CROSS(CLOSE,AA1*X_1) AND CURRBARSCOUNT<CONST(X_18)+1,LOW,23);
DRAWTEXT(CURRBARSCOUNT=1,牛线2号*0.999,STRCAT(739,CON2STR(牛线2号,2))),COLORWHITE;
STICKLINE(X_35,CLOSE,OPEN,5,1),COLORLIRED;
STICKLINE(X_35,CLOSE,OPEN,0.7,1),COLORYELLOW;
ZNOTEXT1:IF(CLOSE>=AA1*X_1,AA1*X_1,DRAWNULL),COLORLIMAGENTA,LINETHICK5;
IF(CLOSE>=AA1*X_1,AA1*X_1,DRAWNULL),DOTLINE,COLORWHITE;
ZNOTEXT2:IF(CLOSE<AA1*X_1,AA1*X_1,DRAWNULL),COLORGREEN,LINETHICK2;
IF(CLOSE<AA1*X_1,AA1*X_1,DRAWNULL),DOTLINE,COLORRED;
ZNOTEXT1FF:IF(CLOSE>=牛线2号,牛线2号,DRAWNULL),COLORLIMAGENTA,LINETHICK5;
IF(CLOSE>=牛线2号,牛线2号,DRAWNULL),DOTLINE,COLORWHITE;
X_36:=10;
X_37:=REF(CLOSE,X_36)=HHV(CLOSE,2*X_36+1);
X_38:=BACKSET(X_37,X_36+1);
X_39:=FILTER(X_38,X_36) AND CLOSE=HHV(CLOSE,X_36+1);
X_40:=BARSLAST(X_39);
X_41:=IF(X_39,CURRBARSCOUNT,0);
X_42:=IF(X_40,REF(CLOSE,X_40),CLOSE);
X_43:=REF(X_42,X_40+1);
X_44:=IF(X_40,REF(X_41,X_40),X_41);
X_45:=CONST(X_44);
X_46:=REF(X_44,X_40+10);
小牛等突破:DRAWLINE(CURRBARSCOUNT=X_45,CLOSE,ISLASTBAR,REF(CLOSE,X_45-1),1),COLORRED,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=1,小牛等突破*0.999,STRCAT(123,CON2STR(小牛等突破,2))),COLORWHITE;
X_47:=BARSLAST(CURRBARSCOUNT=CONST(X_45)-1);
DRAWTEXT(X_47=0,REF(HIGH,X_47)*1.0007,VARCAT(VARCAT(779,VAR2STR(REF(HIGH,X_47),2)),6)),COLORYELLOW;
X_48:=COUNT(CROSS(CLOSE>=小牛等突破,0.5),X_18+1)=1 AND CROSS(CLOSE>=小牛等突破,0.5) AND X_15>1.5;
DRAWICON(CROSS(CLOSE,小牛等突破) AND CURRBARSCOUNT<CONST(X_18)+1,LOW,13);
STICKLINE(X_35,(OPEN+CLOSE)/2-0.01,(OPEN+CLOSE)/2+0.01,4,0),COLORGREEN;
STICKLINE(X_48,(OPEN+CLOSE)/2-0.01,(OPEN+CLOSE)/2+0.01,4,0),COLORYELLOW;
STICKLINE(X_48,CLOSE,OPEN,5,1),COLORMAGENTA;
STICKLINE(X_48,CLOSE,OPEN,0.7,1),COLORYELLOW;
ZNOTEXT11:IF(CLOSE>=小牛等突破,小牛等突破,DRAWNULL),COLORLIMAGENTA,LINETHICK5;
IF(CLOSE>=小牛等突破,小牛等突破,DRAWNULL),DOTLINE,COLORWHITE;
ZNOTEXT22:IF(CLOSE<小牛等突破,小牛等突破,DRAWNULL),COLORGREEN,LINETHICK2;
IF(CLOSE<小牛等突破,小牛等突破,DRAWNULL),DOTLINE,COLORRED;
X_49:=REF(HIGH,10)=HHV(HIGH,2*10+1);
X_50:=BACKSET(X_49,10+1);
X_51:=FILTER(X_50,10) AND HIGH=HHV(HIGH,10+1);
X_52:=BARSLAST(X_51);
X_53:=IF(X_51,CURRBARSCOUNT,0);
X_54:=IF(X_52,REF(X_53,X_52),X_53);
X_55:=CONST(X_54);
X_56:=REF(X_54,X_52+1);
X_57:=CONST(X_56);
X_58:=INTPART(3*8/5);
X_59:=REF(HIGH,X_58)=HHV(HIGH,2*X_58+1);
X_60:=FILTER(X_59,X_58);
X_61:=BACKSET(X_60,X_58+1);
X_62:=FILTER(X_61,X_58);
X_63:=BACKSET(ISLASTBAR,BARSLAST(X_62)+1);
X_64:=X_63>REF(X_63,1);
XG11QQQ:DRAWLINE(X_62,HIGH,X_64,HIGH,1),COLORGREEN,LINETHICK2;
ZNOTEXT1QQWW:IF(CLOSE>=XG11QQQ,XG11QQQ,DRAWNULL),COLORLIMAGENTA,LINETHICK5;
IF(CLOSE>=XG11QQQ,XG11QQQ,DRAWNULL),DOTLINE,COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,XG11QQQ*0.999,STRCAT(741,CON2STR(XG11QQQ,2))),COLORWHITE;
X_65:=COUNT(CROSS(CLOSE>=XG11QQQ,0.5),X_18+1)=1 AND CROSS(CLOSE>=XG11QQQ,0.5) AND X_15>1.5;
STICKLINE(X_65,CLOSE,OPEN,5,1),COLORWHITE;
STICKLINE(X_65,CLOSE,OPEN,0.7,0),COLORMAGENTA;
DRAWTEXT(X_65,HIGH*1.009,750),COLORYELLOW;
X_66:=CONST(LLVBARS(LOW,10));
X_67:=CONST(REF(HIGH,X_66));
X_68:=CONST(CURRBARSCOUNT);
X_69:=CONST(BARSLAST(CURRBARSCOUNT>X_68+X_66 AND HIGH>X_67));
X_70:=CONST(REF(HIGH,X_69));
X_71:=CONST(BARSLAST(CURRBARSCOUNT>X_68+X_69 AND HIGH>X_70));
X_72:=CONST(REF(HIGH,X_71));
必赢线:DRAWLINE(CURRBARSCOUNT=X_71+1,X_72,ISLASTBAR,X_72,1),COLORGREEN,LINETHICK2;
ZNOTEXT111:IF(CLOSE>=必赢线,必赢线,DRAWNULL),COLORLIMAGENTA,LINETHICK3;
IF(CLOSE>=必赢线,必赢线,DRAWNULL),DOTLINE,COLORWHITE;
ZNOTEXT222:IF(CLOSE<必赢线,必赢线,DRAWNULL),COLORGREEN,LINETHICK3;
IF(CLOSE<必赢线,必赢线,DRAWNULL),DOTLINE,COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,X_72*0.999,STRCAT(780,CON2STR(X_72,2))),COLORYELLOW;
DRAWTEXT(X_35,HIGH*0.999,781),COLORYELLOW;
DRAWTEXT(X_48,HIGH*0.999,782),COLORYELLOW;
X_73:=BARSLAST(CROSS(HIGH>REF(HIGH,1) AND HIGH>REFX(HIGH,1),0.5));
X_74:=IF(X_73=0,HIGH,DRAWNULL);
X_75:=ALIGNRIGHT(X_74);
X_76:=CONST(X_75);
X_77:=BARSLAST(CROSS(X_74>X_76,0.5));
X_78:=BARSLAST(X_74=X_76);
X_79:=BARSLAST(CROSS(LOW<REF(LOW,1) AND LOW<REFX(LOW,1),0.5));
X_80:=BARSLAST(LOW=LLV(LOW,X_77+1) AND X_79=0);
X_81:=CONST(REF(LOW,X_79));
X_82:=BARSLAST(LOW=X_81);
斜率1号:DRAWLINE(CURRBARSCOUNT=CONST(X_77)+1,X_74,CURRBARSCOUNT=CONST(X_78)+1,X_76,1),COLORBLUE,LINETHICK3;
ZNOTEXT1QQ大宝:DRAWLINE(CURRBARSCOUNT=CONST(X_77)+1,X_74,CURRBARSCOUNT=CONST(X_78)+1,X_76,1),DOTLINE,COLORWHITE;
斜率2号:DRAWLINE(CURRBARSCOUNT=CONST(X_80)+1,LOW,CURRBARSCOUNT=CONST(X_82)+1,LOW,1),COLORBLUE,LINETHICK3;
ZNOTEXT1QQ小宝:DRAWLINE(CURRBARSCOUNT=CONST(X_80)+1,LOW,CURRBARSCOUNT=CONST(X_82)+1,LOW,1),DOTLINE,COLORWHITE;
DRAWNUMBER(ISLASTBAR,斜率1号,斜率1号),COLORWHITE;
DRAWNUMBER(ISLASTBAR,斜率2号,斜率2号),COLORWHITE;
X_83:=10;
X_84:=CONST(HHVBARS(VOL,X_83));
X_85:=10;
X_86:=CONST(LLVBARS(VOL,X_85));
M0:IF(CURRBARSCOUNT<=X_85+7,CONST(IF(X_86=0,OPEN,REF(OPEN,X_86))),DRAWNULL),COLORGREEN,LINETHICK4;
IF(CURRBARSCOUNT=X_86+1,M0,DRAWNULL),CIRCLEDOT,COLORYELLOW,LINETHICK3;
DRAWTEXT(CURRBARSCOUNT=1,M0*0.999,STRCAT(783,CON2STR(M0,2))),COLORYELLOW;
X_87:=COUNT(CROSS(CLOSE>=M0,0.5),X_18+1)=1 AND CROSS(CLOSE>=M0,0.5) AND X_15>1.5;
ZNOTEXT1QQ:IF(CLOSE>=M0,M0,DRAWNULL),COLORLIMAGENTA,LINETHICK5;
IF(CLOSE>=M0,M0,DRAWNULL),DOTLINE,COLORWHITE;
STICKLINE(X_87,CLOSE,OPEN,5,1),COLORWHITE;
STICKLINE(X_87,CLOSE,OPEN,0.7,1),COLORGREEN;
DRAWTEXT(X_87,HIGH*0.999,784),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.14,0,STRCAT(90,EXTERNSTR(0,2001))),COLORWHITE;
DRAWTEXT_FIX(1,0,0.17,0,STRCAT(STRCAT(STRCAT(STRCAT(EXTERNSTR(0,9882),91),EXTERNSTR(0,9883)),92),EXTERNSTR(0,9884))),COLORYELLOW;
DRAWTEXT_FIX(1,0.3,0.1,0,STRCAT(STRCAT(STRCAT(STRCAT(EXTERNSTR(0,2000),94),EXTERNSTR(0,2008)),751),EXTERNSTR(0,1100))),COLORAFFF00;
X_88:=CLOSE/REF(CLOSE,3)>=1.1;
X_89:=BACKSET(X_88,3);
X_90:=TROUGHBARS(3,10,1)<4;
|
|