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

修改指標老師 [文華財經]

  • 咨詢內容: X_1:=REF(CLOSE,1);

    X_2:=SMA(MAX(CLOSE-X_1,0),5,1)/SMA(ABS(CLOSE-X_1),5,1)*100;

    X_3:=SMA(X_2,5,1);

    X_4:=BARSLAST(X_2<=15)<5;

    X_5:=SMA(X_2,5,1);

    X_6:=CROSS(X_2,X_3) AND X_5>15 AND X_4;

    X_7:=FILTER(X_6,10);

    X_8:=IF(CLOSE>REF((6*HIGH+5*REF(HIGH,1)+4*REF(HIGH,2)+3*REF(HIGH,3)+2*REF(HIGH,4)+1*REF(HIGH,5))/(6+5+4+3+2+1),1),1,IF(CLOSE<REF((6*LOW+5*REF(LOW,1)+4*REF(LOW,2)+3*REF(LOW,3)+2*REF(LOW,4)+1*REF(LOW,5))/(6+5+4+3+2+1),1),(-1),0));

    X_9:=BARSLAST(NOT(X_8=0));

    X_10:=IF(X_8=0,REF(X_8,X_9),X_8);

    觸發:X_7,NODRAW,COLORRED;

    止損:CLOSE<REF(OPEN,BARSLAST(X_7>0)) AND COUNT(CLOSE<REF(OPEN,BARSLAST(X_7>0)),BARSLAST(X_7>0))=1 AND IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))>0,NODRAW,COLORWHITE;

    止盈:HIGH/REF(CLOSE,BARSLAST(X_7>0))>=1.05 OR CLOSE/REF(CLOSE,BARSLAST(X_7>0))>=1.05 AND COUNT(止損,BARSLAST(X_7>0))=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))),BARSLAST(X_7>0))=0,NODRAW,COLORBLUE;

    區間:COUNT(X_7,BARSLAST(X_7)+1)=1 AND COUNT(止損,BARSLAST(X_7>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))),BARSLAST(X_7>0)+1)=0,NODRAW,COLOR696960;

    結束:COUNT(X_7,BARSLAST(X_7)+1)=1 AND COUNT(止損,BARSLAST(X_7>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,5),MA(LOW,5)),1,(-1))),BARSLAST(X_7>0)+1)=1 AND CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,5)),1,(-1))) OR 止損,NODRAW,COLORGREEN;

    STICKLINE(觸發>0,0,1,(-1),0),COLORRED;

    STICKLINE(止盈>0,0.4,0.6,4,0),COLORBLUE;

    STICKLINE(結束>0,0,0.7,(-1),0),COLORGREEN;

    STICKLINE(止損>0,0.8,1,(-1),0),COLORWHITE;

    X_11:=BARSLASTCOUNT(止盈>0);

    DRAWTEXT(止盈>0,0.5,VAR2STR(X_11,0));

    六、“獨霸一方”指標源碼(選股):

    X_1:=REF(CLOSE,1);

    X_2:=SMA(MAX(CLOSE-X_1,0),5,1)/SMA(ABS(CLOSE-X_1),5,1)*100;

    X_3:=SMA(X_2,5,1);

    X_4:=BARSLAST(X_2<=15)<5;

    X_5:=SMA(X_2,5,1);

    X_6:=CROSS(X_2,X_3) AND X_5>15 AND X_4;

    BU:FILTER(X_6,10);

    ?

    ?來源:程序化99

  • 文華技術人員: ?參考:
    X_1:=REF(CLOSE,1); X_2:=SMA(MAX(CLOSE-X_1,0),5,1)/SMA(ABS(CLOSE-X_1),5,1)*100;
    X_3:=SMA(X_2,5,1);
    X_4:=BARSLAST(X_2<=15)<5;
    X_5:=SMA(X_2,5,1);
    X_6:=CROSS(X_2,X_3) AND X_5>15 AND X_4;
    X_7:=FILTER(X_6,10);
    X_8:=IF(CLOSE>REF((6*HIGH+5*REF(HIGH,1)+4*REF(HIGH,2)+3*REF(HIGH,3)+2*REF(HIGH,4)+1*REF(HIGH,5))/(6+5+4+3+2+1),1),1,IF(CLOSE<REF((6*LOW+5*REF(LOW,1)+4*REF(LOW,2)+3*REF(LOW,3)+2*REF(LOW,4)+1*REF(LOW,5))/(6+5+4+3+2+1),1),(-1),0));
    X_9:=BARSLAST(NOT(X_8=0));
    X_10:=IF(X_8=0,REF(X_8,X_9),X_8);
    觸發:X_7,NODRAW,COLORRED;
    止損:CLOSE<REF(OPEN,BARSLAST(X_7>0)) AND COUNT(CLOSE<REF(OPEN,BARSLAST(X_7>0)),BARSLAST(X_7>0))=1 AND IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))>0,NODRAW,COLORWHITE;
    止盈:HIGH/REF(CLOSE,BARSLAST(X_7>0))>=1.05 OR CLOSE/REF(CLOSE,BARSLAST(X_7>0))>=1.05 AND COUNT(止損,BARSLAST(X_7>0))=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))),BARSLAST(X_7>0))=0,NODRAW,COLORBLUE;
    區間:COUNT(X_7,BARSLAST(X_7)+1)=1 AND COUNT(止損,BARSLAST(X_7>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,6)),1,(-1))),BARSLAST(X_7>0)+1)=0,NODRAW,COLOR696960;
    結束:COUNT(X_7,BARSLAST(X_7)+1)=1 AND COUNT(止損,BARSLAST(X_7>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,5),MA(LOW,5)),1,(-1))),BARSLAST(X_7>0)+1)=1 AND CROSS(0,IF(MA(CLOSE,1)>IF(X_10=(-1),MA(HIGH,6),MA(LOW,5)),1,(-1))) OR 止損,NODRAW,COLORGREEN;
    STICKLINE(觸發>0,0,1,(-1),0),COLORRED;
    STICKLINE(止盈>0,0.4,0.6,4,0),COLORBLUE;
    STICKLINE(結束>0,0,0.7,(-1),0),COLORGREEN;
    STICKLINE(止損>0,0.8,1,(-1),0),COLORWHITE;
    X_11:=BARSLASTCOUNT(止盈>0);
    //六、“獨霸一方”指標源碼(選股):


    BU:FILTER(X_6,10);

 

有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友

可聯系技術人員 QQ: 262069696  點擊在線交流或微信號:cxh99cxh99  進行 有償收費 編寫!

怎么收費,代編流程等詳情請點擊閱讀!

(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 欧美浓毛大泬视频| 香蕉视频好色先生| 少妇高潮喷水久久久久久久久久| 亚洲中文字幕无码中文字在线| 精品露脸国产偷人在视频7| 国产福利一区二区在线观看| z0z0z0女人极品另类视频| 日本视频网站在线www色| 亚洲欧美中日韩| 精品人妻伦一二三区久久| 国产午夜无码片在线观看影院 | 欧美亚洲国产日韩| 免费人成在线观看视频高潮| 艾粟粟小青年宾馆3p上下| 极品丝袜乱系列大全集目录| 99在线精品免费视频| 99精品欧美一区二区三区综合在线| 韩国护士hd高清xxxx| 在线观看的免费视频网站| 中文字幕高清在线观看| 最近免费中文字幕大全免费版视频| 亚洲综合色一区| 精品无码久久久久久久久水蜜桃 | 久久天天躁夜夜躁狠狠躁2020| 欧美日韩在线视频一区| 免费女人18毛片a级毛片视频| 蜜桃视频在线观看官网| 国产欧美一区二区三区免费| 91成人午夜在线精品| 宝贝过来趴好张开腿让我看看 | 中文天堂网在线最新版| 日韩精品中文字幕在线| 亚洲国产精品成人午夜在线观看| 男女很舒服爽视频免费| 啊好深好硬快点用力别停免费视频| 香港黄色碟片黄色碟片| 国产激爽大片高清在线观看| 91亚洲精品第一综合不卡播放| 女人高潮特级毛片| 东北疯狂xxxxbbbb中国| 无码喷水一区二区浪潮AV|