搜索
查看: 1714|回复: 1

[分享] 五线图

[复制链接]
发表于 2017-8-6 15:23 | 显示全部楼层

五线图

来自:MACD论坛(bbs.macd.cn) 作者:zwp518598 浏览:1714 回复:1

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
本帖最后由 zwp518598 于 2017-8-6 16:19 编辑

五线图(主图)
N:8
-----------------------------------------------------
ma5:ma(close,5),coloryellow;
ma14:EMA(C,14),colorff00ff;
ma25:EMA(C,25),colorff00ff,DASHLINE;
ma55:EMA(C,55) ,COLORRED,DASHLINE;
ma144:EMA(CLOSE,144),colorblue;

四五三:EMA(CLOSE,453),COLOrgray;



RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
DRAWTEXT(ref(v,1)<vol and ref(v,2)<vol and ref(v,3)<vol and vol>EMA(VOL ,55 )*1.25 and vol<EMA(VOL ,55 )*1.9 and vol>EMA(VOL ,20 )  and vol>EMA(VOL ,10 ) and high>ref(hhv(high,3),1) and ref(high,1)<ref(hhv(high,3),2) or
         ref(v,1)<vol and ref(v,2)<vol and ref(v,3)<vol and vol>EMA(VOL ,55 )*1.25 and vol<EMA(VOL ,55 )*1.9 and vol>EMA(VOL ,20 )  and vol>EMA(VOL ,10 ) and high>ref(hhv(high,3),1) and ref(high,1)<ref(hhv(high,3),2) ,low,' 主力'),colorff00ff;
DRAWTEXT( high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,1)<ref(ma(close,5),1)  and ref(high,1)<ref(hhv(high,4),1) and SMA(RSV,3,1)<70   or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,2)<ref(ma(close,5),2)  and ref(high,1)<ref(hhv(high,4),1)  and SMA(RSV,3,1)<70   or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,3)<ref(ma(close,5),3)  and ref(high,1)<ref(hhv(high,4),1) and SMA(RSV,3,1)<70   ,high,'  B'),colorff00ff;

STICKLINE( high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,1)<ref(ma(close,5),1)  and ref(high,1)<ref(hhv(high,4),1) and SMA(RSV,3,1)<70   or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,2)<ref(ma(close,5),2)  and ref(high,1)<ref(hhv(high,4),1)  and SMA(RSV,3,1)<70   or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,3)<ref(ma(close,5),3)  and ref(high,1)<ref(hhv(high,4),1) and SMA(RSV,3,1)<70  ,CLOSE,OPEN,5,500),colorred;

STICKLINE( high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,1)<ref(ma(close,5),1)  and ref(high,1)<ref(hhv(high,4),1) and SMA(RSV,3,1)<70  and vol>EMA(VOL ,10 ) and vol>EMA(VOL ,55 )  or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,2)<ref(ma(close,5),2)  and ref(high,1)<ref(hhv(high,4),1)  and SMA(RSV,3,1)<70  and vol>EMA(VOL ,10 ) and vol>EMA(VOL ,55 )  or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,3)<ref(ma(close,5),3)  and ref(high,1)<ref(hhv(high,4),1) and SMA(RSV,3,1)<70 and vol>EMA(VOL ,10 ) and vol>EMA(VOL ,55 ) ,CLOSE,OPEN,5,500),colorff00ff;
drawtext((ref(low,2)-ref(close,1))/ref(close,1)>0.02 and (ref(low,1)-close)/close>0.02 and (close-ref(close,1))/ref(close,1)>-9.9/100 or (ref(low,1)-close)/close>0.01 and (ref(low,2)-close)/close>0.04 and (ref(low,2)-ref(close,1))/ref(close,1)>0.04 and (close-ref(close,1))/ref(close,1)>-9.9/100  or (ref(low,2)-ref(close,1))/ref(close,1)>0.013 and (ref(low,2)-close)/close>0.04 and (ref(low,1)-close)/close>0.01 and (close-ref(close,1))/ref(close,1)>-9.9/100,low,'接筹'),colorff00ff;
DRAWTEXT( high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,1)<ref(ma(close,5),1)  and ref(high,1)<ref(hhv(high,4),1) and close>ref(hhv(high,3),1) and vol>ref(hhv(vol,14),1)    or  ref(close,2)<ref(ma(close,5),2)  and ref(high,1)<ref(hhv(high,4),1)  and close>ref(hhv(high,3),1) and vol>ref(hhv(vol,14),1) and  high>ref(high,1) and high>ref(high,2) and high>ref(high,3)         or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,3)<ref(ma(close,5),3)  and ref(high,1)<ref(hhv(high,4),1)    and close>ref(hhv(high,3),1)  and vol>ref(hhv(vol,14),1)  
or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,1)<ref(ma(close,5),1)  and ref(high,1)<ref(hhv(high,4),1) and close>ref(hhv(high,3),1)  and hhv(high,14)<hhv(high,34)       or  ref(close,2)<ref(ma(close,5),2)  and ref(high,1)<ref(hhv(high,4),1)  and close>ref(hhv(high,3),1) and hhv(high,14)<hhv(high,34) and  high>ref(high,1) and high>ref(high,2) and high>ref(high,3)      or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,3)<ref(ma(close,5),3)  and ref(high,1)<ref(hhv(high,4),1)    and close>ref(hhv(high,3),1)   and hhv(high,14)<hhv(high,34)
or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,1)<ref(ma(close,5),1)  and ref(high,1)<ref(hhv(high,4),1) and close>ref(hhv(close,3),1)  and hhv(high,14)<hhv(high,34)   or  ref(close,2)<ref(ma(close,5),2)  and ref(high,1)<ref(hhv(high,4),1)  and close>ref(hhv(close,3),1)  and hhv(high,14)<hhv(high,34) and  high>ref(high,1) and high>ref(high,2) and high>ref(high,3)    or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,3)<ref(ma(close,5),3)  and ref(high,1)<ref(hhv(high,4),1)    and close>ref(hhv(close,3),1)  and hhv(high,14)<hhv(high,34)  ,high
,'  进场'),coloryellow;
DRAWTEXT( high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,1)<ref(ma(close,5),1)  and ref(high,1)<ref(hhv(high,4),1) and close>ref(hhv(close,3),1)  and hhv(high,14)<hhv(high,34) and close<ref(hhv(high,3),1)   or  ref(close,2)<ref(ma(close,5),2)  and ref(high,1)<ref(hhv(high,4),1)  and close>ref(hhv(close,3),1)  and hhv(high,14)<hhv(high,34) and  high>ref(high,1) and high>ref(high,2) and high>ref(high,3)  and close<ref(hhv(high,3),1)   or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,3)<ref(ma(close,5),3)  and ref(high,1)<ref(hhv(high,4),1)    and close>ref(hhv(close,3),1)  and hhv(high,14)<hhv(high,34) and close<ref(hhv(high,3),1)  ,low
,'  小心'),coloryellow;
DRAWTEXT( high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,1)<ref(ma(close,5),1)  and ref(high,1)<ref(hhv(high,4),1) and close>ref(hhv(high,3),1) and vol<ref(hhv(vol,14),1) and hhv(high,14)>ref(hhv(high,34),14)  or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,2)<ref(ma(close,5),2)  and ref(high,1)<ref(hhv(high,4),1)   and close>ref(hhv(high,3),1) and vol<ref(hhv(vol,14),1)    and hhv(high,14)>ref(hhv(high,34),14) or high>ref(high,1) and high>ref(high,2) and high>ref(high,3)     and ref(close,3)<ref(ma(close,5),3)  and ref(high,1)<ref(hhv(high,4),1)  and close>ref(hhv(high,3),1)  and vol<ref(hhv(vol,14),1)  and hhv(high,14)>ref(hhv(high,34),14)   ,high
,'  反抽'),coloryellow;
DRAWTEXT( low<ref(low,1) and low<ref(low,2) and low<ref(low,3)     and ref(close,1)>ref(ma(close,5),1)  and ref(low,1)>ref(llv(low,4),1) and close< ref(llv(low,3),1)   or low<ref(low,1) and low<ref(low,2) and low<ref(low,3)     and ref(close,2)>ref(ma(close,5),2)  and ref(low,1)>ref(llv(low,4),1)  and close< ref(llv(low,3),1)   or low<ref(low,1) and low<ref(low,2) and low<ref(low,3)     and ref(close,3)>ref(ma(close,5),3)  and ref(low,1)>ref(llv(low,4),1) and close< ref(llv(low,3),1),low ,'  空仓'),coloryellow;
DRAWTEXT( low<ref(low,1) and low<ref(low,2) and low<ref(low,3)  and    ref(close,1)>ref(ma(close,5),1)  and ref(low,1)>ref(llv(low,4),1) and close< ref(llv(close,3),1)  or low<ref(low,1) and low<ref(low,2) and low<ref(low,3)     and ref(close,2)>ref(ma(close,5),2)  and ref(low,1)>ref(llv(low,4),1)  and close< ref(llv(close,3),1)     or low<ref(low,1) and low<ref(low,2) and low<ref(low,3)     and ref(close,3)>ref(ma(close,5),3)  and ref(low,1)>ref(llv(low,4),1)  and close< ref(llv(close,3),1)     ,high
,'  注意'),coloryellow;
DRAWTEXT(barslast(low=llv(low,16))=11  or llvBARS(low,16)=11 ,high,'12'),coloryellow ;
DRAWTEXT(barslast(low=llv(low,16))=12  or llvBARS(low,16)=12 ,high,'13'),coloryellow ;
DRAWTEXT(barslast(low=llv(low,30))=19  or llvBARS(low,30)=19 ,high,'20'),coloryellow ;
DRAWTEXT(barslast(high=HHV(HIGH,30))=11  or HHVBARS(HIGH,30)=11 or barslast(high=HHV(HIGH,16))=11  or HHVBARS(HIGH,16)=11,low,'12'),colorff00ff;
DRAWTEXT(barslast(high=HHV(HIGH,30))=12  or HHVBARS(HIGH,30)=12 or barslast(high=HHV(HIGH,16))=12  or HHVBARS(HIGH,16)=12,low,'13'),colorff00ff;
DRAWTEXT(barslast(high=HHV(HIGH,30))=15  or HHVBARS(HIGH,30)=15 or barslast(high=HHV(HIGH,130))=15  or HHVBARS(HIGH,30)=15,low,'16'),colorff00ff;
DRAWTEXT(barslast(high=HHV(HIGH,30))=19  or HHVBARS(HIGH,30)=19 or barslast(high=HHV(HIGH,30))=19  or HHVBARS(HIGH,30)=19,low,' 20'),colorff00ff;

DRAWTEXT( BARSLAST(LOW=LLV(LOW,12))=7 OR LLVBARS(LOW,12)=7  ,HIGH,'8'),coloryellow ;DRAWTEXT( BARSLAST(HIGH=HHV(HIGH,13))=7  OR HHVBARS(HIGH,1)=7,LOW,'8'),colorff00ff;

DRAWTEXT( BARSLAST(HIGH=HHV(HIGH,13))=6  OR HHVBARS(HIGH,1)=6,LOW,'7'),colorff00ff;
DRAWTEXT( BARSLAST(LOW=LLV(LOW,12))=4 OR LLVBARS(LOW,12)=4  ,HIGH,'5'),coloryellow ;DRAWTEXT( BARSLAST(HIGH=HHV(HIGH,13))=4  OR HHVBARS(HIGH,1)=4,LOW,'5'),colorff00ff;
{向下跳空缺口}
I1:=0;
flag1:=0;
while I1<BARSLAST(DISPSTATUS=1)-BARSLAST(DISPSTATUS=2)
DO  
        IF REF(H,I1)<REF(L,I1+1) AND REF(L,I1+1)>HHV(H,I1+1)
           THEN   BEGIN     FLAG1:=1;
                            S1:=I1;
                            I1:=BARSLAST(DISPSTATUS=1);                        
                  END
        ELSE  I1:=I1+1;            
   STICKLINE(FLAG1,REF(L,S1+1),HHV(H,S1+1),(s1+1)*20,0),ColorC0C0C0,ALIGN1,LAYER7;
  DRAWTEXT(flag1,REF(L,s1+1),NUMTOSTRN(ref(l,s1+1),2)+'-'+NUMTOSTRN(hhV(h,S1+1),2)),ALIGN2,COLORgreen;

{向上跳空缺口}
I:=0;
flag:=0;
while I<BARSLAST(DISPSTATUS=1)-BARSLAST(DISPSTATUS=2)
DO  
        IF REF(L,I)>REF(H,I+1) AND REF(H,I+1)<LLV(LOW,I+1)
           THEN   BEGIN     FLAG:=1;
                            S:=I;
                            I:=BARSLAST(DISPSTATUS=1);                        
                  END
        ELSE  I:=I+1;            
   STICKLINE(FLAG,REF(h,S+1),LLV(LOW,S+1),20*(s+1),500),ColorC0C0C0,ALIGN1,LAYER7;
DRAWTEXT(FLAG,REF(H,s+1),NUMTOSTRN(ref(h,s+1),2)+'-'+NUMTOSTRN(LLV(LOW,S+1),2)),ALIGN2,COLORred;

金币:
奖励:
热心:
注册时间:
2005-3-7

回复 使用道具 举报

签到天数: 12 天

发表于 2018-7-8 03:14 | 显示全部楼层
好复杂
金币:
奖励:
热心:
注册时间:
2018-7-7

回复 使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

本站声明:1、本站所有广告均与MACD无关;2、MACD仅提供交流平台,网友发布信息非MACD观点与意思表达,因网友发布的信息造成任何后果,均与MACD无关。
MACD俱乐部(1997-2019)官方域名:macd.cn   MACD网校(2006-2019)官方域名:macdwx.com
值班热线[9:00—17:30]:18292674919   24小时网站应急电话:18292674919
找回密码、投诉QQ:89918815 友情链接QQ:95008905 广告商务联系QQ:17017506 电话:18292674919
增值电信业务经营许可证: 陕ICP19026207号—2  陕ICP备20004035号

举报|意见反馈|Archiver|手机版|小黑屋|MACD俱乐部 ( 陕ICP备20004035号 )

GMT+8, 2024-5-3 20:04 , Processed in 0.060329 second(s), 10 queries , Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表