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

    正文概述    2024-05-04 04:29:47  
    VAR1:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2); VAR2:=REF(VAR1,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR3:=REF(VAR2,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR4:=REF(VAR3,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR5:=REF(VAR4,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR6:=REF(VAR5,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR7:=REF(VAR6,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR8:=REF(VAR7,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR9:=REF(VAR8,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VARA:=REF(VAR9,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VARB:=REF(VARA,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VARC:=REF(VARB,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBOR VARC,CLOSE,REF(CLOSE,1),1.5,0),COLORRED; VARD:=CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2); VARE:=REF(VARD,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VARF:=REF(VARE,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR10:=REF(VARF,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR11:=REF(VAR10,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR12:=REF(VAR11,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR13:=REF(VAR12,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR14:=REF(VAR13,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR15:=REF(VAR14,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR16:=REF(VAR15,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR17:=REF(VAR16,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); VAR18:=REF(VAR17,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2); STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16OR VAR17ORVAR18,CLOSE,REF(CLOSE,1),1.5,0),COLORGREEN; VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16OR VAR17ORVAR18,1)ANDVAR1; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORGREEN; VAR1A:=REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC,1)ANDVARD; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORRED; A:=IF(C REF(C,1)ANDREF(C,1) REF(C,2)ANDL REF(L,1)ANDL REF(L,2),REF(C,2),IF(C REF(C,1),C,REF(C,1))); TOWER1:IF(VAR1A,REF(A,1),A),nodraw; TOWER2:=IF(C =REF(C,1),C,MIN(MIN(REF(C,2),REF(C,1)),MIN(REF(C,1),C))),nodraw; {三平底:COUNT(TOWER2=REF(TOWER2,1),2)=2ANDVAR19,NODRAW; 三平顶:COUNT(TOWER1=REF(TOWER1,1),2)=2ANDVAR1A,NODRAW; DRAWTEXT(三平顶,HIGH,'←平顶'),COLORYELLOW; DRAWTEXT(三平底,LOW,'←平底'),COLORMAGENTA;}{此段显示文字提示} VAR2:=SUM(maX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25); VAR3:=HIGH-REF(HIGH,1); VAR4:=REF(LOW,1)-LOW; VAR5:=SUM(IF(VAR3 0ANDVAR3 VAR3,VAR3,0),25); VAR6:=SUM(IF(VAR4 0ANDVAR4 VAR2,VAR4,0),25); VAR7:=VAR5*100/VAR2; VAR8:=VAR6*100/VAR2; VAR9:=MA(ABS(VAR8-VAR7)/(VAR8+VAR7)*100,15); VAR10:=(VAR9+REF(VAR9,15))/2; A:=(VAR8 VAR7ANDVAR8 25ANDVAR7 B:zig(3,50/6)*100,COLORRED; G:MA(B,4),COLORYELLOW; D:=crOSS(B,G)*1000,COLORRED; W:=CROSS(G,B)*1000,COLORBLUE; E:=REF(INDEXC,1); F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1); VAR11:=FANDF VAR12:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR13:=SMA(VAR12,3,1); VAR14:=SMA(VAR13,3,1); VAR15:=VAR14ANDVAR14 MM:=AANDDANDVAR11ANDVAR15; DRAWTEXT(W=1000,B*1.05,'卖'),COLORGREEN; DRAWTEXT(D=1000,B*1.05,'买'),COLORRED;





    [源码注释]通达信钱龙短线指标公式公式解读


    VAR1赋值:收盘价 1日前的收盘价ANDCLOSE 2日前的收盘价 VAR2赋值:1日前的VAR1ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR3赋值:1日前的VAR2ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR4赋值:1日前的VAR3ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR5赋值:1日前的VAR4ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR6赋值:1日前的VAR5ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR7赋值:1日前的VAR6ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR8赋值:1日前的VAR7ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR9赋值:1日前的VAR8ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VARA赋值:1日前的VAR9ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VARB赋值:1日前的VARAANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VARC赋值:1日前的VARBANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 当满足条件VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC时,在收盘价和1日前的收盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,画红色 VARD赋值:收盘价 1日前的收盘价ANDCLOSE 2日前的收盘价 VARE赋值:1日前的VARDANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VARF赋值:1日前的VAREANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR10赋值:1日前的VARFANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR11赋值:1日前的VAR10ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR12赋值:1日前的VAR11ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR13赋值:1日前的VAR12ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR14赋值:1日前的VAR13ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR15赋值:1日前的VAR14ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR16赋值:1日前的VAR15ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR17赋值:1日前的VAR16ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 VAR18赋值:1日前的VAR17ANDCLOSE =1日前的收盘价ANDCLOSE =2日前的收盘价 当满足条件VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18时,在收盘价和1日前的收盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,画绿色 VAR19赋值:1日前的VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18ANDVAR1 当满足条件VAR19时,在1日前的收盘价和2日前的收盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,画绿色 VAR1A赋值:1日前的VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARCANDVARD 当满足条件VAR1A时,在1日前的收盘价和2日前的收盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,画红色 A赋值:如果收盘价 ,返回?,否则返回? 1日前的收盘价ANDREF(收盘价,1) 2日前的收盘价ANDL 1日前的最低价ANDL 2日前的最低价,2日前的收盘价,如果收盘价 ,返回?,否则返回? 1日前的收盘价,收盘价,1日前的收盘价)) 输出TOWER1:如果VAR1A,返回1日前的A,否则返回A,NODRAW TOWER2赋值:如果收盘价 ,返回?,否则返回? =1日前的收盘价,收盘价,2日前的收盘价和1日前的收盘价的较小值和1日前的收盘价和收盘价的较小值的较小值),NODRAW VAR2赋值:最高价-最低价和最高价-1日前的收盘价的绝对值的较大值和最低价-1日前的收盘价的绝对值的较大值的25日累和 VAR3赋值:最高价-1日前的最高价 VAR4赋值:1日前的最低价-最低价 VAR5赋值:如果VAR3 0ANDVAR3 VAR3,返回VAR3,否则返回0的25日累和 VAR6赋值:如果VAR4 0ANDVAR4 VAR2,返回VAR4,否则返回0的25日累和 VAR7赋值:VAR5*100/VAR2 VAR8赋值:VAR6*100/VAR2 VAR9赋值:VAR8-VAR7的绝对值/(VAR8+VAR7)*100的15日简单移动平均 VAR10赋值:(VAR9+15日前的VAR9)/2 A赋值:(VAR8 VAR7ANDVAR8 25ANDVAR7 25) 输出B:收盘价50/6%的之字转向*100,画红色 输出G:B的4日简单移动平均,画黄色 D赋值:B上穿G*1000,画红色 W赋值:G上穿B*1000,画蓝色 E赋值:1日前的的收盘价 F赋值:大盘的收盘价-E和0的较大值的3日[1日权重]移动平均/大盘的收盘价-E的绝对值的3日[1日权重]移动平均 VAR11赋值:FANDF 8 VAR12赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100 VAR13赋值:VAR12的3日[1日权重]移动平均 VAR14赋值:VAR13的3日[1日权重]移动平均 VAR15赋值:VAR14ANDVAR14 20 MM赋值:AANDDANDVAR11ANDVAR15 当满足条件W=1000时,在B*1.05位置书写文字,画绿色 当满足条件D=1000时,在B*1.05位置书写文字,画红色




    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信钱龙短线指标公式 加入收藏