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

修改成文化,先谢谢老师 [文华财经]

  • 咨询内容:  LC:=REF(CLOSE,1);RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;TPV6:=REF(RSI1,1);STICKLINE(RSI1>=TPV6,LOW*1.5,HIGH*1.5,0,1),RGB(255,0,0);STICKLINE(RSI1>=TPV6,CLOSE*1.5,OPEN*1.5,8,1),RGB(255,0,0);STICKLINE(RSI1<TPV6,LOW*1.5,HIGH*1.5,0,1),RGB(0,255,0);STICKLINE(RSI1<TPV6,CLOSE*1.5,OPEN*1.5,8,0),RGB(0,255,0);//================================================BIAS3:(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;TPV5:=REF(BIAS3,1);STICKLINE(BIAS3>=TPV5,LOW*1.4,HIGH*1.4,0,1),RGB(255,0,0);STICKLINE(BIAS3>=TPV5,CLOSE*1.4,OPEN*1.4,8,1),RGB(255,0,0);STICKLINE(BIAS3<TPV5,LOW*1.4,HIGH*1.4,0,1),RGB(0,255,0);STICKLINE(BIAS3<TPV5,CLOSE*1.4,OPEN*1.4,8,0),RGB(0,255,0);//================================================MACD参数:MACD.Diff;TPV4:=REF(MACD参数,1);STICKLINE(MACD参数>=TPV4,LOW*1.3,HIGH*1.3,0,1),RGB(255,0,0);STICKLINE(MACD参数>=TPV4,CLOSE*1.3,OPEN*1.3,8,1),RGB(255,0,0);STICKLINE(MACD参数<TPV4,LOW*1.3,HIGH*1.3,0,1),RGB(0,255,0);STICKLINE(MACD参数<TPV4,CLOSE*1.3,OPEN*1.3,8,0),RGB(0,255,0);//================================================DPO:CLOSE*1-REF(MA(CLOSE,20),10);TPV3:=REF(DPO,1);//MA(DPO,6);STICKLINE(DPO>=TPV3,LOW*1.2,HIGH*1.2,0,1),RGB(255,0,0);STICKLINE(DPO>=TPV3,CLOSE*1.2,OPEN*1.2,8,1),RGB(255,0,0);STICKLINE(DPO<TPV3,LOW*1.2,HIGH*1.2,0,1),RGB(0,255,0);STICKLINE(DPO<TPV3,CLOSE*1.2,OPEN*1.2,8,0),RGB(0,255,0);//================================================CROSS1:=RSI1>TPV6;CROSS2:=BIAS3>TPV5;CROSS3:=MACD参数>TPV4;CROSS4:=DPO>TPV3;CROSS5:=CROSS1=1 AND CROSS2=1 AND CROSS3=1 AND CROSS4=1;持股:IF(CROSS5=1,1,0),colorff00FF;//STICKLINE(CROSS5=1,LOW*1.2,CLOSE*1.5,6,1),colorff00FF;//================================================买线:=MA(C,3);TPV2:REF(买线,1);STICKLINE(买线>=TPV2,LOW*1.1,HIGH*1.1,0.1,1),colorred;STICKLINE(买线>=TPV2,CLOSE*1.1,OPEN*1.1,8,1),colorred;STICKLINE(买线<TPV2,CLOSE*1.1,OPEN*1.1,8,0),color00ff00;STICKLINE(买线<TPV2,LOW*1.1,HIGH*1.1,0.1,1),color00ff00;STICKLINE(CROSS(买线,TPV2),OPEN*1.1,CLOSE*1.1,6,0),colorff00ff;STICKLINE(CROSS(TPV2,买线),OPEN*1.1,CLOSE*1.1,6,0),colorffff00;//=================================================================VRA1:MA(CLOSE,5);UB:=VRA1+2*STD(CLOSE,5);LB:=VRA1-2*STD(CLOSE,5);VRA2:=MA(CLOSE,34);STICKLINE(CLOSE>=VRA1,LOW,HIGH,0,0),color0000ff;STICKLINE(CLOSE>=VRA1,CLOSE,OPEN,8,1),color0000ff;STICKLINE(CLOSE<VRA1,LOW,HIGH,0,0),color0000ff;STICKLINE(CLOSE<VRA1,CLOSE,OPEN,8,0),color00ff00;DRAWTEXT(CROSS(CLOSE,VRA1),LOW,'',ALIGN1,VALIGN0,Color208FFF,LINETHICK1;//DRAWTEXT(CROSS(VRA1,CLOSE),HIGH,'',ALIGN1,VALIGN0,ColorFFFF00,LINETHICK1;

     

     来源:程序化99

  • 文华技术人员: 参考:
    LC:=REF(CLOSE,1); RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; TPV6:=REF(RSI1,1); STICKLINE1(RSI1>=TPV6,LOW*1.5,HIGH*1.5,0,1),RGB(255,0,0); STICKLINE1(RSI1>=TPV6,CLOSE*1.5,OPEN*1.5,8,1),RGB(255,0,0); STICKLINE1(RSI1<TPV6,LOW*1.5,HIGH*1.5,0,1),RGB(0,255,0); STICKLINE1(RSI1<TPV6,CLOSE*1.5,OPEN*1.5,8,0),RGB(0,255,0); //================================================ BIAS3:(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; TPV5:=REF(BIAS3,1); STICKLINE1(BIAS3>=TPV5,LOW*1.4,HIGH*1.4,0,1),RGB(255,0,0); STICKLINE1(BIAS3>=TPV5,CLOSE*1.4,OPEN*1.4,8,1),RGB(255,0,0); STICKLINE1(BIAS3<TPV5,LOW*1.4,HIGH*1.4,0,1),RGB(0,255,0); STICKLINE1(BIAS3<TPV5,CLOSE*1.4,OPEN*1.4,8,0),RGB(0,255,0); //================================================ DIFF:EMA(CLOSE,12) - EMA(CLOSE,26); DEA:EMA(DIFF,9); MACD:2*(DIFF-DEA),COLORSTICK; TPV4:=REF(DIFF,1); STICKLINE(DIFF>=TPV4,LOW*1.3,HIGH*1.3,0,1),RGB(255,0,0); STICKLINE(DIFF>=TPV4,CLOSE*1.3,OPEN*1.3,8,1),RGB(255,0,0); STICKLINE(DIFF<TPV4,LOW*1.3,HIGH*1.3,0,1),RGB(0,255,0); STICKLINE(DIFF<TPV4,CLOSE*1.3,OPEN*1.3,8,0),RGB(0,255,0); //================================================ DPO:CLOSE*1-REF(MA(CLOSE,20),10); TPV3:=REF(DPO,1);//MA(DPO,6); STICKLINE(DPO>=TPV3,LOW*1.2,HIGH*1.2,0,1),RGB(255,0,0); STICKLINE(DPO>=TPV3,CLOSE*1.2,OPEN*1.2,8,1),RGB(255,0,0); STICKLINE(DPO<TPV3,LOW*1.2,HIGH*1.2,0,1),RGB(0,255,0); STICKLINE(DPO<TPV3,CLOSE*1.2,OPEN*1.2,8,0),RGB(0,255,0); //================================================ CROSS1:=RSI1>TPV6; CROSS2:=BIAS3>TPV5; CROSS3:=DIFF>TPV4; CROSS4:=DPO>TPV3; CROSS5:=CROSS1=1 AND CROSS2=1 AND CROSS3=1 AND CROSS4=1; 持股:IF(CROSS5=1,1,0),COLORFF00FF; //STICKLINE(CROSS5=1,LOW*1.2,CLOSE*1.5,6,1),COLORFF00FF; //================================================ 买线:=MA(C,3); TPV2:REF(买线,1); STICKLINE1(买线>=TPV2,LOW*1.1,HIGH*1.1,0.1,1),COLORRED; STICKLINE1(买线>=TPV2,CLOSE*1.1,OPEN*1.1,8,1),COLORRED; STICKLINE1(买线<TPV2,CLOSE*1.1,OPEN*1.1,8,0),COLOR00FF00; STICKLINE1(买线<TPV2,LOW*1.1,HIGH*1.1,0.1,1),COLOR00FF00; STICKLINE1(CROSS(买线,TPV2),OPEN*1.1,CLOSE*1.1,6,0),COLORFF00FF; STICKLINE1(CROSS(TPV2,买线),OPEN*1.1,CLOSE*1.1,6,0),COLORFFFF00; //================================================================= VRA1:MA(CLOSE,5); UB:=VRA1+2*STD(CLOSE,5); LB:=VRA1-2*STD(CLOSE,5); VRA2:=MA(CLOSE,34); STICKLINE1(CLOSE>=VRA1,LOW,HIGH,0,0),COLOR0000FF; STICKLINE1(CLOSE>=VRA1,CLOSE,OPEN,8,1),COLOR0000FF; STICKLINE1(CLOSE<VRA1,LOW,HIGH,0,0),COLOR0000FF; STICKLINE1(CLOSE<VRA1,CLOSE,OPEN,8,0),COLOR00FF00; DRAWTEXT(CROSS(CLOSE,VRA1),LOW,'',ALIGN1,VALIGN0,COLOR208FFF,LINETHICK1; //DRAWTEXT(CROSS(VRA1,CLOSE),HIGH,'',ALIGN1,VALIGN0,COLORFFFF00,LINETHICK1;

 

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

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

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


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

相关文章

    没有相关内容