通达信中长趋势线主图公式源码

[复制链接]
查看74 | 回复0 | 2021-8-19 18:58:52 | 显示全部楼层 |阅读模式

以下是通达信中长趋势线主图公式源码(无源码的请下载附件导入)

VAR1:=(CLOSE+LOW+HIGH)/3;

VAR2:=EMA(VAR1,6);

VAR3:=EMA(VAR2,5);

生命线:EMA(VAR3,30),COLORRED,LINETHICK3;

VAR4:=5;

VAR5:=6;

VAR6:=6;

VAR7:=8;

VAR8:=IF(DATE<1910612,1,0);

VAR9:=(HIGH+MAX(CLOSE,OPEN))/2;

VAR10:=MA(VAR9,3);

VAR11:=(LOW+MIN(CLOSE,OPEN))/2;

VAR12:=MA(VAR11,3);

超短生命线:MA(VAR9,3),COLORWHITE;

VAR13:=(HIGH+LOW+CLOSE+OPEN)/4;

VAR14:=MA(VAR13,3);

VAR15:=REF((CLOSE+OPEN)/2,1)>REF((CLOSE+OPEN)/2,2) AND REF(MIN(CLOSE,OPEN),1)>REF(MAX(CLOSE,OPEN),2);

VAR16:=(MAX(VAR13,VAR14)-MIN(VAR13,VAR14))/MIN(VAR13,VAR14)*100;

VAR17:=(VAR14-(REF(VAR14,1)-VAR14)-LOW)/LOW*100;

VAR18:=(VAR10+(VAR10-REF(VAR10,1))-LOW)/LOW*100;

VAR19:=VAR14-(REF(VAR14,1)-VAR14);

VAR20:=VAR10+(VAR10-REF(VAR10,1));

VAR21:=IF(VAR15,VAR18,VAR17);

VAR22:=REF(EVERY(CLOSE>=OPEN,4),1) AND REF(EVERY((CLOSE+OPEN)/2>VAR14,4),1) AND (CLOSE+OPEN)/2<VAR14;

VAR23:=NOT(VAR22) AND (VAR14-OPEN)/OPEN*1000>5 AND OPEN<REF(MIN(CLOSE,OPEN),1);

VAR24:=SMA(LOW,4,3);

VAR25:=SMA(HIGH,4,3);

VAR26:=SMA(MIN(CLOSE,OPEN),4,3);

VAR27:=REF(LOW,1)-HHV(MAX(REF(LOW,2),REF(LOW,1))-MIN(REF(LOW,2),REF(LOW,1)),2);

VAR28:=REF((CLOSE+OPEN)/2,1)>REF((CLOSE+OPEN)/2,2);

VAR29:=LOW<=VAR27+VAR27*0.01 AND OPEN>REF(OPEN,2) AND OPEN>=REF(LOW,3) AND COUNT(CLOSE>OPEN,7)>3;

VAR30:=(VAR27-LOW)/LOW*100;

VAR31:=(REF(LOW,1)-VAR27)/VAR27*100;

VAR32:=(VAR24-LOW)/LOW>VAR4/1000;

VAR33:=VAR32;

VAR34:=(REF(HIGH,1)-OPEN)/OPEN*100-(REF(MAX(CLOSE,OPEN),2)-REF(MAX(CLOSE,OPEN),1))/REF(MAX(CLOSE,OPEN),1)*100;

VAR35:=IF(VAR28,VAR30,VAR34);

VAR36:=VAR30+VAR35>2;

VAR37:=IF(VAR28,VAR29,VAR36) AND VAR21>2;

VAR38:=VAR8 AND VAR33 AND VAR37;

STICKLINE(VAR38,VAR24*0.995,VAR24*0.992,4,0),COLORYELLOW;

75733317.gif

75733317.gif
 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则