通达信MACD优化波段指标公式

2023-12-24 03:00发布

A:=CURRBARSCOUNT;A1:=DAY!=REF(DAY,1);A2:=BARSLAST(A1)+1;A3:=MA(C,A2);A4:=SUM(AMO,A2)/SUM(,A2)/100;A5:=IF(CAPITAL>0,A4,A3);:=IF(A<=CONST(A2),A5,DRAWNULL);分钟有效:=IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,DRAWNULL))));价:=TFILT(CLOSE,CURRBARSCOUNT,00,CURRBARSCOUNT,00);分时判断:=IF(分时价=DRAWNULL,1,IF(分钟有效周期=DRAWNULL,DRAWNULL,1));DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);:=2*(DIFF-DEA);KX:=BARSSINCE(CLOSE);{←首次距金的天数}HHN:=CONST(HHV(DIFF,KX));HLN:=CONST(LLV(DEA,KX));RC1:=CONST((
 解锁全文需 1  财富值,免费注册即送20财富值!