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

老师帮忙一下,谢谢 [文华财经]

  • 咨询内容:  {黄金坑}
    VAR1:=MA(WINNER(CLOSE),9)*100; 
    买!: CROSS(VAR1,2)*30,COLOR0000FF ,LINETHICK3 ; 
    VAR2:=(1-EMA((HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15)),15))*100; 
    VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; 
    VAR4:=SMA(VAR3,9,1); 
    VAR5:=SMA(VAR4,9,1); 
    VAR6:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100); 
    VAR7:=REF(VAR6,1)>13 AND REF(VAR6,1)/VAR6>1.23 AND CLOSE/REF(CLOSE,1)>1.03; 
    春笋: IF(VAR7 AND REF(CLOSE,1)<=COST(5),20,0),LINESTICK ,COLOR00FF00,LINETHICK2; 
    VAR8:=MA(CLOSE,27); 
    VAR9:=(CLOSE-VAR8)/VAR8*100; 
    VARA:=MA(VAR9,2); 
    VARB:=BARSLAST(CROSS(-10,VARA)=1); 
    VARC:=BARSLAST(CROSS(VARA,10)=1); 
    VARD:=VARA<-10 AND VARB>3; 
    VARE:=VARA>10 AND VARC>3; 
    黄金坑: IF(VARD,VARA,0),LINESTICK ,LINETHICK2, COLORYELLOW; 
    财神到: IF(VARE,VARA,0),LINESTICK , COLORGREEN; 
    贪嘴乐: IF(VARA>REF(VARA,1) AND VARD AND VARA<-15,30,0),LINETHICK2,LINESTICK,COLORFFA2AF; 
    DRAWICON(贪嘴乐>0,40,1); 
    VARF:=REF(LOW,1)*0.9; 
    VAR10:=LOW*0.9; 
    VAR11:=(VAR10*VOL+VARF*(CAPITAL-VOL))/CAPITAL; 
    VAR12:=EMA(VAR11,30); 
    VAR13:=CLOSE-REF(CLOSE,1); 
    VAR14:=MAX(VAR13,0); 
    VAR15:=ABS(VAR13); 
    VAR16:=SMA(VAR14,7,1)/SMA(VAR15,7,1)*100; 
    VAR17:=SMA(VAR14,13,1)/SMA(VAR15,13,1)*100; 
    VAR18:=BARSCOUNT(CLOSE); 
    VAR19:=SMA(MAX(VAR13,0),6,1)/SMA(ABS(VAR13),6,1)*100; 
    VAR1A:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; 
    VAR1B:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; 
    VAR1C:=SMA((SMA(VAR1B,4,1)-50)*2,3,1); 
    VAR1D:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; 
    VAR1E:=SMA(VAR1D,4,1); 
    VAR1F:=SMA(VAR1E,3,1); 
    VAR20:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; 
    VAR21:=VAR19<=25 AND VAR1A<-95 AND VAR20>20 AND VAR1C<-30 AND VAR1F<30 AND VAR12-CLOSE>=-0.25 AND VAR16<22 AND VAR17<28 AND VAR18>50; 
    血战超跌: STICKLINE(VAR21,0,60,5,0);
    老师修改一下文华用谢谢

     

     来源:程序化99

  • 文华技术人员:  1、新建一个指标,复制以下源码后保存为A3 INDEXL:=L; INDEXC:=C; INDEXH:=H;
    2、另外新建一个指标,复制以下源码,保存后加载即可 VAR1:=MA(WINNER(CLOSE),9)*100;  买!: CROSS(VAR1,2)*30,COLOR0000FF ,LINETHICK3 ;  VAR2:=(1-EMA((HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15)),15))*100;  VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;  VAR4:=SMA(VAR3,9,1);  VAR5:=SMA(VAR4,9,1);  VAR6:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100);  VAR7:=REF(VAR6,1)>13 AND REF(VAR6,1)/VAR6>1.23 AND CLOSE/REF(CLOSE,1)>1.03;  春笋: IF(VAR7 AND REF(CLOSE,1)<=COST(5),20,0),COLOR00FF00,LINETHICK2;  VAR8:=MA(CLOSE,27);  VAR9:=(CLOSE-VAR8)/VAR8*100;  VARA:=MA(VAR9,2);  VARB:=BARSLAST(CROSS(-10,VARA)=1);  VARC:=BARSLAST(CROSS(VARA,10)=1);  VARD:=VARA<-10 AND VARB>3;  VARE:=VARA>10 AND VARC>3;  黄金坑: IF(VARD,VARA,0),LINETHICK2, COLORYELLOW;  财神到: IF(VARE,VARA,0), COLORGREEN;  贪嘴乐: IF(VARA>REF(VARA,1) AND VARD AND VARA<-15,30,0),LINETHICK2,COLORFFA2AF;  DRAWICON(贪嘴乐>0,40,1);  VARF:=REF(LOW,1)*0.9;  VAR10:=LOW*0.9;  CAPITAL:=GETPRICE1('通股本'; VAR11:=(VAR10*VOL+VARF*(CAPITAL-VOL))/CAPITAL;  VAR12:=EMA(VAR11,30);  VAR13:=CLOSE-REF(CLOSE,1);  VAR14:=MAX(VAR13,0);  VAR15:=ABS(VAR13);  VAR16:=SMA(VAR14,7,1)/SMA(VAR15,7,1)*100;  VAR17:=SMA(VAR14,13,1)/SMA(VAR15,13,1)*100;  VAR18:=BARSCOUNT(CLOSE);  VAR19:=SMA(MAX(VAR13,0),6,1)/SMA(ABS(VAR13),6,1)*100;  VAR1A:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;  VAR1B:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;  VAR1C:=SMA((SMA(VAR1B,4,1)-50)*2,3,1);  #CALL[999001,A3] AS VAR INDEXC:=VAR.INDEXC; INDEXL:=VAR.INDEXL; INDEXH:=VAR.INDEXH; VAR1D:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;  VAR1E:=SMA(VAR1D,4,1);  VAR1F:=SMA(VAR1E,3,1);  VAR20:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;  VAR21:=VAR19<=25 AND VAR1A<-95 AND VAR20>20 AND VAR1C<-30 AND VAR1F<30 AND VAR12-CLOSE>=-0.25 AND VAR16<22 AND VAR17<28 AND VAR18>50;  //血战超跌:  STICKLINE1(VAR21,0,60,5,0);

     

     来源: WWW.CXH99.COM

  • 文华客服:  老师,里面什么也显示不到啊,在修改一下

     

  • 网友回复:  2楼指标是对1楼的简单改写,策略思路方面我们也不是很了解的
    不显示画线和柱体,是由于没有满足条件的k线,或者是策略本身就不太严谨
    比如“买!: CROSS(VAR1,2)*30”这个变量,加载在浦发银行查看,VAR1的返回值是在50到60之间,永远不可能满足上穿2这个条件的
    建议您核实下

 

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

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


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

相关文章

    没有相关内容