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

    正文概述    2024-05-04 04:01:52  
    VAR1:=MA(CLOSE,5); VAR2:=MA(CLOSE,10); VAR3:=MA(CLOSE,60); VAR4:=MA(CLOSE,120); VAR7:=EMA(HHV(HIGH,1),8); VAR8:=EMA(CLOSE,8); VAR9:=VAR8 REF(VAR8,1)ANDCLOSE VAR8; VAR10:=IF(VAR7 REF(VAR7,1)ORVAR9,1,0); VAR11:=(COUNT(VAR10=1,4)=3ANDVAR10=0)*89; VAR12:=/((HIGH-LOW)*2-Abs(CLOSE-OPEN)); VAR13:=IF(CLOSE OPEN,VAR12*(HIGH-LOW),IF(CLOSE OPEN,VAR12*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE OPEN,0-VAR12*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE OPEN,0-VAR12*(HIGH-LOW),0-VOL/2)); VAR14:=VAR13/20/1.15; VAR15:=VAR14*0.55+REF(VAR14,1)*0.33+REF(VAR14,2)*0.22; VAR16:=EMA(VAR15,3); VAR17:=VAR16 VAR18:=COUNT(VAR17,9) VAR19:=CLOSE/REF(CLOSE,1) 1.09; VAR20:=CLOSE=HIGH; VAR21:=REF(VAR19,1)ANDREF(VAR20,1); VAR22:=COUNT(VAR21,11) VAR23:=MA(CLOSE,3); VAR24:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100; VAR25:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100; VAR26:=REF(HHV(VOL,10),1); VAR27:=MA(CLOSE,20); VAR28:=(VAR23+VAR1)/2; VAR29:=COUNT(COUNT(VAR24 9.9ANDCLOSE=HIGH,1) =1,30) VAR30:=COUNT(COUNT(VAR24 9.9ANDCLOSE=HIGH,1) =1,60) VAR31:=VAR27 REF(VAR27,1)ANDVOL VAR26ANDVAR29ANDVAR25 3ANDOPEN =VAR1ANDCLOSE VAR1AND(COUNT(VAR28 REF(VAR28,1),3) =3ORCOUNT(VAR1 REF(VAR1,1),3) =3)ANDCOUNT(VAR27 REF(VAR27,1),25) VAR32:=(CLOSE-OPEN)/OPEN*100; VAR33:=VAR30ANDVOL 1.3*REF(VOL,1)ANDCOUNT(VAR32 0.5,6) =5ANDCOUNT(VAR23 VAR1,5) =5ANDCOUNT(HIGH REF(HIGH,1),6) =5ANDVAR25 4.5ANDOPEN =VAR23ANDCLOSE VAR23ANDOPEN VAR1; VAR34:=VAR31ORVAR33; VAR35:=VAR34=1ANDCOUNT(VAR34,15)=1; VAR36:=AMOUNT/VOL/7; VAR37:=(3*HIGH+LOW+OPEN+2*CLOSE)/7; VAR38:=SUM(AMOUNT,10)/VAR36/7; VAR39:=DMA(VAR37,VOL/VAR38); VAR40:=(CLOSE-VAR39)/VAR39*100; VAR41:=-VAR40; VAR42:=VAR40 VAR41; VAR43:=crOSS(VAR40,0.6)ANDVAR42; VAR44:=EMA(CLOSE/REF(CLOSE,1),5); VAR45:=EMA(CLOSE/REF(CLOSE,1),10); VAR46:=CROSS(VAR44,VAR45); VAR47:=VAR43ANDVAR46; VAR48:=VAR47ANDVAR35; VAR49:=COUNT(VAR35,10) VAR50:=VAR47ANDVAR49ANDVAR22; VAR51:=VAR47ANDVAR22ANDVAR11; VAR52:=VAR48ANDVAR22; VAR53:=VAR50ORVAR52ORVAR51; VAR59:=EMA(EMA(EMA(CLOSE,12),12),12); VAR60:=(VAR59-REF(VAR59,1))/REF(VAR59,1)*100; VAR61:=MA(VAR60,9); VAR62:=VAR60 VAR61; VAR63:=CLOSE/REF(CLOSE,1) 1.09; VAR64:=CLOSE=HIGH; VAR65:=REF(VAR63,1)ANDREF(VAR64,1); VAR66:=COUNT(VAR65,4) VAR68:=(3*CLOSE+LOW+OPEN+HIGH)/6; VAR69:=(20*VAR68+19*REF(VAR68,1)+18*REF(VAR68,2)+17*REF(VAR68,3)+16*REF(VAR68,4)+15*REF(VAR68,5)+14*REF(VAR68,6)+13*REF(VAR68,7)+12*REF(VAR68,8)+11*REF(VAR68,9)+10*REF(VAR68,10)+9*REF(VAR68,11)+8*REF(VAR68,12)+7*REF(VAR68,13)+6*REF(VAR68,14)+5*REF(VAR68,15)+4*REF(VAR68,16)+3*REF(VAR68,17)+2*REF(VAR68,18)+REF(VAR68,20))/210; VAR70:=MA(VAR69,6); VAR71:=VAR69 VAR70; VAR72:=CLOSE 1.02*REF(CLOSE,1); VAR73:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 (-6); VAR75:=REF(CLOSE,1) (REF(CLOSE,BArslAST(VAR73))+REF(CLOSE,BARSLAST(VAR73)+1))/2ANDCLOSE (REF(CLOSE,BARSLAST(VAR73))+REF(CLOSE,BARSLAST(VAR73)+1))/2; VAR76:=BARSLAST(VAR73) =7ANDVAR72ANDVAR75ANDCOUNT(VAR72,BARSLAST(VAR73))=1ANDNOT(HIGH=LOW)ANDREF(NOT(HIGH=LOW),BARSLAST(VAR73))=1; VAR78:=((CLOSE-REF(MA(CLOSE,6),1))/6+MA(CLOSE,6))*1.004; VAR79:=CROSS(CLOSE,VAR78)ANDVAR78 REF(VAR78,1); VAR80:=((CLOSE-REF(MA(CLOSE,18),1))/18+MA(CLOSE,18))*1.004; VAR81:=CROSS(CLOSE,VAR80)ANDVAR80 REF(VAR80,1); VAR82:=VAR79ANDVAR81ANDVAR76ANDVAR71ANDVAR62; VAR83:=VAR66ANDVAR76ANDVAR71ANDVAR62; VAR84:=VAR82ORVAR83; VAR85:=VAR18ANDVAR53; VAR86:=VAR84ORVAR85; STICKLINE(VAR86,0,20.6,8,0),COLORGREEN; STICKLINE(VAR86,20.6,38.200001,6,0),COLORYELLOW; STICKLINE(VAR86,38.200001,61.799999,5,0),COLORLIMAGENTA; DRAWTEXT(VAR86,58.799999,4),COLORLIMAGENTA,LINETHICK4; DRAWICON(VAR86,61.799999,13);

    公式解读:

    买入信号指标公式源码解读


    VAR1赋值:收盘价的5日简单移动平均 VAR2赋值:收盘价的10日简单移动平均 VAR3赋值:收盘价的60日简单移动平均 VAR4赋值:收盘价的120日简单移动平均 VAR7赋值:1日内最高价的最高值的8日指数移动平均 VAR8赋值:收盘价的8日指数移动平均 VAR9赋值:VAR8 1日前的VAR8ANDCLOSE VAR8 VAR10赋值:如果VAR7 1日前的VAR7ORVAR9,返回1,否则返回0 VAR11赋值:(统计4日中满足VAR10=1的天数=3ANDVAR10=0)*89 VAR12赋值:(手)/((最高价-最低价)*2-收盘价-开盘价的绝对值) VAR13赋值:如果收阳线,返回VAR12*(最高价-最低价),否则返回如果收阴线,返回VAR12*(最高价-开盘价+收盘价-最低价),否则返回成交量(手)/2+如果收阳线,返回0-VAR12*(最高价-收盘价+开盘价-最低价),否则返回如果收阴线,返回0-VAR12*(最高价-最低价),否则返回0-成交量(手)/2 VAR14赋值:VAR13/20/1.15 VAR15赋值:VAR14*0.55+1日前的VAR14*0.33+2日前的VAR14*0.22 VAR16赋值:VAR15的3日指数移动平均 VAR17赋值:VAR16 100 VAR18赋值:统计9日中满足VAR17的天数 2 VAR19赋值:收盘价/1日前的收盘价 1.09 VAR20赋值:收盘价=最高价 VAR21赋值:1日前的VAR19ANDREF(VAR20,1) VAR22赋值:统计11日中满足VAR21的天数 0 VAR23赋值:收盘价的3日简单移动平均 VAR24赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100 VAR25赋值:(最高价-1日前的收盘价)/1日前的收盘价*100 VAR26赋值:1日前的10日内成交量(手)的最高值 VAR27赋值:收盘价的20日简单移动平均 VAR28赋值:(VAR23+VAR1)/2 VAR29赋值:统计30日中满足统计1日中满足VAR24 9.9ANDCLOSE=最高价的天数 =1的天数 0 VAR30赋值:统计60日中满足统计1日中满足VAR24 9.9ANDCLOSE=最高价的天数 =1的天数 0 VAR31赋值:VAR27 1日前的VAR27ANDVOL VAR26ANDVAR29ANDVAR25 3ANDOPEN =VAR1ANDCLOSE VAR1AND(统计3日中满足VAR28 1日前的VAR28的天数 =3ORCOUNT(VAR1 1日前的VAR1,3) =3)ANDCOUNT(VAR27 1日前的VAR27,25) =16 VAR32赋值:(收盘价-开盘价)/开盘价*100 VAR33赋值:VAR30ANDVOL 1.3*1日前的成交量(手)ANDCOUNT(VAR32 0.5,6) =5ANDCOUNT(VAR23 VAR1,5) =5ANDCOUNT(最高价 1日前的最高价,6) =5ANDVAR25 4.5ANDOPEN =VAR23ANDCLOSE VAR23ANDOPEN VAR1 VAR34赋值:VAR31ORVAR33 VAR35赋值:VAR34=1ANDCOUNT(VAR34,15)=1 VAR36赋值:成交额(元)/成交量(手)/7 VAR37赋值:(3*最高价+最低价+开盘价+2*收盘价)/7 VAR38赋值:成交额(元)的10日累和/VAR36/7 VAR39赋值:以成交量(手)/VAR38为权重VAR37的动态移动平均 VAR40赋值:(收盘价-VAR39)/VAR39*100 VAR41赋值:-VAR40 VAR42赋值:VAR40 VAR41 VAR43赋值:VAR40上穿0.6ANDVAR42 VAR44赋值:收盘价/1日前的收盘价的5日指数移动平均 VAR45赋值:收盘价/1日前的收盘价的10日指数移动平均 VAR46赋值:VAR44上穿VAR45 VAR47赋值:VAR43ANDVAR46 VAR48赋值:VAR47ANDVAR35 VAR49赋值:统计10日中满足VAR35的天数 0 VAR50赋值:VAR47ANDVAR49ANDVAR22 VAR51赋值:VAR47ANDVAR22ANDVAR11 VAR52赋值:VAR48ANDVAR22 VAR53赋值:VAR50ORVAR52ORVAR51 VAR59赋值:收盘价的12日指数移动平均的12日指数移动平均的12日指数移动平均 VAR60赋值:(VAR59-1日前的VAR59)/1日前的VAR59*100 VAR61赋值:VAR60的9日简单移动平均 VAR62赋值:VAR60 VAR61 VAR63赋值:收盘价/1日前的收盘价 1.09 VAR64赋值:收盘价=最高价 VAR65赋值:1日前的VAR63ANDREF(VAR64,1) VAR66赋值:统计4日中满足VAR65的天数 0 VAR68赋值:(3*收盘价+最低价+开盘价+最高价)/6 VAR69赋值:(20*VAR68+19*1日前的VAR68+18*2日前的VAR68+17*3日前的VAR68+16*4日前的VAR68+15*5日前的VAR68+14*6日前的VAR68+13*7日前的VAR68+12*8日前的VAR68+11*9日前的VAR68+10*10日前的VAR68+9*11日前的VAR68+8*12日前的VAR68+7*13日前的VAR68+6*14日前的VAR68+5*15日前的VAR68+4*16日前的VAR68+3*17日前的VAR68+2*18日前的VAR68+20日前的VAR68)/210 VAR70赋值:VAR69的6日简单移动平均 VAR71赋值:VAR69 VAR70 VAR72赋值:收盘价 1.02*1日前的收盘价 VAR73赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100 (-6) VAR75赋值:1日前的收盘价 (上次VAR73距今天数日前的收盘价+上次VAR73距今天数+1日前的收盘价)/2ANDCLOSE (上次VAR73距今天数日前的收盘价+上次VAR73距今天数+1日前的收盘价)/2 VAR76赋值:上次VAR73距今天数 =7ANDVAR72ANDVAR75ANDCOUNT(VAR72,上次VAR73距今天数)=1ANDNOT(最高价=最低价)ANDREF(取反,上次VAR73距今天数)=1 VAR78赋值:((收盘价-1日前的收盘价的6日简单移动平均)/6+收盘价的6日简单移动平均)*1.004 VAR79赋值:收盘价上穿VAR78ANDVAR78 1日前的VAR78 VAR80赋值:((收盘价-1日前的收盘价的18日简单移动平均)/18+收盘价的18日简单移动平均)*1.004 VAR81赋值:收盘价上穿VAR80ANDVAR80 1日前的VAR80 VAR82赋值:VAR79ANDVAR81ANDVAR76ANDVAR71ANDVAR62 VAR83赋值:VAR66ANDVAR76ANDVAR71ANDVAR62 VAR84赋值:VAR82ORVAR83 VAR85赋值:VAR18ANDVAR53 VAR86赋值:VAR84ORVAR85 当满足条件VAR86时,在0和20.6位置之间画柱状线,宽度为8,0不为0则画空心柱.,画绿色 当满足条件VAR86时,在20.6和38.200001位置之间画柱状线,宽度为6,0不为0则画空心柱.,画黄色 当满足条件VAR86时,在38.200001和61.799999位置之间画柱状线,宽度为5,0不为0则画空心柱.,画淡洋红色 当满足条件VAR86时,在58.799999位置书写文字,画淡洋红色,线宽为4 当满足条件VAR86时,在61.799999位置画13号图标




    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 买入信号指标公式 加入收藏