最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信期货现货原油指标源码

    正文概述    2024-05-04 04:43:51  

    以下是通达信期货现货原油指标源码和截图


    通达信期货现货原油指标源码:

       VAR1:=REF(LOW,1);

       VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;

       VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);

       VAR4:=LLV(LOW,38);

       VAR5:=HHV(VAR3,38);

       VAR6:=IF(LLV(LOW,90),1,0);

       VAR7:=EMA(IF(LOW =VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;

       VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;

       VAR9:=SMA(VAR8,13,8);

       底线:0,COLOR00FFFF;

       吸货:VAR7,COLOR0000FF;

       吸筹1:STICKLINE(VAR7,0,VAR7,6,0),COLOR0000FF;

       吸筹2:STICKLINE(VAR7,0,VAR7,5,0),COLOR6600FF;

       吸筹3:STICKLINE(VAR7,0,VAR7,4,0),COLORBB00FF;

       吸筹4:STICKLINE(VAR7,0,VAR7,3,0),COLORFF00FF;

       吸筹5:STICKLINE(VAR7,0,VAR7,2,0),COLORFF33FF;

       吸筹6:STICKLINE(VAR7,0,VAR7,1,0),COLORFF66FF;

       吸筹7:STICKLINE(VAR7,0,VAR7,0,0),COLORFF99FF;

       风险:CEILING(SMA(VAR9,13,8)),LINETHICK2,COLORGREEN;

       涨跌:MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*

       SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK2,COLORRED;

       影响时长:=60;

       实体涨跌幅:=(MAX(CLOSE,OPEN)/MIN(CLOSE,OPEN)-1)*100,NODRAW;

       标志性K线:IFF(实体涨跌幅==HHV(实体涨跌幅,影响时长),1,0),NODRAW,COLORYELLOW;

       影响时间:=BARSLAST(标志性K线)+1,NODRAW;

       上轨:IFF(BETWEEN(影响时间,1,影响时长),REF(HIGH,影响时间-1),DRAWNULL),NODRAW,COLORRED;

       下轨:IFF(BETWEEN(影响时间,1,影响时长),REF(LOW,影响时间-1),DRAWNULL),NODRAW,COLORGREEN;

       冗余过滤:=BETWEEN(影响时间,2,59),NODRAW;

       STICKLINE(上轨,上轨,上轨,12,0),COLORRED;

       STICKLINE(下轨,下轨,下轨,12,0),COLORGREEN;

       STICKLINE(标志性K线ANDCLOSE OPEN,CLOSE,OPEN,8,0),COLORRED;

       STICKLINE(标志性K线ANDCLOSE OPEN,CLOSE,OPEN,8,0),COLORGREEN;

       A_1:=CROSS(C,上轨)ANDREF(CLOSE,影响时间-1) REF(OPEN,影响时间-1);

       A_2:=COUNT(A_1,影响时间)==1ANDA_1;

       一飞冲天:IFF(A_2AND影响时间!=1AND冗余过滤,1,DRAWNULL),NODRAW,COLORRED;

       STICKLINE(一飞冲天,CLOSE,OPEN,8,0),COLORRED;

       STICKLINE(一飞冲天,HIGH,LOW,0,0),COLORRED;

       DRAWTEXT(一飞冲天,LOW,'B'),COLORRED;

       B_1:=CROSS(CLOSE,上轨)ANDREF(CLOSE,影响时间-1) REF(OPEN,影响时间-1);

       B_2:=COUNT(B_1,影响时间)==2ANDB_1;

       回首惊天:IFF(B_2AND影响时间!=1AND冗余过滤,1,DRAWNULL),NODRAW,COLORYELLOW;

       STICKLINE(回首惊天,CLOSE,OPEN,8,0),COLORYELLOW;

       STICKLINE(回首惊天,HIGH,LOW,0,0),COLORYELLOW;

       DRAWTEXT(回首惊天,LOW,'B'),COLORYELLOW;

       C_1:=CROSS(CLOSE,下轨)ANDREF(CLOSE,影响时间-1) REF(OPEN,影响时间-1)ANDCOUNT(回首惊天,影响时间)==0;

       C_2:=COUNT(C_1,影响时间)==1ANDC_1;

       蓄势擎天:IFF(C_2AND影响时间!=1AND冗余过滤,1,DRAWNULL),NODRAW,COLORMAGENTA;

       STICKLINE(蓄势擎天,CLOSE,OPEN,8,0),COLORMAGENTA;

       STICKLINE(蓄势擎天,HIGH,LOW,0,0),COLORMAGENTA;

       DRAWTEXT(蓄势擎天,LOW,'B'),COLORMAGENTA;

       D_1:=CROSS(下轨,CLOSE)ANDREF(CLOSE,影响时间-1) REF(OPEN,影响时间-1);

       D_2:=COUNT(D_1,影响时间)==1ANDD_1;

       飞流直下:IFF(D_2AND影响时间!=1AND冗余过滤,1,DRAWNULL),NODRAW,COLORGREEN;

       STICKLINE(飞流直下,CLOSE,OPEN,8,0),COLORGREEN;

       STICKLINE(飞流直下,HIGH,LOW,0,0),COLORGREEN;

       DRAWTEXT(飞流直下,HIGH*1.01,'S'),COLORGREEN;

       E_1:=CROSS(下轨,CLOSE)ANDREF(CLOSE,影响时间-1) REF(OPEN,影响时间-1);

       E_2:=COUNT(E_1,影响时间)==2ANDE_1;

       回首再下:IFF(E_2AND影响时间!=1AND冗余过滤,1,DRAWNULL),NODRAW,COLORWHITE;

       STICKLINE(回首再下,CLOSE,OPEN,8,0),COLORWHITE;

       STICKLINE(回首再下,HIGH,LOW,0,0),COLORWHITE;

       DRAWTEXT(回首再下,HIGH*1.01,'S'),COLORWHITE;

       DRAWGBK(O C,RGB(48,41,124),RGB(0,0,0),0,'1',0);

       N:=250;

       AX:=BARSCOUNT(C);

       超周期:100-COS(AX/360*(N/12))*100,LINETHICK2,COLORWHITE;

       大周期:100-COS(AX/360*(N/6))*100,LINETHICK2,COLORYELLOW;

       小周期:100-COS(AX/360*(N/4))*100,LINETHICK2,COLOR7F00FF;

       短周期:100-COS(AX/360*(N/2))*100,LINETHICK2,COLOR00BB00;

       stICKLINE(短周期 5AND小周期 195,小周期,短周期,5,0),COLORWHITE;

       STICKLINE(短周期 5AND大周期 5AND超周期 195AND小周期 195,小周期,短周期,5,0),COLORYELLOW;

       STICKLINE(短周期 5AND大周期 5AND超周期 5AND小周期 5,200,短周期,5,0),COLORRED;

       STICKLINE(短周期 195AND大周期 195AND超周期 195AND小周期 195,2,短周期,5,0),COLORRED;

       IF(短周期 195AND大周期 195,150,200),COLORRED,LINETHICK2;

       IF(短周期 5AND小周期 5,50,0),COLORAAAA00,LINETHICK2;

       DRAWTEXT(短周期 5OR短周期 195,短周期,'★'),COLORYELLOW;




    通达信期货现货原油指标截图

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信期货现货原油指标源码 加入收藏