以下是大智慧主图趋势改的
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,21);
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,14);
VAR3:=REF(VAR2,1);
C4:=CROSS(VAR2,VAR3);
C5:=CROSS(VAR3,VAR2);
{DRAWTEXT(C4,LOW-0.1,\’买\’),COLORRED;
DRAWTEXT(C5,HIGH+0.1,\’卖\’),COLORGREEN;}
A1AA:=9;
A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1),\’小心变盘\’),COLORYELLOW;
RSI:=\”RSI.RSI1\”;
DRAWTEXT(CROSS(83,RSI),H*1,\’ 注意\’),COLORYELLOW;
MA1:EMA(CLOSE,5);
MA2:=EMA(CLOSE,21);
PARTLINE(MA1,MA1>MA2,RGB(255,0,0),MA1<MA2,RGB(0,0,255)),LINETHICK1;
DRAWICON(CROSS(MA1,MA2),MA1,7);
DRAWICON(CROSS(MA2,MA1),MA1,8);
{DRAWNUMBER(ISLASTBAR AND V>0,MA2,V),COLORMAGENTA;};
{大型股票公式,股票编程,股票技术教程投稿平台-你就是股神,网址:694.cn 备注:如果正文内容没有显示完全的,说明在附件中,请点击‘立即下载’下载该附件!}