首页 > 编程语言 >通达信建仓牛熊争霸副图源码

通达信建仓牛熊争霸副图源码

时间:2024-03-09 16:00:10浏览次数:30  
标签:EMA LLV 通达信 源码 CLOSE 牛熊 100 REF SMA

{ 通达信建仓牛熊争霸副图源码 }


LC:=REF(CLOSE,1);
rsi1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;
卖点:=crOSS(85,RSI1)*30,COLOR00FF00,LINETHICK2;
卖:IF(卖点,6.5,0),stICK,COLORGREEN,LINETHICK4;
赚钱A:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;
量1:=EMA(赚钱A,3);
量2:=EMA(赚钱A,5);
量3:=EMA(赚钱A,7);
STICKLINE(量1>量2,量3,量1,3,1),COLORRED;
STICKLINE(量1<量2,量3,量1,2,0),COLORCYAN;
T1:=量2>量3 AND 量1<ref(量1,1);< span="">
T2:=量2<量3 AND 量1>REF(量1,1);
STICKLINE(T1,量1,量3,2,0),COLORYELLOW;
STICKLINE(T2,量1,量3,3,1),COLORFF00FF;
赚钱B:=SMA(赚钱A,13,1);
分水岭:SMA(赚钱B,2.5,1.5),LINETHICK2,COLORWHITE;
牛线:3*赚钱B-2*分水岭,LINETHICK2,COLORFF00FF ;
熊线:4*分水岭-3*赚钱B,LINETHICK2,COLORFF6633;
DIF1:=EMA(C,12)-EMA(C,26);
DEA1:=EMA(DIF1,9);
macd1:=2*(DIF1-DEA1);
QZQ:=BArslAST(REF(MacD,1)<0 AND MACD>0);
QM:=LLVBARS(MACD1,QZQ+20);
MQDZ:=IF(QM>QZQ,REF(MACD1,QM),0);
QF:=LLVBARS(DIF1,QZQ+20);
DQDZ:=IF(QF>QZQ,REF(DIF1,QF),0);
XG1:=MACD1<0 AND MACD1>MQDZ AND DIF1<0 AND DIF1>DQDZ AND C=LLV(C,QZQ+20) AND MQDZ<0 AND DQDZ<0;
XG:REF(XG1,1)=1 AND MACD1>REF(MACD1,1);
VAR21A:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR61:=REF(CLOSE,1);
VAR70A:=SMA(MAX(CLOSE-VAR61,0),6,1)/SMA(ABS(CLOSE-VAR61),6,1)*100;
DRAWICON(CROSS(90,VAR70A),H*0.8,9);
mtm1:=C-REF(C,1);
A013:=HHV(HIGH,34);
A014:=(2*CLOSE+HIGH+LOW)/4;
A015:=LLV(LOW,34);
A016:=EMA(((A014-A015)/(A013-A015))*100,13);
A017:=EMA(0.667*REF(A016,1)+0.333*A016,2);
KKMD:=A016-A017>1 AND A016<30 AND A017<30;
DRAWTEXT(FILTER(KKMD,30),L*0.05,'▲短买'),COLOR00FFFF;
VAR06:=REF(C,1);
VAR07:=SMA(MAX(C-VAR06,0),6,1)/SMA(ABS(C-VAR06),6,1)*100;
DRAWTEXT(CROSS(82,VAR07),H*0.9,'◆减仓'),COLORGREEN;
RSVB:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100;
K:=SMA(RSVB,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
VARA6:=(2*C+H+L)/3;
VARA7:=EMA(EMA(EMA(VARA6,4),4),4);
VARA8:=(VARA7-REF(VARA7,1))/REF(VARA7,1)*100;
VARA9:=MA(VARA8,3)+0.03;
VARA10:=MA(VARA8,1);
DRAWICON(CROSS(VARA9,VARA10) AND J>90,H*0.96,12),COLORGREEN;
DRAWTEXT(CROSS(VARA9,VARA10) AND J>90,H*1.02,'卖'),COLORCYAN;
LCD:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LCD,0),4.1,1)/SMA(ABS(CLOSE-LCD),4.1,1)*100;
建仓:CROSS(RSI,11)*10,COLORRED;

 

标签:EMA,LLV,通达信,源码,CLOSE,牛熊,100,REF,SMA
From: https://www.cnblogs.com/zhibiao/p/18062843

相关文章

  • 通达信特快列车主图 源码主图指标公式
    {通达信特快列车主图源码主图指标公式}A5:MA(C,5),COLOR00FFFF; A20:MA(C,20),COLORFF00FF;A30:MA(C,30),COLOR00FF00;M5:=ATAN((A5/REF(A5,1)-1)*100)*180/3.14159;M20:=ATAN((A20/REF(A20,1)-1)*100)*180/3.14159;M30:=ATAN((A30/REF(A30,1)-1)*100)*180/3.14159;Q......
  • 通达信主力进场副图指标公式信号简单清楚,毫不含糊
    {通达信主力进场副图指标公式信号简单清楚,毫不含糊}主力进场,信号简单清楚,毫不含糊,红柱表示准备拦住表示出手。源码{主力进场}VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);VAR5:=LLV(L......
  • 通达信金股分时分时副图判断机构买盘掌握精准介入时机
    {通达信金股分时分时副图判断机构买盘掌握精准介入时机} 成交额:=V*C/100,NODRAW;A2:=SUM((IF(((成交额/8>20)AND(CLOSE>(REF(CLOSE,1)))),成交额,0)),0); A3:=SUM((IF(((成交额/8>20)AND(CLOSE<(REF(CLOSE,1)))),成交额,0)),0); A4:=SUM((IF(((成交额/8......
  • spdlog 源码解析
    spdlog是开源、高性能、跨平台,支持header-only/compiled的C++日志库。本文主要目的是对spdlogv1.13.0的源码进行分析(编译运行环境为6.5.0-18-generic#18~22.04.1-Ubuntu),以探讨spdlog如何构建高性能、可扩展的日志框架的。github链接gabime/spdlog:FastC++loggingli......
  • 通达信牛熊趋势共振主图指标公式源码
    {通达信牛熊趋势共振主图指标公式源码}HH:=HHV(H,9);LL:=LLV(L,9);FG:=(HH-LL)/100;RSV:=(C-LL)/(HH-LL)*100;K1:=SMA(RSV,3,1);DA:=SMA(K1,3,1);J1:=3*K1-2*DA;K:K1*FG+LL,NODRAW;D:DA*FG+LL,NODRAW;J:=J1*FG+LL;DRAWBAND(K,RGB(250,0,0),D,RGB(0,180,0));ZIF:=EM......
  • 通达信六道轮回主图指标公式源码附图
    {通达信六道轮回主图指标公式源码附图}VAR1:=1;VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);VAR3:=EMA(CLOSE,3);VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1;VAR5:=VAR2-VAR3;风险线:EMA(VAR4,45)*1.15;必卖线:EMA(VAR4,55)*1.3;底线:EMA(VAR4,40)*0.85;铁底线:EMA(VAR4,88)*0.7,C......
  • 通达信K线解盘预测指标公式源码
    {通达信K线解盘预测指标公式源码}STICKLINE(CURRBARSCOUNT=118,100,0,200,0),COLORWHITE;{均线}MA1:=MA(C,5),NODRAW;均价:=(OPEN+HIGH+LOW+CLOSE*2)/5,NODRAW;突破:=均价+HIGH-LOW,NODRAW;阻力:=均价*2-LOW,NODRAW;支撑:=均价*2-HIGH,NODRAW;下降:=均价-HIGH+LOW,NODR......
  • 通达信波段低位主图指标公式源码
    {通达信波段低位主图指标公式源码}MA3:MA(C,3),COLORRED,LINETHICK3;MA5:MA(C,5),COLORWHITE;MA10:MA(C,10),COLORGREEN;MA20:MA(C,20),COLORYELLOW,LINETHICK3;NOTEXT1:IF(SAR.sar>=H,SAR.SAR,DRAWNULL),CIRCLEDOT,COLORGREEN;NOTEXT2:IF(SAR.SAR<=L,SAR.SAR,DRAWNULL)......
  • 通达信山谷淘金指标公式源码副图
    {通达信山谷淘金指标公式源码副图}DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,'',0),LINETHICK2;DRAWTEXT_FIX(1,0,0.1,0,'山谷淘金'),COLOR00FFFF;VAR1:=REF(LOW,1);VAR2:=SMA(Abs(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;VAR3:=EMA(IF(CLOSE*1.3,VAR2*......
  • 通达信买入翻倍选股指标公式源码副图
    {通达信买入翻倍选股指标公式源码副图}通达信买入翻倍选股指标公式VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(Abs(CLOSE-VAR1),6,1)*100;VAR3:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;VAR4:=(BArslAst(VAR3<20)<=3ANDcrOSS(VAR2,V......