您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

求助,改为文化用 [文华财经]

  • 咨询内容:  DIR2:=ABS(CLOSE-REF(CLOSE,10));
    VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
    ER2:=DIR2/VIR2;
    CS2:=ER2*(0.8-2/24)+2/24;
    CQ2:=CS2*CS2;
    AMA2:EMA(DMA(CLOSE,CQ2),2),COLORBLUE,LINETHICK2;
    AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),COLORRED,LINETHICK2;
    AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),COLORRED,LINETHICK2;
    LC:=REF(CLOSE,1);
    VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    VARA00:=((AMOUNT)/(VOL))/(100);
    VARAB00:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
    VARAC00:=((SUM(AMOUNT,7))/(VARA00))/(100);
    VARD0:=DMA(VARAB00,(VOL)/(VARAC00));
    VARDE0:=((CLOSE-VARD0)/(VARD0))*(100);
    VARDE0F:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
    VARDE0JF:=MA(VARDE0,20)+STD(VARDE0,20);
    BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
    AA:=SMA(VARDE0F,3,1);
    SS:=(REF(BIAS18,1)>=5) AND CROSS(VARDE0JF,VARDE0) AND (AA>79);
    DRAWTEXT(CROSS(84,RSI) AND CROSS(76,VAR28),H*1.01,'出',LINETHICK4,COLORGREEN;
    通道中轨:MA(CLOSE,30)NODRAW;
    通道上轨:通道中轨*1.12,CIRCLEDOT,COLORFF6600;
    通道下轨:通道中轨*0.88,CIRCLEDOT,COLOR6C6CFF;
    通道上上轨:通道中轨*1.18,COLORGREEN;
    通道下下轨:通道中轨*0.82,COLORYELLOW;
    红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;
    绿轨道:=MA(MA(CLOSE,3),3);
    上升:=IF(红轨道>=绿轨道,绿轨道,DRAWNULL),COLORRED,LINETHICK2;
    AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);
    加仓:=IF(CROSS(AA1,REF(AA1+0.01,1)) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);
    波段底:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) -
    (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));
    DRAWTEXT(CROSS(波段底,3),L*0.97,'';
    A:=(3*C+L+O+H)/6;
    X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
    14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
    +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
    REF(A,20))/210;
    MTM:=C-REF(C,1);
    DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
    CB:=EMA(X,13);
    买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
    DRAWTEXT(FILTER(买=1,5),LOW-0.03,'入',COLORRED;

     

     来源:程序化99

  • 文华技术人员: 参考:
    DIR2:=ABS(CLOSE-REF(CLOSE,10)); VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10); ER2:=DIR2/VIR2; CS2:=ER2*(0.8-2/24)+2/24; CQ2:=CS2*CS2; AMA2:EMA(DMA(CLOSE,CQ2),2),COLORBLUE,LINETHICK2; AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,NULL),COLORRED,LINETHICK2; AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,NULL),COLORRED,LINETHICK2; LC:=REF(CLOSE,1); RSI:SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100; AMOUNT:=AVPRICE*V; VARA00:=((AMOUNT)/(VOL))/(100); VARAB00:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7); VARAC00:=((SUM(AMOUNT,7))/(VARA00))/(100); VARD0:=DMA(VARAB00,(VOL)/(VARAC00)); VARDE0:=((CLOSE-VARD0)/(VARD0))*(100); VARDE0F:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100); VARDE0JF:=MA(VARDE0,20)+STD(VARDE0,20); BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100); AA:=SMA(VARDE0F,3,1); SS:=(REF(BIAS18,1)>=5) AND CROSS(VARDE0JF,VARDE0) AND (AA>79); DRAWTEXT(CROSS(84,RSI) AND CROSS(76,VAR28),H*1.01,'出',LINETHICK4,COLORGREEN; 通道中轨:MA(CLOSE,30),NODRAW; 通道上轨:通道中轨*1.12,CIRCLEDOT,COLORFF6600; 通道下轨:通道中轨*0.88,CIRCLEDOT,COLOR6C6CFF; 通道上上轨:通道中轨*1.18,COLORGREEN; 通道下下轨:通道中轨*0.82,COLORYELLOW; 红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW; 绿轨道:=MA(MA(CLOSE,3),3); 上升:=IF(红轨道>=绿轨道,绿轨道,NULL),COLORRED,LINETHICK2; AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1); 加仓:=IF(CROSS(AA1,REF(AA1+0.01,1)) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0); 波段底:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1)); DRAWTEXT(CROSS(波段底,3),L*0.97,''; A:=(3*C+L+O+H)/6; X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210; MTM:=C-REF(C,1); DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6); CB:=EMA(X,13); 买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0); DRAWTEXT(FILTER(买=1,5),LOW-0.03,'入',COLORRED;

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)

怎么收费,代编流程等详情请点击阅读,或QQ微信联系我们!


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

相关文章

    没有相关内容