网上低息股票资配平台IFELSE(CLOSE<LL2
图片
TT:=DATE<991230;//修改到期日期
TTT:=DATE>211129;//提前日期发出提示
//以下为原来的趋势线
线:=EMA(EMA(C,10),10),NOTEXT,COLORCYAN,LINETHICK2;
DRAWCOLORLINE(TT&&线>REF(线,1),线,COLORRED,COLORCYAN),LINETHICK3;
//BBB:=线>REF(线,1);
//IF(TT,线,NULL),NOTEXT,COLORCYAN,LINETHICK2;
//IF(TT&&BBB,线,NULL),NOTEXT,COLORRED,LINETHICK2;
//买线:=EMA(C,2),COLORRED,LINETHICK1;
//JXD:=REF(EMA(H,5),1),COLORMAGENTA,DOT;//前N天最高价的均值
//JXK:=REF(EMA(L,5),1),COLORGREEN,DOT; //前N天最低价的均值
//DKX:((REF(EMA(H,10),1))+(REF(EMA(L,10),1)))/2,COLORBLUE;
//HX:=CROSS(买线,JXD);//C>(HHV(HIGH,3));
//LX:=CROSSDOWN(买线,JXK);//C<(LLV(LOW,3));
HH1:=IFELSE(H<REF(H,1)&&REF(H,1)<REF(H,2),REF(H,2),0);//将(H<REF(H,2)中的2改成1图形有变化
LL1:=IFELSE(L>REF(L,1)&&REF(L,1)>REF(L,2),REF(L,2),0);//将(H<REF(H,2)中的2改成1图形有变化
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,HH2,LL2);
G1:=VALUEWHEN(ISLASTBAR,G);
DRAWNUMBER(L>0,G1,G1,0,COLORCYAN);
证券时报•数据宝统计显示,迈瑞医疗今日收盘价为301.19元,下跌0.30%,日换手率为0.23%,成交额为8.40亿元,全天主力资金净流入534.59万元,近5日该股累计下跌2.05%,近5日资金合计净流入1.64亿元。
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);
DRAWLINE(TT&&W1=1,HIGH,W1=1,HT,COLORCYAN);
DRAWLINE(TT&&W1=1,LOW,W1=1,LT,COLORCYAN);
DRAWLINE(TT&&W1=-3,HIGH,W1=-3,HT,COLORRED);
DRAWLINE(TT&&W1=-3,LOW,W1=-3,LT,COLORRED);
STICKLINE(TT&&W1>0,OPEN,CLOSE,COLORCYAN,1);
STICKLINE(TT&&W1<=0,OPEN,CLOSE,COLORRED,1);
STICKLINE(TT&&W2>0&&W1<=0,OPEN,CLOSE,COLORRED,0);
STICKLINE(TT&&W2>0&&W1>0,OPEN,CLOSE,COLORCYAN,0);
DRAWLINE(TT&&W1=1&&REF(W1,1)=1,G,W1=1&&REF(W1,1)=1,REF(G,1),COLORGREEN),DOT;
DRAWLINE(TT&&W1=-3&&REF(W1,1)=-3,G,W1=-3&&REF(W1,1)=-3,REF(G,1),COLORYELLOW),DOT;
DRAWSL(TT&&K2=1,G,0,1,0,COLORGREEN),DOT;
DRAWSL(TT&&K2=-3,G,0,1,0,COLORYELLOW),DOT;
DRAWTEXT(TT&&REF(K2,1)=1&& K2=-3,L,' ←多'),VALIGN0,COLORYELLOW;
//DRAWTEXT(TT&&HX&&K2=-3,LOW-0.1,'↑'),VALIGN0,FONTSIZE40,COLORYELLOW;//多头范围内增加上突信号B
//DRAWICON(TT&&HX&&K2=-3,LOW,'ICO130'),VALIGN0;//多头范围内增加上突图标
//PLAYSOUND(TT&&HX&&K2=-3,'B');//上突报警
//PLAYSOUND(TT&&REF(K2,1)=1&& K2=-3,'B');//多报警
//STICKLINE(TT&&REF(K2,1)=1&& K2=-3,L,L-3,COLORWHITE,0);
DRAWTEXT(TT&&REF(K2,1)=-3&& K2=1,H,' ←空'),VALIGN2,COLORGREEN;
//DRAWTEXT(TT&&LX&&K2=1,HIGH+0.1,'↓'),VALIGN2,FONTSIZE40,COLORRED;//空头范围内增加下突信号S
//DRAWICON(TT&&LX&&K2=1,HIGH,'ICO131'),VALIGN2;//空头范围内增加下突信号图标
//PLAYSOUND(TT&&LX&&K2=1,'B');//下突报警
//下面加入短多短空:
//VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
//DRAWTEXT(CROSS(82,VARR1),HIGH,'短空'),COLORYELLOW;//增加逆势短线信号
//DRAWTEXT(CROSS(VARR1,18),L,'短多')网上低息股票资配平台,VALIGN0,COLORRED;//增加逆势短线信号
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报。