您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

求助 麻烦老师帮忙把文华的指标改成博易大师的 非常感谢 [博易POBO]

咨询内容: 求助 麻烦老师帮忙把文华的指标改成博易大师的 非常感谢 //DRAWGBK(OPEN>CLOSE,RGB(1,88,92),RGB(1,22,28),0,7,0);

 XH25:=REFX1(MA(H,25),25/2);
XHH25:=REFX1(XH25,25/2);
XL25:=REFX1(MA(L,25),25/2);
XLL25:=REFX1(XL25,25/2);

 XH60:=REFX1(MA(H,60),60/2);
XHH60:=REFX1(XH60,60/2);
XL60:=REFX1(MA(L,60),60/2);
XLL60:=REFX1(XL60,60/2);




XA_1:=1;

XA_2:=( REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)  -REFX1(MA(REFX1(MA(L,25),25/2),25),25/2) )*1+REFX1(MA(REFX1(MA(H,25),25/2),25),25/2);
XA_3:= REFX1(MA(REFX1(MA(L,25),25/2),25),25/2)-(REFX1(MA(REFX1(MA(H,25),25/2),25),25/2)-REFX1(MA(REFX1(MA(L,25),25/2),25),25/2))*1;
XA_4:=XA_1*(REFX1(MA(REFX1(MA(H,60),60/2),60),60/2)-REFX1(MA(REFX1(MA(L,60),60/2),60),60/2))*2.2+REFX1(MA(REFX1(MA(H,60),60/2),60),60/2);
XA_5:=XA_1*   REFX1(MA(REFX1(MA(L,60),60/2),60),60/2)-(  REFX1(MA(REFX1(MA(H,60),60/2),60),60/2)-REFX1(MA(REFX1(MA(L,60),60/2),60),60/2)  )*2.8;
XA_6:=XA_1*(XA_2+XA_4)/2;
XA_7:=XA_1*(XA_3+XA_5)/2;

FILLRGN(XA_6+0.5>XA_4+0.5,XA_4+0.5,XA_6+0.5,RGB(0,100,0));
FILLRGN(XA_6+0.5<XA_4+0.5,XA_4+0.5,XA_6+0.5,RGB(0,100,0));



FILLRGN(XA_7-0.5>XA_5-0.5,XA_7-0.5,XA_5-0.5,RGB(150,0,150));
FILLRGN(XA_7-0.5<XA_5-0.5,XA_7-0.5,XA_5-0.5,RGB(150,0,150));

//IF(CLOSE,REFX1(CLOSE,10000),NULL),DOT,COLORWHITE;
//DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
XA_8:=(HIGH+LOW)/2;
XA_9:=XA_8;
XA_10:=REFX1(MA(XA_8,3),3/2);
XA_11:=REFX1(MA(XA_8,5),5/2);
XA_12:=REFX1(MA(XA_8,10),5);
XA_13:=REFX1(MA(XA_8,15),15/2);
XA_14:=REFX1(MA(XA_8,20),10);
XA_15:=REFX1(MA(XA_8,25),25/2);
XA_16:=REFX1(MA(XA_8,30),15);
XA_17:=REFX1(MA(XA_8,35),35/2);
XA_18:=REFX1(MA(XA_8,40),20);
XA_19:=REFX1(MA(XA_8,45),45/2);
XA_20:=REFX1(MA(XA_8,50),25);
XA_21:=REFX1(MA(XA_8,55),55/2);
XA_22:=REFX1(MA(XA_8,60),30);
XA_23:=(XA_10+XA_11+XA_12+XA_13+XA_14+XA_15+XA_16+XA_17+XA_18+XA_19+XA_20+XA_21+XA_22)/13;
XA_24:=(XA_9+XA_10+XA_11)/3;
XA_25:=VALUEWHEN(2>1,XA_23);
XA_26:=XA_9>XA_10 AND XA_9>XA_11 AND XA_9>XA_12 AND XA_9>XA_13 AND XA_9>XA_14 AND XA_9>XA_15 AND XA_9>XA_16 AND 

XA_9>XA_17 AND XA_9>XA_18 AND XA_9>XA_19 AND XA_9>XA_20 AND XA_9>XA_21 AND XA_9>XA_22 AND XA_10>XA_11 AND XA_10>XA_12 

AND XA_10>XA_13 AND XA_10>XA_14 AND XA_10>XA_15 AND XA_10>XA_16;
XA_27:=XA_10>XA_17 AND XA_10>XA_18 AND XA_10>XA_19 AND XA_10>XA_20 AND XA_10>XA_21 AND XA_10>XA_22 AND XA_11>XA_12 AND 

XA_11>XA_13 AND XA_11>XA_14 AND XA_11>XA_15 AND XA_11>XA_16 AND XA_11>XA_17 AND XA_11>XA_18 AND XA_11>XA_19 AND 

XA_11>XA_20 AND XA_11>XA_21 AND XA_11>XA_22 AND XA_12>XA_13 AND XA_12>XA_14 AND XA_12>XA_15 AND XA_12>XA_16 AND 

XA_12>XA_17 AND XA_12>XA_18 AND XA_12>XA_19 AND XA_12>XA_20 AND XA_12>XA_21 AND XA_12>XA_22;
XA_28:=XA_13>XA_14 AND XA_13>XA_15 AND XA_13>XA_16 AND XA_13>XA_17 AND XA_13>XA_18 AND XA_13>XA_19 AND XA_13>XA_20 AND 

XA_13>XA_21 AND XA_13>XA_22 AND XA_14>XA_15 AND XA_14>XA_16 AND XA_14>XA_17 AND XA_14>XA_18 AND XA_14>XA_19 AND 

XA_14>XA_20 AND XA_14>XA_21 AND XA_14>XA_22 AND XA_15>XA_16 AND XA_15>XA_17 AND XA_15>XA_18 AND XA_15>XA_19 AND 

XA_15>XA_20 AND XA_15>XA_21 AND XA_15>XA_22 AND XA_16>XA_17 AND XA_16>XA_18;
XA_29:=XA_16>XA_19 AND XA_16>XA_20 AND XA_16>XA_21 AND XA_16>XA_22 AND XA_17>XA_18 AND XA_17>XA_19 AND XA_17>XA_20 AND 

XA_17>XA_21 AND XA_17>XA_22 AND XA_18>XA_19 AND XA_18>XA_20 AND XA_18>XA_21 AND XA_18>XA_22 AND XA_19>XA_20 AND 

XA_19>XA_21 AND XA_19>XA_22 AND XA_20>XA_21 AND XA_20>XA_22 AND XA_21>XA_22;
XA_30:=XA_26 AND XA_27 AND XA_28 AND XA_29;
XA_31:=XA_9<XA_10 AND XA_9<XA_11 AND XA_9<XA_12 AND XA_9<XA_13 AND XA_9<XA_14 AND XA_9<XA_15 AND XA_9<XA_16 AND 

XA_9<XA_17 AND XA_9<XA_18 AND XA_9<XA_19 AND XA_9<XA_20 AND XA_9<XA_21 AND XA_9<XA_22 AND XA_10<XA_11 AND XA_10<XA_12 

AND XA_10<XA_13 AND XA_10<XA_14 AND XA_10<XA_15 AND XA_10<XA_16;
XA_32:=XA_10<XA_17 AND XA_10<XA_18 AND XA_10<XA_19 AND XA_10<XA_20 AND XA_10<XA_21 AND XA_10<XA_22 AND XA_11<XA_12 AND 

XA_11<XA_13 AND XA_11<XA_14 AND XA_11<XA_15 AND XA_11<XA_16 AND XA_11<XA_17 AND XA_11<XA_18 AND XA_11<XA_19 AND 

XA_11<XA_20 AND XA_11<XA_21 AND XA_11<XA_22 AND XA_12<XA_13 AND XA_12<XA_14;
XA_33:=XA_12<XA_15 AND XA_12<XA_16 AND XA_12<XA_17 AND XA_12<XA_18 AND XA_12<XA_19 AND XA_12<XA_20 AND XA_12<XA_21 AND 

XA_12<XA_22 AND XA_13<XA_14 AND XA_13<XA_15 AND XA_13<XA_16 AND XA_13<XA_17 AND XA_13<XA_18 AND XA_13<XA_19 AND 

XA_13<XA_20 AND XA_13<XA_21 AND XA_13<XA_22 AND XA_14<XA_15;
XA_34:=XA_14<XA_16 AND XA_14<XA_17 AND XA_14<XA_18 AND XA_14<XA_19 AND XA_14<XA_20 AND XA_14<XA_21 AND XA_14<XA_22 AND 

XA_15<XA_16 AND XA_15<XA_17 AND XA_15<XA_18 AND XA_15<XA_19 AND XA_15<XA_20 AND XA_15<XA_21 AND XA_15<XA_22 AND 

XA_16<XA_17 AND XA_16<XA_18 AND XA_16<XA_19 AND XA_16<XA_20;
XA_35:=XA_16<XA_21 AND XA_16<XA_22 AND XA_17<XA_18 AND XA_17<XA_19 AND XA_17<XA_20 AND XA_17<XA_21 AND XA_17<XA_22 AND 

XA_18<XA_19 AND XA_18<XA_20 AND XA_18<XA_21 AND XA_18<XA_22 AND XA_19<XA_20 AND XA_19<XA_21 AND XA_19<XA_22 AND 

XA_20<XA_21 AND XA_20<XA_22 AND XA_21<XA_22;
XA_36:=XA_31 AND XA_32 AND XA_33 AND XA_34 AND XA_35;
XA_37:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
XA_38:=SMA(XA_37,3,1);
XA_39:=SMA(XA_38,3,1);
XA_40:=SMA(XA_39,3,1);
XA_41:=XA_39;
XA_42:=XA_40;
XA_43:=XA_39<20;
XA_44:=XA_39>80;
XA_45:=XA_43 OR XA_44;
/*
STICKLINE(XA_30 OR XA_36 AND CLOSE>=OPEN AND CLOSE<XA_6*1.1 AND XA_45,HIGH,LOW,0.8,0);
STICKLINE(XA_30 OR XA_36 AND CLOSE>=OPEN AND CLOSE<XA_6*1.1 AND XA_45,CLOSE,OPEN,3,0);
STICKLINE(XA_30 OR XA_36 AND CLOSE<OPEN AND CLOSE<XA_7*1.1 AND XA_45,HIGH,LOW,0.8,0);
STICKLINE(XA_30 OR XA_36 AND CLOSE<OPEN AND CLOSE<XA_7*1.1 AND XA_45,CLOSE,OPEN,3,0);
*/
XA_46:=(HIGH+REFX1(MA(H,3),3/2)+REFX1(MA(H,5),5/2)+REFX1(MA(H,10),10/2)+REFX1(MA(H,15),15/2)+REFX1(MA

(H,20),20/2)+XH25+REFX1(MA(H,30),30/2)+REFX1(MA(H,35),35/2)+REFX1(MA(H,40),40/2)+REFX1(MA(H,45),45/2)+REFX1(MA

(H,50),50/2)+REFX1(MA(H,55),55/2)+REFX1(MA(H,60),60/2))/14;
XA_47:=(LOW+REFX1(MA(L,3),3/2)+REFX1(MA(L,5),5/2)+REFX1(MA(L,10),10/2)+REFX1(MA(LOW,15),15/2)+REFX1(MA

(L,20),20/2)+XL25+REFX1(MA(L,30),30/2)+REFX1(MA(L,35),35/2)+REFX1(MA(L,40),40/2)+REFX1(MA(L,45),45/2)+REFX1(MA

(L,50),50/2)+REFX1(MA(L,55),55/2)+REFX1(MA(L,60),60/2))/14;
XA_48:=XA_13>XA_14 AND XA_13>XA_15 AND XA_13>XA_16 AND XA_13>XA_17 AND XA_13>XA_18 AND XA_13>XA_19 AND XA_13>XA_20 AND 

XA_13>XA_21 AND XA_13>XA_22 AND XA_14>XA_15 AND XA_14>XA_16 AND XA_14>XA_17 AND XA_14>XA_18 AND XA_14>XA_19 AND 

XA_14>XA_20 AND XA_14>XA_21 AND XA_14>XA_22 AND XA_15>XA_16 AND XA_15>XA_17 AND XA_15>XA_18 AND XA_15>XA_19 AND 

XA_15>XA_20 AND XA_15>XA_21 AND XA_15>XA_22 AND XA_16>XA_17 AND XA_16>XA_18 AND XA_16>XA_19 AND XA_16>XA_20 AND 

XA_16>XA_21 AND XA_16>XA_22 AND XA_17>XA_18 AND XA_17>XA_19 AND XA_17>XA_20 AND XA_17>XA_21 AND XA_17>XA_22 AND 

XA_18>XA_19 AND XA_18>XA_20 AND XA_18>XA_21 AND XA_18>XA_22 AND XA_19>XA_20 AND XA_19>XA_21 AND XA_19>XA_22 AND 

XA_20>XA_21 AND XA_20>XA_22 AND XA_21>XA_22;
XA_49:=XA_13<XA_14 AND XA_13<XA_15 AND XA_13<XA_16 AND XA_13<XA_17 AND XA_13<XA_18 AND XA_13<XA_19 AND XA_13<XA_20 AND 

XA_13<XA_21 AND XA_13<XA_22 AND XA_14<XA_15 AND XA_14<XA_16 AND XA_14<XA_17 AND XA_14<XA_18 AND XA_14<XA_19 AND 

XA_14<XA_20 AND XA_14<XA_21 AND XA_14<XA_22 AND XA_15<XA_16 AND XA_15<XA_17 AND XA_15<XA_18 AND XA_15<XA_19 AND 

XA_15<XA_20 AND XA_15<XA_21 AND XA_15<XA_22 AND XA_16<XA_17 AND XA_16<XA_18 AND XA_16<XA_19 AND XA_16<XA_20 AND 

XA_16<XA_21 AND XA_16<XA_22 AND XA_17<XA_18 AND XA_17<XA_19 AND XA_17<XA_20 AND XA_17<XA_21 AND XA_17<XA_22 AND 

XA_18<XA_19 AND XA_18<XA_20 AND XA_18<XA_21 AND XA_18<XA_22 AND XA_19<XA_20 AND XA_19<XA_21 AND XA_19<XA_22 AND 

XA_20<XA_21 AND XA_20<XA_22 AND XA_21<XA_22;
XA_50:=REFX1(MA(XA_46/XA_47*XA_23+(XA_46/XA_47*XA_23-XA_23),10),5);
XA_51:=REFX1(MA(XA_47/XA_46*XA_23-(XA_23-XA_47/XA_46*XA_23),10),5);
XA_52:=IF(REF(XA_23,1)<XA_23 AND NOT(XA_48),XA_50,NULL);
XA_53:=IF(REF(XA_23,1)>XA_23 AND NOT(XA_49),XA_51,NULL);
XA_54:=REFX1(MA(XA_46/XA_47*XA_23+(XA_46/XA_47*XA_23-XA_23)/2,10),5);
XA_55:=REFX1(MA(XA_47/XA_46*XA_23-0.5*(XA_23-XA_47/XA_46*XA_23),10),5);
XA_56:=IF(REF(XA_23,1)>XA_23,XA_54,NULL);
XA_57:=IF(REF(XA_23,1)<XA_23,XA_55,NULL);
XA_58:=XA_46/XA_47*XA_23+(XA_46/XA_47*XA_23-XA_23)*1.5;
XA_59:=XA_47/XA_46*XA_23-1.5*(XA_23-XA_47/XA_46*XA_23);
XA_60:=VALUEWHEN(2>1,XA_58);
XA_61:=VALUEWHEN(2>1,XA_59);
XA_62:=IF(REF(XA_23,1)<XA_23 AND XA_48,XA_58,NULL);
XA_63:=IF(REF(XA_23,1)>XA_23 AND XA_49,XA_59,NULL);
XA_64:=IF(XA_30,XA_58,NULL);
XA_65:=IF(XA_36,XA_59,NULL);
//NOTEXT_DYN:DYNAINFO(7),DOT,COLORYELLOW;
//DRAWNUMBER(ISLASTBAR=1,DYNAINFO(7),DYNAINFO(7)),COLORWHITE,LINETHICK9;

//DRAWKLINE1(H,O,L,C);

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: XH25:=REFX(MA(H,25),25/2);
XHH25:=REFX(XH25,25/2);
XL25:=REFX(MA(L,25),25/2);
XLL25:=REFX(XL25,25/2);

XH60:=REFX(MA(H,60),60/2);
XHH60:=REFX(XH60,60/2);
XL60:=REFX(MA(L,60),60/2);
XLL60:=REFX(XL60,60/2);

XA_1:=1;

XA_2:=( REFX(MA(REFX(MA(H,25),25/2),25),25/2)  -REFX(MA(REFX(MA(L,25),25/2),25),25/2) )*1+REFX(MA(REFX(MA(H,25),25/2),25),25/2);
XA_3:= REFX(MA(REFX(MA(L,25),25/2),25),25/2)-(REFX(MA(REFX(MA(H,25),25/2),25),25/2)-REFX(MA(REFX(MA(L,25),25/2),25),25/2))*1;
XA_4:=XA_1*(REFX(MA(REFX(MA(H,60),60/2),60),60/2)-REFX(MA(REFX(MA(L,60),60/2),60),60/2))*2.2+REFX(MA(REFX(MA(H,60),60/2),60),60/2);
XA_5:=XA_1*   REFX(MA(REFX(MA(L,60),60/2),60),60/2)-(  REFX(MA(REFX(MA(H,60),60/2),60),60/2)-REFX(MA(REFX(MA(L,60),60/2),60),60/2)  )*2.8;
XA_6:=XA_1*(XA_2+XA_4)/2;
XA_7:=XA_1*(XA_3+XA_5)/2;

FILLRGN(XA_6+0.5>XA_4+0.5,XA_4+0.5,XA_6+0.5),COLOR006400;
FILLRGN(XA_6+0.5<XA_4+0.5,XA_4+0.5,XA_6+0.5),COLOR006400;


FILLRGN(XA_7-0.5>XA_5-0.5,XA_7-0.5,XA_5-0.5),COLOR960096;
FILLRGN(XA_7-0.5<XA_5-0.5,XA_7-0.5,XA_5-0.5),COLOR960096;
//IF(CLOSE,REFX1(CLOSE,10000),NULL),DOT,COLORWHITE;
//DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
XA_8:=(HIGH+LOW)/2;
XA_9:=XA_8;
XA_10:=REFX(MA(XA_8,3),3/2);
XA_11:=REFX(MA(XA_8,5),5/2);
XA_12:=REFX(MA(XA_8,10),5);
XA_13:=REFX(MA(XA_8,15),15/2);
XA_14:=REFX(MA(XA_8,20),10);
XA_15:=REFX(MA(XA_8,25),25/2);
XA_16:=REFX(MA(XA_8,30),15);
XA_17:=REFX(MA(XA_8,35),35/2);
XA_18:=REFX(MA(XA_8,40),20);
XA_19:=REFX(MA(XA_8,45),45/2);
XA_20:=REFX(MA(XA_8,50),25);
XA_21:=REFX(MA(XA_8,55),55/2);
XA_22:=REFX(MA(XA_8,60),30);
XA_23:=(XA_10+XA_11+XA_12+XA_13+XA_14+XA_15+XA_16+XA_17+XA_18+XA_19+XA_20+XA_21+XA_22)/13;
XA_24:=(XA_9+XA_10+XA_11)/3;
XA_25:=VALUEWHEN(2>1,XA_23);
XA_26:=XA_9>XA_10 AND XA_9>XA_11 AND XA_9>XA_12 AND XA_9>XA_13 AND XA_9>XA_14 AND XA_9>XA_15 AND XA_9>XA_16 AND 

XA_9>XA_17 AND XA_9>XA_18 AND XA_9>XA_19 AND XA_9>XA_20 AND XA_9>XA_21 AND XA_9>XA_22 AND XA_10>XA_11 AND XA_10>XA_12 

AND XA_10>XA_13 AND XA_10>XA_14 AND XA_10>XA_15 AND XA_10>XA_16;
XA_27:=XA_10>XA_17 AND XA_10>XA_18 AND XA_10>XA_19 AND XA_10>XA_20 AND XA_10>XA_21 AND XA_10>XA_22 AND XA_11>XA_12 AND 

XA_11>XA_13 AND XA_11>XA_14 AND XA_11>XA_15 AND XA_11>XA_16 AND XA_11>XA_17 AND XA_11>XA_18 AND XA_11>XA_19 AND 

XA_11>XA_20 AND XA_11>XA_21 AND XA_11>XA_22 AND XA_12>XA_13 AND XA_12>XA_14 AND XA_12>XA_15 AND XA_12>XA_16 AND 

XA_12>XA_17 AND XA_12>XA_18 AND XA_12>XA_19 AND XA_12>XA_20 AND XA_12>XA_21 AND XA_12>XA_22;
XA_28:=XA_13>XA_14 AND XA_13>XA_15 AND XA_13>XA_16 AND XA_13>XA_17 AND XA_13>XA_18 AND XA_13>XA_19 AND XA_13>XA_20 AND 

XA_13>XA_21 AND XA_13>XA_22 AND XA_14>XA_15 AND XA_14>XA_16 AND XA_14>XA_17 AND XA_14>XA_18 AND XA_14>XA_19 AND 

XA_14>XA_20 AND XA_14>XA_21 AND XA_14>XA_22 AND XA_15>XA_16 AND XA_15>XA_17 AND XA_15>XA_18 AND XA_15>XA_19 AND 

XA_15>XA_20 AND XA_15>XA_21 AND XA_15>XA_22 AND XA_16>XA_17 AND XA_16>XA_18;
XA_29:=XA_16>XA_19 AND XA_16>XA_20 AND XA_16>XA_21 AND XA_16>XA_22 AND XA_17>XA_18 AND XA_17>XA_19 AND XA_17>XA_20 AND 

XA_17>XA_21 AND XA_17>XA_22 AND XA_18>XA_19 AND XA_18>XA_20 AND XA_18>XA_21 AND XA_18>XA_22 AND XA_19>XA_20 AND 

XA_19>XA_21 AND XA_19>XA_22 AND XA_20>XA_21 AND XA_20>XA_22 AND XA_21>XA_22;
XA_30:=XA_26 AND XA_27 AND XA_28 AND XA_29;
XA_31:=XA_9<XA_10 AND XA_9<XA_11 AND XA_9<XA_12 AND XA_9<XA_13 AND XA_9<XA_14 AND XA_9<XA_15 AND XA_9<XA_16 AND 

XA_9<XA_17 AND XA_9<XA_18 AND XA_9<XA_19 AND XA_9<XA_20 AND XA_9<XA_21 AND XA_9<XA_22 AND XA_10<XA_11 AND XA_10<XA_12 

AND XA_10<XA_13 AND XA_10<XA_14 AND XA_10<XA_15 AND XA_10<XA_16;
XA_32:=XA_10<XA_17 AND XA_10<XA_18 AND XA_10<XA_19 AND XA_10<XA_20 AND XA_10<XA_21 AND XA_10<XA_22 AND XA_11<XA_12 AND 

XA_11<XA_13 AND XA_11<XA_14 AND XA_11<XA_15 AND XA_11<XA_16 AND XA_11<XA_17 AND XA_11<XA_18 AND XA_11<XA_19 AND 

XA_11<XA_20 AND XA_11<XA_21 AND XA_11<XA_22 AND XA_12<XA_13 AND XA_12<XA_14;
XA_33:=XA_12<XA_15 AND XA_12<XA_16 AND XA_12<XA_17 AND XA_12<XA_18 AND XA_12<XA_19 AND XA_12<XA_20 AND XA_12<XA_21 AND 

XA_12<XA_22 AND XA_13<XA_14 AND XA_13<XA_15 AND XA_13<XA_16 AND XA_13<XA_17 AND XA_13<XA_18 AND XA_13<XA_19 AND 

XA_13<XA_20 AND XA_13<XA_21 AND XA_13<XA_22 AND XA_14<XA_15;
XA_34:=XA_14<XA_16 AND XA_14<XA_17 AND XA_14<XA_18 AND XA_14<XA_19 AND XA_14<XA_20 AND XA_14<XA_21 AND XA_14<XA_22 AND 

XA_15<XA_16 AND XA_15<XA_17 AND XA_15<XA_18 AND XA_15<XA_19 AND XA_15<XA_20 AND XA_15<XA_21 AND XA_15<XA_22 AND 

XA_16<XA_17 AND XA_16<XA_18 AND XA_16<XA_19 AND XA_16<XA_20;
XA_35:=XA_16<XA_21 AND XA_16<XA_22 AND XA_17<XA_18 AND XA_17<XA_19 AND XA_17<XA_20 AND XA_17<XA_21 AND XA_17<XA_22 AND 

XA_18<XA_19 AND XA_18<XA_20 AND XA_18<XA_21 AND XA_18<XA_22 AND XA_19<XA_20 AND XA_19<XA_21 AND XA_19<XA_22 AND 

XA_20<XA_21 AND XA_20<XA_22 AND XA_21<XA_22;
XA_36:=XA_31 AND XA_32 AND XA_33 AND XA_34 AND XA_35;
XA_37:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
XA_38:=SMA(XA_37,3,1);
XA_39:=SMA(XA_38,3,1);
XA_40:=SMA(XA_39,3,1);
XA_41:=XA_39;
XA_42:=XA_40;
XA_43:=XA_39<20;
XA_44:=XA_39>80;
XA_45:=XA_43 OR XA_44;

XA_46:=(HIGH+REFX(MA(H,3),3/2)+REFX(MA(H,5),5/2)+REFX(MA(H,10),10/2)+REFX(MA(H,15),15/2)+REFX(MA

(H,20),20/2)+XH25+REFX(MA(H,30),30/2)+REFX(MA(H,35),35/2)+REFX(MA(H,40),40/2)+REFX(MA(H,45),45/2)+REFX(MA

(H,50),50/2)+REFX(MA(H,55),55/2)+REFX(MA(H,60),60/2))/14;
XA_47:=(LOW+REFX(MA(L,3),3/2)+REFX(MA(L,5),5/2)+REFX(MA(L,10),10/2)+REFX(MA(LOW,15),15/2)+REFX(MA

(L,20),20/2)+XL25+REFX(MA(L,30),30/2)+REFX(MA(L,35),35/2)+REFX(MA(L,40),40/2)+REFX(MA(L,45),45/2)+REFX(MA

(L,50),50/2)+REFX(MA(L,55),55/2)+REFX(MA(L,60),60/2))/14;
XA_48:=XA_13>XA_14 AND XA_13>XA_15 AND XA_13>XA_16 AND XA_13>XA_17 AND XA_13>XA_18 AND XA_13>XA_19 AND XA_13>XA_20 AND 

XA_13>XA_21 AND XA_13>XA_22 AND XA_14>XA_15 AND XA_14>XA_16 AND XA_14>XA_17 AND XA_14>XA_18 AND XA_14>XA_19 AND 

XA_14>XA_20 AND XA_14>XA_21 AND XA_14>XA_22 AND XA_15>XA_16 AND XA_15>XA_17 AND XA_15>XA_18 AND XA_15>XA_19 AND 

XA_15>XA_20 AND XA_15>XA_21 AND XA_15>XA_22 AND XA_16>XA_17 AND XA_16>XA_18 AND XA_16>XA_19 AND XA_16>XA_20 AND 

XA_16>XA_21 AND XA_16>XA_22 AND XA_17>XA_18 AND XA_17>XA_19 AND XA_17>XA_20 AND XA_17>XA_21 AND XA_17>XA_22 AND 

XA_18>XA_19 AND XA_18>XA_20 AND XA_18>XA_21 AND XA_18>XA_22 AND XA_19>XA_20 AND XA_19>XA_21 AND XA_19>XA_22 AND 

XA_20>XA_21 AND XA_20>XA_22 AND XA_21>XA_22;
XA_49:=XA_13<XA_14 AND XA_13<XA_15 AND XA_13<XA_16 AND XA_13<XA_17 AND XA_13<XA_18 AND XA_13<XA_19 AND XA_13<XA_20 AND 

XA_13<XA_21 AND XA_13<XA_22 AND XA_14<XA_15 AND XA_14<XA_16 AND XA_14<XA_17 AND XA_14<XA_18 AND XA_14<XA_19 AND 

XA_14<XA_20 AND XA_14<XA_21 AND XA_14<XA_22 AND XA_15<XA_16 AND XA_15<XA_17 AND XA_15<XA_18 AND XA_15<XA_19 AND 

XA_15<XA_20 AND XA_15<XA_21 AND XA_15<XA_22 AND XA_16<XA_17 AND XA_16<XA_18 AND XA_16<XA_19 AND XA_16<XA_20 AND 

XA_16<XA_21 AND XA_16<XA_22 AND XA_17<XA_18 AND XA_17<XA_19 AND XA_17<XA_20 AND XA_17<XA_21 AND XA_17<XA_22 AND 

XA_18<XA_19 AND XA_18<XA_20 AND XA_18<XA_21 AND XA_18<XA_22 AND XA_19<XA_20 AND XA_19<XA_21 AND XA_19<XA_22 AND 

XA_20<XA_21 AND XA_20<XA_22 AND XA_21<XA_22;
XA_50:=REFX(MA(XA_46/XA_47*XA_23+(XA_46/XA_47*XA_23-XA_23),10),5);
XA_51:=REFX(MA(XA_47/XA_46*XA_23-(XA_23-XA_47/XA_46*XA_23),10),5);
XA_52:=IF(REF(XA_23,1)<XA_23 AND NOT(XA_48),XA_50,DRAWNULL);
XA_53:=IF(REF(XA_23,1)>XA_23 AND NOT(XA_49),XA_51,DRAWNULL);
XA_54:=REFX(MA(XA_46/XA_47*XA_23+(XA_46/XA_47*XA_23-XA_23)/2,10),5);
XA_55:=REFX(MA(XA_47/XA_46*XA_23-0.5*(XA_23-XA_47/XA_46*XA_23),10),5);
XA_56:=IF(REF(XA_23,1)>XA_23,XA_54,DRAWNULL);
XA_57:=IF(REF(XA_23,1)<XA_23,XA_55,DRAWNULL);
XA_58:=XA_46/XA_47*XA_23+(XA_46/XA_47*XA_23-XA_23)*1.5;
XA_59:=XA_47/XA_46*XA_23-1.5*(XA_23-XA_47/XA_46*XA_23);
XA_60:=VALUEWHEN(2>1,XA_58);
XA_61:=VALUEWHEN(2>1,XA_59);
XA_62:=IF(REF(XA_23,1)<XA_23 AND XA_48,XA_58,DRAWNULL);
XA_63:=IF(REF(XA_23,1)>XA_23 AND XA_49,XA_59,DRAWNULL);
XA_64:=IF(XA_30,XA_58,DRAWNULL);
XA_65:=IF(XA_36,XA_59,DRAWNULL);
//NOTEXT_DYN:DYNAINFO(7),DOT,COLORYELLOW;
//DRAWNUMBER(ISLASTBAR=1,DYNAINFO(7),DYNAINFO(7)),COLORWHITE,LINETHICK9;

//DRAWKLINE1(H,O,L,C); 补充说明:这个公式用很多未来函数凑在一起,没什么意义,上面已经把不可用函数替换,需要进一步修改请自行按以下格式替换x/2部分为a1,a2等,客服对此类公式无法进一步修改或者知道,请见谅。
 
a1:=if(datacount-barpos>25,25/2,datacount-barpos-1);
a2:=if(datacount-barpos>60,60/2,datacount-barpos-1);
a3:=if(datacount-barpos>30,30/2,datacount-barpos-1);
a4:=if(datacount-barpos>5,2,datacount-barpos-1);
a5:=if(datacount-barpos>55,26,datacount-barpos-1); 来源 程序化久久网

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容