马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
但愿能帮助喜欢应用公式的战友。我的理解就是:红灯持币,黄灯观望,绿灯持股。
{个股}
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
个股绿:C>A,COLORGREEN,LINETHICK0;
个股红:C<B,COLORRED,LINETHICK0;
个股黄:A>=C AND C>=B,COLORYELLOW,LINETHICK0;
STICKLINE(C>A,0,1,4,0),COLORGREEN,LINETHICK2;
STICKLINE(C<B,0,1,4,0),COLORRED,LINETHICK2;
STICKLINE(A>=C AND C>=B,0,1,4,0),COLORYELLOW,LINETHICK2;
{大盘}
CC:="999999$CLOSE";
AA:=MAX(MA(CC,60),MA(CC,120));
BB:=MIN(MA(CC,60),MA(CC,120));
大盘绿:CC>AA,COLORGREEN,NODRAW;
大盘红:CC<BB,COLORRED,NODRAW;
大盘黄:AA>=CC AND CC>=BB,COLORYELLOW,NODRAW;
STICKLINE(CC>AA,-2,-1,4,0),COLORGREEN,LINETHICK2;
STICKLINE(CC<BB,-2,-1,4,0),COLORRED,LINETHICK2;
STICKLINE(AA>=CC AND CC>=BB,-2,-1,4,0),COLORYELLOW,LINETHICK2;
用法:
当日收盘价大于MA(C,60)与MA(C,120)中的最大量为绿灯,当日收盘价小于MA(C,60)与MA(C,120)中的最小量为红灯,当日收盘价介于MA(C,60)与MA(C,120)之间为黄灯;
|