通达信B点波段买卖主图指标公式源码分享


VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=REF(CLOSE,1);
VAR6:=SMA(MAX(CLOSE-VAR5,0),6,1)/SMA(ABS(CLOSE-VAR5),6,1)*100;
VAR7:=SMA(MAX(CLOSE-VAR5,0),12,1)/SMA(ABS(CLOSE-VAR5),12,1)*100;
VAR8:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR9:=EMA(VAR8,9);
VAR10:=2*(VAR8-VAR9);
VAR11:=MA(CLOSE,20);
VAR12:=VAR11+2*STD(CLOSE,20);
VAR13:=VAR11-2*STD(CLOSE,20);
VAR14:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
VAR15:=HIGH-REF(HIGH,1);
VAR16:=REF(LOW,1)-LOW;
VAR17:=SUM(IF(VAR15>0 AND VAR15>VAR16,VAR15,0),14);
VAR18:=SUM(IF(VAR16>0 AND VAR16>VAR15,VAR16,0),14);
VAR19:=VAR17*100/VAR14;
VAR20:=VAR18*100/VAR14;
VAR21:=MA(ABS(VAR20-VAR19)/(VAR20+VAR19)*100,6);
VAR22:=MA(VAR21,2);
VAR23:=(VAR21+REF(VAR21,6))/2;
VAR24:=EMA(CLOSE,5);
VAR25:=EMA(CLOSE,8);
VAR26:=EMA(CLOSE,13);
VAR27:=EMA(CLOSE,21);
VAR28:=EMA(CLOSE,34);
多方控盘线:(EMA(CLOSE,7)+EMA(CLOSE,13)+EMA(CLOSE,21)+EMA(CLOSE,34))/4,COLORRED;
空方控盘线:EMA(多方控盘线,10),COLORGREEN;
天魔线:多方控盘线+1.8*STD(CLOSE,27),COLORRED,LINETHICK2;
地妖线:多方控盘线-1.6*STD(CLOSE,27),COLORGREEN,LINETHICK2;
DRAWBAND(多方控盘线,RGB(219,112,147),空方控盘线,RGB(50,150,0));
VAR29:=CROSS(多方控盘线,空方控盘线);
DRAWICON(VAR29,多方控盘线*0.995,7);
DRAWICON(VAR3>80 AND VAR7>80 AND VAR10<REF(VAR10,1),HIGH*1.01,6),COLORGREEN;
DRAWICON(VAR3>80 AND VAR7>80 AND VAR21>60 AND CROSS(VAR22,VAR21),HIGH*1.01,24),COLORGREEN;
DRAWICON(VAR3>80 AND VAR7>80 AND VAR21>60 AND CLOSE<MA(CLOSE,20),LOW*0.99,24),COLORGRAY;
DRAWICON(VAR3<20 AND VAR7<20,LOW*0.99,26),COLORYELLOW;
DRAWICON(CROSS(VAR4,0),LOW,1),COLORRED;
DRAWICON(CROSS(100,VAR4),HIGH,2),COLORGREEN;




来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图