一,先从吊炸天开始
代码:
UPPER:=MA(C,26)+2*STD(c,26),COLORCYAN;
LOWER:=MA(C,26)-2*STD(c,26),COLORCYAN;
MID:=MA(C,26);
b1:UPPER-LOWER;
b2:-(UPPER-LOWER),colorwhite;
空:(c-UPPER),colorgray;
空趋势:sma(空,10,1),coloryellow;
多:(c-LOWER),colorgray;
多趋势:sma(多,10,1),coloryellow;
s1:=sma(c,3,1);
s2:=sma(s1,3,1);
x1:=2*(l-ema(c,13)),colorstick;
x2:=2*(h-ema(c,13)),colorstick;
if(s1>s2,x2,0),color5050fa,stick;
if(s1<s2,x1,0),colorcyan,stick;
diff:=((ema((H+L+c)/3,12)-ema((H+L+c)/3,26))),colorstick;
dea:=ema(diff,9),colorgray;
macd:=2*(diff-dea),colorstick;
macd1:=Ema(macd,15),colorgray;
代码:
UPPER:=MA(C,26)+2*STD(c,26),COLORCYAN;
LOWER:=MA(C,26)-2*STD(c,26),COLORCYAN;
MID:=MA(C,26);
b1:UPPER-LOWER;
b2:-(UPPER-LOWER),colorwhite;
空:(c-UPPER),colorgray;
空趋势:sma(空,10,1),coloryellow;
多:(c-LOWER),colorgray;
多趋势:sma(多,10,1),coloryellow;
s1:=sma(c,3,1);
s2:=sma(s1,3,1);
x1:=2*(l-ema(c,13)),colorstick;
x2:=2*(h-ema(c,13)),colorstick;
if(s1>s2,x2,0),color5050fa,stick;
if(s1<s2,x1,0),colorcyan,stick;
diff:=((ema((H+L+c)/3,12)-ema((H+L+c)/3,26))),colorstick;
dea:=ema(diff,9),colorgray;
macd:=2*(diff-dea),colorstick;
macd1:=Ema(macd,15),colorgray;