在线检测未来函数

航海家流动资金的源码导不进通达信

来源:Internet,编辑:股旁网,2012-10-29

编写要求:

下面的这个是航海家流动资金的源码 VAR1:=SMA(AMOUNT,10,1)/10000; VAR2:=REF(VAR1,1); VAR3:=SMA(AMOUNT,10,1)/10000; 资金运转: STICKLINE(VAR1>VAR2,VAR1,VAR2,8,0),COLORRED; 资金流失: STICKLINE(VAR1< VAR2,VAR1,VAR2,8,0),COLORGREEN; //起跑线: MA(VAR1,5); //警戒线: MA(VAR1,10),COLORYELLOW; //分界线: MA(VAR1,30),COLORCYAN; //DRAWTEXT(CROSS(警戒线,VAR3),警戒线*1.2,'警'),COLORWHITE; //DRAWTEXT(CROSS(分界线,VAR3),分界线*1.2,'走') 不知道回事老是不能导入,总是提示错误,来个老师帮下忙啊!!!!

股旁网解答:

 VAR1:=SMA(AMOUNT,10,1)/10000;

VAR2:=REF(VAR1,1); 
VAR3:=SMA(AMOUNT,10,1)/10000; 
资金运转: STICKLINE(VAR1>VAR2,VAR1,VAR2,8,0),COLORRED; 
资金流失: STICKLINE(VAR1< VAR2,VAR1,VAR2,8,0),COLORGREEN; 
起跑线: MA(VAR1,5); 
警戒线: MA(VAR1,10),COLORYELLOW; 
分界线: MA(VAR1,30),COLORCYAN; 
DRAWTEXT(CROSS(警戒线,VAR3),警戒线*1.2,'警'),COLORWHITE; 
DRAWTEXT(CROSS(分界线,VAR3),分界线*1.2,'走')
 

相关文章