源码如下:
三龙摆尾---按李雨青老师理念编的公式!
{ma60133}{主图}
ma20:ema(c,20);
ma60:ema(c,60);
ma133:ema(c,133);
{用法:
1.ma60>ma133,ma20>ma60,c>ma20;
2.macd金叉 or diff>dea;diff上涨,dea上涨;
3.ma133托ma20,ma60上涨,多头排列;
4.放量,收阳}
{MACDMA60133}{副图}
DIFF: EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;
DEA: EMA(DIFF,9),coloryellow;
MACD:= 2*(DIFF-DEA), COLORSTICK;
ma20:=ema(c,20);
ma60:=ema(c,60);
ma133:=ema(c,133);
vv1:=ma20>ref(ma20,1) and ma60>ref(ma60,1) and ma133>ref(ma133,1) and
ma20>ma60 and ma60>ma133 and c>ma20;
vv2:=(cross(diff,dea) or diff>dea) and diff>ref(diff,1) and dea>ref(dea,1);
xg1:stickline(vv1 and vv2,dea,diff,3,0),colorred;
{用法:
1.ma60>ma133,ma20>ma60,c>ma20;
2.ma133托ma20,ma60上涨,多头排列;
3.放量,收阳
4.macd(12,26,9),macd金叉 or diff>dea,diff向上,dea向上}
|
|
|
|
|