您現在的位置:程序化交易>> 期貨公式>> 文華財經>> 文華財經知識>>正文內容

指標模型語法修改 [文華財經]

  • 咨詢內容: STICKLINE(C>0,0,100,15,0),COLOR7C221C;
    P:50;
    VAR1:=HHV(HIGH,9)-LLV(LOW,9);
    VAR2:=HHV(HIGH,9)-CLOSE;
    VAR3:=CLOSE-LLV(LOW,9);
    VAR4:=VAR2/VAR1*100-70;
    VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
    VAR6:=(2*CLOSE+HIGH+LOW)/4;
    VAR7:=SMA(VAR3/VAR1*100,2,1);
    VAR8:=LLV(LOW,34);
    VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
    AA:=IF(VAR9>100,VAR9-100,0);
    BB:=HHV(HIGH,34);
    CC:=EMA((VAR6-VAR8)/(BB-VAR8)*100,13);
    氣溫:EMA(0.64*REF(CC,1)+0.333*CC,4);
    DRAWBAND(氣溫,RGB(255,0,0),50,RGB(0,150,255));
    DRAWTEXT(CROSS(氣溫,20),氣溫,'春↑'),COLORGREEN;
    DRAWTEXT(CROSS(氣溫,40),氣溫,'夏↑'),COLORRED;
    DRAWTEXT(CROSS(氣溫,70),氣溫,'秋↓'),COLORYELLOW;
    DRAWTEXT(CROSS(70,氣溫),氣溫,'冬↓'),COLORWHITE;
    RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
    WEN:=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);
    J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);
    W1:=SMA(RSV2,3,1);W2:=SMA(W1,3,1);
    強弱界線:49,POINTDOT,LINETHICK3,COLOR9966CC;
    見頂信號:100,COLORCCFF00;
    出點準備: IF(CROSS(J2,J1) AND J2>85,70,100),LINETHICK2,COLOR00FF00;
    趨勢線: WEN,LINETHICK2;
    買點準備:IF(趨勢線<=10,30,0),LINETHICK2,COLORYELLOW;
    G1:W1,LINETHICK2,COLORWHITE;
    G2:W2,LINETHICK2,COLORCYAN;
    STICKLINE(趨勢線>88,100,趨勢線,3,1),COLORGREEN;
    STICKLINE(趨勢線<=10,0,趨勢線,3,1),COLORYELLOW;
    STICKLINE(COUNT(趨勢線<REF(趨勢線,1) AND 趨勢線<10,2)=2 ,0,20,3,0),COLORRED;
    STICKLINE(CROSS(J2,J1) AND J2>85,100,80,3,0),COLORGREEN;
    DRAWICON(CROSS(趨勢線,49),趨勢線,1);
    DRAWICON(FILTER(CROSS(G2,G1) AND G2>81,10),G2*1.05,2);
    DRAWTEXT(CROSS(趨勢線,49),47,'轉強'),COLORRED;
    DRAWTEXT(CROSS(49,趨勢線),52,'轉弱'),COLORGREEN;

     

  • 文華技術人員: STICKLINE(C>0,0,100,15,0),COLOR7C221C;
    P:50;
    VAR1:=HHV(HIGH,9)-LLV(LOW,9);
    VAR2:=HHV(HIGH,9)-CLOSE;
    VAR3:=CLOSE-LLV(LOW,9);
    VAR4:=VAR2/VAR1*100-70;
    VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
    VAR6:=(2*CLOSE+HIGH+LOW)/4;
    VAR7:=SMA(VAR3/VAR1*100,2,1);
    VAR8:=LLV(LOW,34);
    VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
    AA:=IF(VAR9>100,VAR9-100,0);
    BB:=HHV(HIGH,34);
    CC:=EMA((VAR6-VAR8)/(BB-VAR8)*100,13);
    QW:EMA(0.64*REF(CC,1)+0.333*CC,4);
    DRAWBAND(QW,RGB(255,0,0),50,RGB(0,150,255));
    DRAWTEXT(CROSS(QW,20),QW,'C↑'),COLORGREEN;
    DRAWTEXT(CROSS(QW,40),QW,'X↑'),COLORRED;
    DRAWTEXT(CROSS(QW,70),QW,'Q↓'),COLORYELLOW;
    DRAWTEXT(CROSS(70,QW),QW,'D↓'),COLORWHITE;
    RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
    WEN:=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);
    J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);
    W1:=SMA(RSV2,3,1);W2:=SMA(W1,3,1);
    QLFJ:49,POINTDOT,LINETHICK3,COLOR9966CC;
    JDXH:100,COLORCCFF00;
    CDZB: IF(CROSS(J2,J1) AND J2>85,70,100),LINETHICK2,COLOR00FF00;
    QSX: WEN,LINETHICK2;
    MDZB:IF(QSX<=10,30,0),LINETHICK2,COLORYELLOW;
    G1:W1,LINETHICK2,COLORWHITE;
    G2:W2,LINETHICK2,COLORCYAN;
    STICKLINE(QSX>88,100,QSX,3,1),COLORGREEN;
    STICKLINE(QSX<=10,0,QSX,3,1),COLORYELLOW;
    STICKLINE(COUNT(QSX<REF(QSX,1) AND QSX<10,2)=2 ,0,20,3,0),COLORRED;
    STICKLINE(CROSS(J2,J1) AND J2>85,100,80,3,0),COLORGREEN;
    DRAWICON(CROSS(QSX,49),QSX,1);
    DRAWICON(FILTER(CROSS(G2,G1) AND G2>81,10),G2*1.05,2);
    DRAWTEXT(CROSS(QSX,49),47,'ZQ'),COLORRED;
    DRAWTEXT(CROSS(49,QSX),52,'ZL'),COLORGREEN;

     

  • 文華客服:

    自己改的,語法測試通不過,請幫忙修改一下,謝謝!

    STICKLINE(C>0,0,100,15,0),COLOR7C221C;
    P:50;
    VAR1:=HHV(HIGH,9)-LLV(LOW,9);
    VAR2:=HHV(HIGH,9)-CLOSE;
    VAR3:=CLOSE-LLV(LOW,9);
    VAR4:=VAR2/VAR1*100-70;
    VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
    VAR6:=(2*CLOSE+HIGH+LOW)/4;
    VAR7:=SMA(VAR3/VAR1*100,2,1);
    VAR8:=LLV(LOW,34);
    VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
    AA:=IF(VAR9>100,VAR9-100,0);
    BB:=HHV(HIGH,34);
    CC:=EMA((VAR6-VAR8)/(BB-VAR8)*100,13);
    QW:EMA(0.64*REF(CC,1)+0.333*CC,4);
    RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
    QSX:=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);
    QSX>QW,BPK;
    QSX<QW,SPK;

     

  • 網友回復:

    STICKLINE(OPEN-CLOSE>0,OPEN,CLOSE,COLORCYAN,0);

    IF函數改為IFELSE(X,A,B)若X條件成立或數值非0,則返回A,否則返回B。

    不支持漢字編寫,請改為半角全拼大寫英文狀態;

    不支持LINETHICK2函數,您刪除即可;

     

    請您按照上面的要點加以修改,如果仍有問題,請及時跟帖交流;

     

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 1145508240  有需要幫忙請點擊這里留言!!!進行 有償 編寫!不貴!點擊查看價格!


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
主站蜘蛛池模板: 狠狠人妻久久久久久综合蜜桃 | 国产三级久久精品三级| 91精品国产高清久久久久久 | 日本chinese人妖video| 亚洲国产综合网| 精品久久久久久中文字幕女| 国产成人av一区二区三区在线观看| 99在线观看精品视频| 我与白丝同桌的故事h文| 亚洲av无码片在线观看| 波多野吉衣视频| 午夜三级三级三点在线| 青青国产成人久久激情911| 国产精品入口麻豆高清在线| caopon国产在线视频| 成年美女黄网站色大免费视频| 久艾草国产成人综合在线视频| 欧美精品xxxxbbbb| 免费人成视频x8x8入口| 能播放18xxx18女同| 国产性生大片免费观看性| 18禁无遮挡羞羞污污污污免费| 女人双腿搬开让男人桶| 中文字幕在线观看网站| 日韩免费视频播播| 亚洲不卡av不卡一区二区| 毛片免费视频观看| 免费人成网站在线观看不卡| 色噜噜在线观看| 国产女人水真多18毛片18精品| 18videosex日本vesvvnn| 多人乱p欧美在线观看| 一级性生活毛片| 无码h黄肉3d动漫在线观看| 久久精品久久精品久久精品| 欧美午夜精品久久久久免费视 | 豪妇荡乳1一5| 国产成人无码av在线播放不卡 | 91在线|欧美| 国产精品单位女同事在线| 999久久久免费精品国产|