通达信天机妙算源码附图

动力线在20以下向上突破能量线后第二天低价买入(最好低于其最低价);

两线基本位于10以下时,逢低买入;

同时配合投机指标,

VAR01:=1080705;

VAR02:=1080805;

VAR03:=IF(DATE<VAR01,IF(CLOSE<10000,1,0),0);

VAR04:=IF(DATE>VAR02,1,VAR03);

VAR1:=REF(CLOSE,1)*VAR04;

动力线: SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100,COLORYELLOW;

能量: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,3,1)-2*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,3,1),COLORRED;