首页 > 编程语言 >通达信蒙氏剑鞘线主图指标公式源码

通达信蒙氏剑鞘线主图指标公式源码

时间:2024-01-29 14:05:12浏览次数:33  
标签:10 BACKSET STICKLINE 线主图 通达信 源码 TYX5 TYX4 REF

{波峰}
TY:=H;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BacKSET(B1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C002:=BACKSET(B2,10+1);
LD:=FILTER(C002,10);
波峰:REF(H,BArslAst(HD)),COLOR00808F,POINTDOT,LINETHICK4;
STICKLINE(H,波峰,波峰,8,0),COLOR00808F,LINETHICK4;
{彩色k线}
TYX3:=ma(REF(HHV((C+L+O+H)/4,30),1),3);
TYX4:=MA((C+L+O+H)/4,13);
TYX5:=EMA((C+L+O+H)/4,21);
{空心红}
STICKLINE(CO,H,L,0,0),COLORRED;
STICKLINE(CO,C,O,3,1),COLORRED;
{深绿}
STICKLINE(C STICKLINE(C STICKLINE(C STICKLINE(C {蓝}
STICKLINE(C>TYX5 AND C<o,h,l,0,0),colorffdd44;
STICKLINE(C>TYX5 AND C<o,c,o,3,0 ),colorff7700;<br=""> STICKLINE(C>TYX5 AND C<o,c,o,2,0 ),colorffaa22;<br=""> STICKLINE(C>TYX5 AND C<o,c,o,1 ,0="" ),colorffdd44;<br=""> {黄}
STICKLINE(C>TYX5 AND C>O,H,L,0,0 ),COLOR00EEFF;
STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF;
STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF;
STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF;
{粉红}
STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA;
STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF;
STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF;
STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF;
{亮灰}
STICKLINE(C>TYX4 AND C<o,h,l,0,0),color999999;
STICKLINE(C>TYX4 AND C<o,c,o,3,0),color555555;
STICKLINE(C>TYX4 AND C<o,c,o,2,0),color777777;
STICKLINE(C>TYX4 AND C<o,c,o,1,0),color999999;
{深红}
STICKLINE(C>TYX3 AND C>O,H,L,0,0),COLOR0000DD;
STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099;
STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB;
STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD;
{涨跌停K线}
STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),COLORWHITE;
{冲龙突破}
STICKLINE(REF(COUNT(C<tyx3,5)=5,1) and="" c="">TYX3 AND C>O,C,O,1,0),COLOR00CCFF;
STICKLINE(REF(COUNT(C<tyx3,5)=5,1) and="" c="">TYX3 AND C>O,C,O,1,0),COLOR00CCFF;
MA05:=MA(C,5);
MA5角度: ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416,NODRAW;
T01:=CONST(LLVBARS(LOW,10));
T1HIGH:=CONST(REF(HIGH,T01));
MM:=CONST(CURRBARSCOUNT);
T02:=CONST(BARSLAST(CURRBARSCOUNT>MM+T01 AND H>T1HIGH));
T2HIGH:=CONST(REF(HIGH,T02));
T03:=CONST(BARSLAST(CURRBARSCOUNT>MM+T02 AND HIGH>T2HIGH));
T3HIGH:=CONST(REF(HIGH,T03));
蒙氏剑鞘线:DRAWLINE(CURRBARSCOUNT=T03+1, T3HIGH, ISLASTBAR, T3HIGH,1),LINETHICK3,COLOR8080FF;
DRAWTEXT(ISLASTBAR, T3HIGH, '蒙氏剑鞘线')LINETHICK2,COLORCYAN;
{趋势线}
A6A:=REF(HIGH,6)=HHV(HIGH,2*6+1);
B6A:=FILTER(A6A,6);
C6A:=BACKSET(B6A,6+1);
D6A:=FILTER(C6A,6);
A7A:=REF(LOW,6)=LLV(LOW,2*6+1);
B7A:=FILTER(A7A,6);
C7A:=BACKSET(B7A,6+1);
D7A:=FILTER(C7A,6);
E6A:=(REF(LLV(LOW,2*6),1)+REF(HHV(HIGH,2*6),1))/2;
E7A:=(HIGH+LOW)/2;
H6A:=(D6A AND NOT(D7A AND E6A>=E7A)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
H7A:=D6A AND NOT(D7A AND E6A>=E7A);
L6A:=D7A AND NOT(D6A AND E6A=E7A);
X6A:=REF(BARSLAST(H6A),1)+1;
F6A:=BACKSET(H6A AND COUNT(L6A,X6A)>0,LLVBARS(IF(L6A,LOW,10000),X6A));
G6A:=F6A>REF(F6A,1);
I6A:=BACKSET(G6A,2);
LD2A:=I6A>REF(I6A,1);
L7A:=LD2A OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X7A:=REF(BARSLAST(L7A),1)+1;
F7A:=BACKSET(L7A AND COUNT(H7A,X7A)>0,HHVBARS(IF(H7A,HIGH,0),X7A));
G7A:=F7A>REF(F7A,1);
I7A:=BACKSET(G7A,2);
HD2A:=I7A>REF(I7A,1);
UU3A:=BACKSET(BARSTATUS=2,BARSLAST(LD2A)+1);
VV3A:=UU3A>REF(UU3A,1);
WW3A:=BACKSET(VV3A,REF(BARSLAST(LD2A),1)+2);
XX3A:=WW3A>REF(WW3A,1);
{下沿线}
DRAWLINE(XX3A,L,VV3A,L,1),COLORCYAN,LINETHICK2;
UU4A:=BACKSET(BARSTATUS=2,BARSLAST(HD2A)+1);
VV4A:=UU4A>REF(UU4A,1);
WW4A:=BACKSET(VV4A,REF(BARSLAST(HD2A),1)+2);
XX4A:=WW4A>REF(WW4A,1);
{上沿线}
DRAWLINE(XX4A,H,VV4A,H,1),COLOR8000F0,LINETHICK2;

 

标签:10,BACKSET,STICKLINE,线主图,通达信,源码,TYX5,TYX4,REF
From: https://www.cnblogs.com/zhibiao/p/17994354

相关文章

  • 通达信黄金VIP量比指标公式源码副图
    T1:=20;T2:=60;T3:=120;LONG1:IF(C>Ema(C,T1),1,0),COLORWHITE;LONG2:IF(C>EMA(C,T2),1,0),COLORWHITE;LONG3:IF(C>EMA(C,T3),1,0),COLORWHITE;VAR0:=(WINNER(C*0.9))*100;stICKLINE(1,0,VAR0,3,0),COLOR000077;STICKLINE(1,0,VAR0,2.5,0),COLOR000099;......
  • 通达信黑马秘籍主图指标公式源码副图
    M1:MA(CLOSE,13),COLORYELLOW,LINETHICK2; M2:MA(CLOSE,34),LINETHICK2,COLORWHITE; M3:MA(CLOSE,55),COLORGREEN,LINETHICK2; A:MA(C,5)COLORBLUE,LINETHICK3; B:=A<ref(a,1); IF(B-1,A,DRAWNULL)COLORRED,LINETHICK3; DRAWTEXT(LAST(C<o,3,0)and=""......
  • 通达信超级买卖指标公式源码副图
    VAR1:=REF(CLOSE,2);会员专用:SMA(maX(CLOSE-VAR1,0),7,1)/SMA(Abs(CLOSE-VAR1),7,1)*100,COLORFFAA66;VAR2:=REF(CLOSE,1);VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;卖出:IF(会员专用<REF(会员专用,1)AND会员专用>79,会员专用,0);DRAWTEXT(......
  • 通达信【金钻天启2210】幅图选股公式 全新思路的超短线操作实战模式指标,成熟实战的思
    原公式某地售价1500元哦,完全加密,股海网和谐源码文件分享本指标一个幅图信号公式,一个选股公式全新思路的超短线操作实战模式指标,本指标是一款以低吸判断最近洗盘结束后,捕捉强势龙头信号介入点提示,自动过滤近期市场弱势股与不活跃股;成熟实战的思路策略设计,快速提升选股能力;贴近......
  • 通达信量价背离100%准确指标公式
    顶背2:ma(C,2)>REF((MA(C,2)),1)ANDMA(V,2)<ref((ma(v,2)),1);底背2:MA(C,2)<ref(ma(c,2),1)and=""ma(v,2)="">REF(MA(V,2),1);DRAWICON(顶背2,1,16);DRAWICON(底背2,1,30);顶背3:MA(C,3)>REF((MA(C,3)),1)ANDMA(V,3)<ref((ma(v,3)),1)......
  • Pytest 源码解读 [1] - [pluggy] 核心设计理念浅读
    背景:Pytest是一个功能强大的Python测试框架,它使用了一个名为"pluggy"的插件系统来扩展其功能。在Pytest的源码中,pluggy模块负责实现插件管理和扩展机制。核心类介绍:PluginManager 类:PluginManager 是pluggy模块提供的一个类,用于管理插件的加载、注册和调用。它负责......
  • 通达信彩龙现身指标公式源码副图
    VAR1:=(3*CLOSE+LOW+OPEN+HIGH)/6;A:(20*VAR1+19*REF(VAR1,1)+18*REF(VAR1,2)+17*REF(VAR1,3)+16*REF(VAR1,4)+15*REF(VAR1,5)+14*REF(VAR1,6)+13*REF(VAR1,7)+12*REF(VAR1,8)+11*REF(VAR1,9)+10*REF(VAR1,10)+9*REF(VAR1,11)+8*REF(VAR1,12)+7*REF(VAR1,15)+6*REF(VAR1,14......
  • 通达信金龙狂舞指标公式源码副图
    A1:=(Ema((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3;A2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22))/3;A3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIG......
  • 通达信N字首板选股指标公式源码副图
    收盘换手:=vol/CAPITAL*100;前板:=CLOSE>REF(CLOSE,1)*1.095;天数:=BArslAst(前板);小阴小阳:=HHV(Abs(C-REF(C,1))/REF(C,1)*100,BARSLAST(前板))<9;时间限制:=COUNT(前板,10)=1ANDBARSLAST(前板)>1ANDBARSLAST(前板)<6;温和换手:=EVERY(收盘换手>3,BARSLAST(前板));......
  • MyBatis 源码系列:MyBatis 体系结构、六大解析器
    体系结构MyBatis是一个持久层框架,其体系结构分为三层:基础支持层、核心处理层和接口层。基础支持层包括数据源模块、事务管理模块、缓存模块、Binding模块、反射模块、类型转换模块、日志模块、资源加载模块和解析器模块。这些模块为MyBatis提供了基础功能,为核心处理层提供了良好......