软件名称:[B]丑小鸭(主图)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:3.00 KB
官方主页:Home Page
更新时间:2011-02-25 03:54:48
软件简介:
丑小鸭(主图)-指标公式源码
MA5:MA(CLOSE,5),COLORRED;
A:=IF(MA5>REF(MA5,1), MA5,REF(MA5,1)),COLORRED;
A1:=IF(MA5<=REF(MA5,1), MA5,REF(MA5,1)),COLORBLUE;
DRAWBAND(MA5,RGB(250,0,0),A,RGB(0,0,255));
DRAWBAND(MA5,RGB(250,0,0),A1,RGB(0,0,255));
MA20:MA(CLOSE,20),COLORRED;
B:=IF(MA20>REF(MA20,1), MA20,REF(MA20,1)),COLORRED;
DRAWBAND(MA20,RGB(250,0,0),B,RGB(250,0,0));
MA60:MA(CLOSE,60),COLORBLUE;
BB:=IF(MA60>REF(MA60,1), MA60,REF(MA60,1)),COLORBLUE;
DRAWBAND(MA60,RGB(0,0,250),BB,RGB(0,0,255));
VAR1:=CLOSE/MA(CLOSE,20)*100<80;
VAR2:=CLOSE/MA(CLOSE,40)*100<78;
VAR3:=CLOSE/MA(CLOSE,60)*100<72;
VAR4:=HIGH>LOW*1.051;
VAR5:=VAR4 AND COUNT(VAR4,5)>1;
蛋:=VAR5 AND (VAR1 OR VAR2 OR VAR3)AND FILTER(VAR5 AND (VAR1 OR VAR2 OR VAR3),10);
DRAWTEXT(蛋,LOW*0.93,'蛋'),COLORFF00FF;
STICKLINE(蛋,L*0.97,LOW*0.93,0,0), COLORYELLOW;
N:=BARSLAST(蛋);
蛋价:=REF(L,N),COLORGREEN;
生:=(C=蛋价 OR CROSS(C,蛋价) OR CROSS(蛋价,L)OR CROSS(蛋价,C));
DRAWTEXT(生,LOW*0.93,'生'),COLORRED;
STICKLINE(生,L*0.97,LOW*0.93,0,0), COLORYELLOW;
丑小鸭:=CROSS(C,REF(HHV(HIGH,N),1))AND REF(HHV(HIGH,N),1)=REF(HHV(HIGH,N),2)AND REF(HHV(HIGH,N),2)=REF(HHV(HIGH,N),3)AND REF(HHV(HIGH,N),3)=REF(HHV(HIGH,N),4);
DRAWTEXT(丑小鸭,H*1.05,'鸭'),COLORYELLOW;
STICKLINE(丑小鸭,H*1.02,H*1.05,0,0), COLORYELLOW;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
[url=http://www.70822.com/soft/sort013/sort05/down-30899.html]丑小鸭(主图)[/url]