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

帮改成文化指标,谢谢 [文华财经]

  • 咨询内容:  H1:=EMA(CLOSE,5);H2:=EMA(H1,12);UPR:H2+3*STD(H2,10),COLOR008364,LINETHICK2;DWN:H2-3*STD(H2,10),COLOR008364,LINETHICK2;VAR1:=(CLOSE*2+HIGH+LOW)/4;VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;VAR3:=EMA(VAR2,3);VAR4:=EMA(VAR3,6);L1:= EMA(VAR2,3);L2:= EMA(VAR3,4);L3:= EMA(VAR4,5);STICKLINE(L1>=L2,(OPEN),(CLOSE),2,0), COLORRED;STICKLINE(L1>=L2,(HIGH),(LOW),0,0), COLORRED;STICKLINE(L1<L2,(CLOSE),(OPEN),2,0) ,COLORGREEN;STICKLINE(L1<L2,(HIGH),(LOW),0,0), COLORGREEN;VAR5:=REF(L1,1)>L1 AND L1>L2;VAR6:=L1>L2 AND CLOSE<OPEN;VAR7:=REF(L1,1)<L1 AND L1<L2;STICKLINE(VAR5,(OPEN),(CLOSE),2,0), COLORBLUE;STICKLINE(VAR5,(HIGH),(LOW),0,0), COLORBLUE;STICKLINE(VAR7,(OPEN),(CLOSE),2,0), COLORMAGENTA;STICKLINE(VAR7,(HIGH),(LOW),0,0), COLORMAGENTA;VARE:=SAR(5,1,5);VARF:=MA(CLOSE,20);{更多指标就在微信公众号:爱指标源码}VAR10:=IF(CLOSE>450,8,IF(CLOSE>=20 AND CLOSE<150,0.2,IF(CLOSE<20 AND CLOSE>=10,0.07,IF(CLOSE<10,0.03,0.07))));STICKLINE(CLOSE>VARE,VARF,VARF+VAR10,2,0),COLOR0066FF;STICKLINE(CLOSE<VARE,VARF,VARF-VAR10,2,0),COLORFFFF00;STICKLINE(CROSS(CLOSE,VARE),VARF,VARF-VAR10,2,0);STICKLINE(CROSS(VARE,CLOSE),VARF,VARF+VAR10,2,0);STICKLINE(RANGE(DAY,6,9) OR RANGE(DAY,27,30),VARF+0.01,VARF-0.01,2,0),COLOR00FFFF;MA20:=MA(C,20);MA120:=MA(C,120);MA250:=MA(C,250);乖离线:=((C-REF(MA20,1))/20+MA20)*1.20;TT1:=CROSS(MA20,MA120) AND CROSS(MA20,MA250) AND V>REF(V,1);TT2:=MA20>REF(MA20,2) AND V>REF(V,1) AND CROSS(C,MA20);STICKLINE(TT1,L,L-0.09,4,0),COLORYELLOW;DRAWTEXT(TT1,L-0.13,'叉',COLORYELLOW;STICKLINE(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L,L-0.09,4,0),COLORYELLOW;DRAWTEXT(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L-0.13,'花',COLORYELLOW;STICKLINE(TT2,L,L-0.09,4,0),COLORYELLOW;DRAWTEXT(TT2,L-0.13,'点1',COLORYELLOW;STICKLINE(CROSS(C,乖离线),H,H+0.09,4,0),COLOR00FF00;DRAWTEXT(CROSS(C,乖离线) ,H+0.13,'点',COLOR00FF00;STICKLINE(MA250>=REF(MA250,1) AND MA20>=REF(MA20,1) AND CROSS(C,MA250),L,L-0.09,4,0),COLORFFCC66;DRAWTEXT(MA250>=REF(MA250,1) AND MA20>=REF(MA20,1) AND CROSS(C,MA250),L-0.13,'象',COLORFFCC66;STICKLINE(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L,L-0.09,4,0),COLORFF00FF;DRAWTEXT(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L-0.13,'点2',COLORFF00FF;RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=((3 * K) - (2 * D));RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);K24:=SMA(RSV24,3,1);D24:=SMA(K24,3,1);J24:=((3 * K24) - (2 * D24));U2L:=IF((CLOSE >= MA(CLOSE,20)),80,50);L2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);RH1:=IF(((J < U2L) AND (REF(J,1) >= U2L)),HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),BARSLAST(((J < U2L) AND REF(J,1)))));RH4:=IF((HIGH > RH1),LOW,REF(LOW,BARSLAST((HIGH > RH1))));RH42:=IF((HIGH > RH1),J,REF(J,BARSLAST((HIGH > RH1))));RH5:=IF((((HIGH > RH4) AND (J < RH42)) AND (J < J24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH4) AND (J < RH42)) AND (J < J24)))));DRAWTEXT(FILTER(((((((((OPEN > MA120) AND (MA20 < MA120)) AND (LOW <= MA120)) AND ((MA20 - REF(MA20,1)) > 0)) AND (CLOSE > OPEN)) AND ((MA120 -REF(MA120,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE >= MA120)),15),LOW,'跳马';

     

     来源:程序化99

  • 文华技术人员:  参考:
     H1:=EMA(CLOSE,5); H2:=EMA(H1,12); UPR:H2+3*STD(H2,10),COLOR008364,LINETHICK2; DWN:H2-3*STD(H2,10),COLOR008364,LINETHICK2; VAR1:=(CLOSE*2+HIGH+LOW)/4; VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7; VAR3:=EMA(VAR2,3); VAR4:=EMA(VAR3,6); L1:= EMA(VAR2,3); L2:= EMA(VAR3,4); L3:= EMA(VAR4,5); STICKLINE1(L1>=L2,(OPEN),(CLOSE),2,0), COLORRED; STICKLINE1(L1>=L2,(HIGH),(LOW),0,0), COLORRED; STICKLINE1(L1<L2,(CLOSE),(OPEN),2,0) ,COLORGREEN; STICKLINE1(L1<L2,(HIGH),(LOW),0,0), COLORGREEN; VAR5:=REF(L1,1)>L1 AND L1>L2; VAR6:=L1>L2 AND CLOSE<OPEN; VAR7:=REF(L1,1)<L1 AND L1<L2; STICKLINE1(VAR5,(OPEN),(CLOSE),2,0), COLORBLUE; STICKLINE1(VAR5,(HIGH),(LOW),0,0), COLORBLUE; STICKLINE1(VAR7,(OPEN),(CLOSE),2,0), COLORMAGENTA; STICKLINE1(VAR7,(HIGH),(LOW),0,0), COLORMAGENTA; VARE:=SAR(5,1,5); VARF:=MA(CLOSE,20); {更多指标就在微信公众号:爱指标源码} VAR10:=IF(CLOSE>450,8,IF(CLOSE>=20 AND CLOSE<150,0.2,IF(CLOSE<20 AND CLOSE>=10,0.07,IF(CLOSE<10,0.03,0.07)))); STICKLINE1(CLOSE>VARE,VARF,VARF+VAR10,2,0),COLOR0066FF; STICKLINE1(CLOSE<VARE,VARF,VARF-VAR10,2,0),COLORFFFF00; STICKLINE1(CROSS(CLOSE,VARE),VARF,VARF-VAR10,2,0); STICKLINE1(CROSS(VARE,CLOSE),VARF,VARF+VAR10,2,0); STICKLINE1(RANGE(DAY,6,9) OR RANGE(DAY,27,30),VARF+0.01,VARF-0.01,2,0),COLOR00FFFF; MA20:=MA(C,20); MA120:=MA(C,120); MA250:=MA(C,250); 乖离线:=((C-REF(MA20,1))/20+MA20)*1.20; TT1:=CROSS(MA20,MA120) AND CROSS(MA20,MA250) AND V>REF(V,1); TT2:=MA20>REF(MA20,2) AND V>REF(V,1) AND CROSS(C,MA20); STICKLINE1(TT1,L,L-0.09,4,0),COLORYELLOW; DRAWTEXT(TT1,L-0.13,'叉',COLORYELLOW; STICKLINE1(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L,L-0.09,4,0),COLORYELLOW; DRAWTEXT(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L-0.13,'花',COLORYELLOW; STICKLINE1(TT2,L,L-0.09,4,0),COLORYELLOW; DRAWTEXT(TT2,L-0.13,'点1',COLORYELLOW; STICKLINE1(CROSS(C,乖离线),H,H+0.09,4,0),COLOR00FF00; DRAWTEXT(CROSS(C,乖离线) ,H+0.13,'点',COLOR00FF00; STICKLINE1(MA250>=REF(MA250,1) AND MA20>=REF(MA20,1) AND CROSS(C,MA250),L,L-0.09,4,0),COLORFFCC66; DRAWTEXT(MA250>=REF(MA250,1) AND MA20>=REF(MA20,1) AND CROSS(C,MA250),L-0.13,'象',COLORFFCC66; STICKLINE1(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L,L-0.09,4,0),COLORFF00FF; DRAWTEXT(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L-0.13,'点2',COLORFF00FF; RSV:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=((3 * K) - (2 * D)); RSV24:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); K24:=SMA(RSV24,3,1); D24:=SMA(K24,3,1); J24:=((3 * K24) - (2 * D24)); U2L:=IF((CLOSE >= MA(CLOSE,20)),80,50); L2L:=IF((CLOSE >= MA(CLOSE,20)),50,20); RH1:=IF(((J < U2L) AND (REF(J,1) >= U2L)),HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((J >= U2L) AND (REF(J,1) < U2L))) - 1)),BARSLAST(((J < U2L) AND REF(J,1))))); RH4:=IF((HIGH > RH1),LOW,REF(LOW,BARSLAST((HIGH > RH1)))); RH42:=IF((HIGH > RH1),J,REF(J,BARSLAST((HIGH > RH1)))); RH5:=IF((((HIGH > RH4) AND (J < RH42)) AND (J < J24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH4) AND (J < RH42)) AND (J < J24))))); DRAWTEXT(FILTER(((((((((OPEN > MA120) AND (MA20 < MA120)) AND (LOW <= MA120)) AND ((MA20 - REF(MA20,1)) > 0)) AND (CLOSE > OPEN)) AND ((MA120 -REF(MA120,1)) > 0)) AND (HIGH < RH5)) AND (CLOSE >= MA120)),15),LOW,'跳马';

 

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

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

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


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

相关文章

    没有相关内容