以下是通达信趋势波段公式修正源码

通达信趋势波段公式修正源码

Q2:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,88)-LLV(LOW,12))*100;
Q3:=SMA(Q2,2, 1);
Q4:=SMA(Q3,7, 1);
AA:MA((3*Q3-2*Q4),1),COLORYELLOW;
Q5:=AA>1*REF(AA, 1);
A1:EMA(Q3,1) , COLORFFDDCC,LINETHICK2;
A2:EMA(A1,2) , COLORFFBBCC;
A3:EMA(A2,2) , COLORFF99CC;
A4:EMA(A3,2) , COLORFF55CC;
A5:EMA(A4,2) , COLORFF33CC;
A6:EMA(A5,2) , COLORFF11CC,LINETHICK2;
A:EMA(A4,1), COLORFF00CC;
持股:=AA>REF(AA,1);
持币:=AA<REF(AA,1);
{持股:}
IF(持股,AA,DRAWNULL),CIRCLEDOT,COLORRED;
{持币:}
IF(持币,AA,DRAWNULL),CIRCLEDOT,COLORGREEN;

 

参考,这个公式,应该是出自这里:
Q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
AA:3*Q3-2*Q4 ,COLOR1010FF;
Q5:=AA>1*REF(AA, 1);
Q6:=LLVBARS(LOW, 50);
Q7:=SUM(VOL, Q6);
Q8:=HHVBARS(HIGH, 50);
Q9:=SUM(VOL, Q8);
Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;
Q11:=HHV(AA,5);
A1:EMA(Q3, 3) , COLORFFDDCC;
A2:EMA(A1, 3) , COLORFFBBCC;
A3:EMA(A2, 3) , COLORFF99CC;
A4:EMA(A3, 3) , COLORFF55CC;
A5:EMA(A4, 3) , COLORFF33CC;
A6:EMA(A5, 3) , COLORFF11CC;
A:EMA(A4, 3) , COLORFF00CC;
TJ1:=CROSS(AA, A5) AND REF(AA,1)<50,LINETHICK0;
TJ2:=CROSS(A5, AA);
TJ3:=COUNT(TJ2,BARSLAST(TJ1));
DRAWICON(TJ1,REF(AA,1)*1.1,’buy’);
DRAWICON(TJ2 AND TJ3=1,REF(AA,3)*0.9,’SELL’);

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。