成本为王 成本决定盈亏 通达信主图指标 源码 贴图
成本为王 成本决定盈亏 通达信主图指标 源码 贴图
在五分钟周期幅图显示六十分钟周期K线。通过引用我没有找到更好的办法,只好花点功夫笨鸟先飞,用原始的办法完成幅图K线组合,虽然画线不很漂亮但至少数据准确,能够帮助您在小周期里看清楚大周期的K线走向,借此来判断短线的买卖。估计跟帖还会有需要一分钟周期显示5分钟K线或 5分钟周期显示30分钟K线等等。看看这个帖子的需求量吧,有时间整合一个只需更改参数就可以让您随意获得不同周期K线,使您在操盘时能够更快捷掌控不同周期K线的走向。这是后话。也许在我之前已经就有更加先进的办法了。但这个源码花费我不少时间,还是拿出来送给需要的“笨鸟们”吧。
成本为王 = 因为成本决定你的盈亏!
涨跌周期,双高双低,同色同步,同色异步,异色同步,异色异步,同步同色,同步异色,异步同色,异步异色!罫线天机,时刻牢记
T:=BARSLAST(DAY!=REF(DAY,1));
HH:=HHV(H,12);
LL:=LLV(L,12);
DRAWLINE(T=0 AND O>REFX(C,BARSNEXT(T=11)),O,T=11 AND C<REF(O,T),REF(O,T),0),COLORCYAN;
DRAWLINE(T=0 AND O<REFX(C,BARSNEXT(T=11)),O,T=11 AND C>REF(O,T),REF(O,T),0),COLORRED;
DRAWLINE(T=0 AND O=REFX(C,BARSNEXT(T=11)),O,T=11 AND C=REF(O,T),REF(O,T),0),COLORWHITE;
DRAWLINE(T=0 AND O>REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),T=11 AND C<REF(O,T),C,0),COLORCYAN;
DRAWLINE(T=0 AND O<REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),T=11 AND C>REF(O,T),C,0),COLORRED;
DRAWLINE(T=0 AND O=REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),T=11 AND C=REF(O,T),C,0),COLORWHITE;
STICKLINE(T=0 AND O>REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),O,0,0),COLORCYAN;
STICKLINE(T=0 AND O<REFX(C,BARSNEXT(T=11)),REFX(C,BARSNEXT(T=11)),O,0,0),COLORRED;
STICKLINE(T=11 AND C<REF(O,T),REF(O,T),C,0,0),COLORCYAN;
STICKLINE(T=11 AND C>REF(O,T),REF(O,T),C,0,0),COLORRED;
STICKLINE(T=6 AND REF(O,T)>REFX(C,BARSNEXT(T=11)),REFX(HH,BARSNEXT(T=11)),REFX(LL,BARSNEXT(T=11)),0,0),COLORCYAN;
STICKLINE(T=6 AND REF(O,T)<REFX(C,BARSNEXT(T=11)),REFX(HH,BARSNEXT(T=11)),REFX(LL,BARSNEXT(T=11)),0,0),COLORRED;
STICKLINE(T=6 AND REF(O,T)=REFX(C,BARSNEXT(T=11)),REFX(HH,BARSNEXT(T=11)),REFX(LL,BARSNEXT(T=11)),0,0),COLORWHITE;
STICKLINE(T=6,REF(O,T),REFX(C,BARSNEXT(T=11)),0,0),COLORBLACK;
T1:=BARSLAST(T=12);
DRAWLINE(T=12 AND O>REFX(C,BARSNEXT(T=23)),O,T=23 AND C<REF(O,T1),REF(O,T1),0),COLORCYAN;
DRAWLINE(T=12 AND O<REFX(C,BARSNEXT(T=23)),O,T=23 AND C>REF(O,T1),REF(O,T1),0),COLORRED;
DRAWLINE(T=12 AND O=REFX(C,BARSNEXT(T=23)),O,T=23 AND C=REF(O,T1),REF(O,T1),0),COLORWHITE;
DRAWLINE(T=12 AND O>REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),T=23 AND C<REF(O,T1),C,0),COLORCYAN;
DRAWLINE(T=12 AND O<REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),T=23 AND C>REF(O,T1),C,0),COLORRED;
DRAWLINE(T=12 AND O=REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),T=23 AND C=REF(O,T1),C,0),COLORWHITE;
STICKLINE(T=12 AND O>REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),O,0,0),COLORCYAN;
STICKLINE(T=12 AND O<REFX(C,BARSNEXT(T=23)),REFX(C,BARSNEXT(T=23)),O,0,0),COLORRED;
STICKLINE(T=23 AND C<REF(O,T1),REF(O,T1),C,0,0),COLORCYAN;
STICKLINE(T=23 AND C>REF(O,T1),REF(O,T1),C,0,0),COLORRED;
STICKLINE(T=18 AND REF(O,T1)>REFX(C,BARSNEXT(T=23)),REFX(HH,BARSNEXT(T=23)),REFX(LL,BARSNEXT(T=23)),0,0),COLORCYAN;
STICKLINE(T=18 AND REF(O,T1)<REFX(C,BARSNEXT(T=23)),REFX(HH,BARSNEXT(T=23)),REFX(LL,BARSNEXT(T=23)),0,0),COLORRED;
STICKLINE(T=18 AND REF(O,T1)=REFX(C,BARSNEXT(T=23)),REFX(HH,BARSNEXT(T=23)),REFX(LL,BARSNEXT(T=23)),0,0),COLORWHITE;
STICKLINE(T=18,REF(O,T1),REFX(C,BARSNEXT(T=23)),0,0),COLORBLACK;
T2:=BARSLAST(T=24);
DRAWLINE(T=24 AND O>REFX(C,BARSNEXT(T=35)),O,T=35 AND C<REF(O,T2),REF(O,T2),0),COLORCYAN;
DRAWLINE(T=24 AND O<REFX(C,BARSNEXT(T=35)),O,T=35 AND C>REF(O,T2),REF(O,T2),0),COLORRED;
DRAWLINE(T=24 AND O=REFX(C,BARSNEXT(T=35)),O,T=35 AND C=REF(O,T2),REF(O,T2),0),COLORWHITE;
DRAWLINE(T=24 AND O>REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),T=35 AND C<REF(O,T2),C,0),COLORCYAN;
DRAWLINE(T=24 AND O<REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),T=35 AND C>REF(O,T2),C,0),COLORRED;
DRAWLINE(T=24 AND O=REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),T=35 AND C=REF(O,T2),C,0),COLORWHITE;
STICKLINE(T=24 AND O>REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),O,0,0),COLORCYAN;
STICKLINE(T=24 AND O<REFX(C,BARSNEXT(T=35)),REFX(C,BARSNEXT(T=35)),O,0,0),COLORRED;
STICKLINE(T=35 AND C<REF(O,T2),REF(O,T2),C,0,0),COLORCYAN;
STICKLINE(T=35 AND C>REF(O,T2),REF(O,T2),C,0,0),COLORRED;
STICKLINE(T=30 AND REF(O,T2)>REFX(C,BARSNEXT(T=35)),REFX(HH,BARSNEXT(T=35)),REFX(LL,BARSNEXT(T=35)),0,0),COLORCYAN;
STICKLINE(T=30 AND REF(O,T2)<REFX(C,BARSNEXT(T=35)),REFX(HH,BARSNEXT(T=35)),REFX(LL,BARSNEXT(T=35)),0,0),COLORRED;
STICKLINE(T=30 AND REF(O,T2)=REFX(C,BARSNEXT(T=35)),REFX(HH,BARSNEXT(T=35)),REFX(LL,BARSNEXT(T=35)),0,0),COLORWHITE;
STICKLINE(T=30,REF(O,T2),REFX(C,BARSNEXT(T=35)),0,0),COLORBLACK;
T3:=BARSLAST(T=36);{WWW.GPXIAZAI.COM}
DRAWLINE(T=36 AND O>REFX(C,BARSNEXT(T=47)),O,T=47 AND C<REF(O,T3),REF(O,T3),0),COLORCYAN;
DRAWLINE(T=36 AND O<REFX(C,BARSNEXT(T=47)),O,T=47 AND C>REF(O,T3),REF(O,T3),0),COLORRED;
DRAWLINE(T=36 AND O=REFX(C,BARSNEXT(T=47)),O,T=47 AND C=REF(O,T3),REF(O,T3),0),COLORWHITE;
DRAWLINE(T=36 AND O>REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),T=47 AND C<REF(O,T3),C,0),COLORCYAN;
DRAWLINE(T=36 AND O<REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),T=47 AND C>REF(O,T3),C,0),COLORRED;
DRAWLINE(T=36 AND O=REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),T=47 AND C=REF(O,T3),C,0),COLORWHITE;
STICKLINE(T=36 AND O>REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),O,0,0),COLORCYAN;
STICKLINE(T=36 AND O<REFX(C,BARSNEXT(T=47)),REFX(C,BARSNEXT(T=47)),O,0,0),COLORRED;
STICKLINE(T=47 AND C<REF(O,T3),REF(O,T3),C,0,0),COLORCYAN;
STICKLINE(T=47 AND C>REF(O,T3),REF(O,T3),C,0,0),COLORRED;
STICKLINE(T=42 AND REF(O,T3)>REFX(C,BARSNEXT(T=47)),REFX(HH,BARSNEXT(T=47)),REFX(LL,BARSNEXT(T=47)),0,0),COLORCYAN;
STICKLINE(T=42 AND REF(O,T3)<REFX(C,BARSNEXT(T=47)),REFX(HH,BARSNEXT(T=47)),REFX(LL,BARSNEXT(T=47)),0,0),COLORRED;
STICKLINE(T=42 AND REF(O,T3)=REFX(C,BARSNEXT(T=47)),REFX(HH,BARSNEXT(T=47)),REFX(LL,BARSNEXT(T=47)),0,0),COLORWHITE;
STICKLINE(T=42,REF(O,T3),REFX(C,BARSNEXT(T=47)),0,0),COLORBLACK;
DRAWTEXT_FIX(1,0.588,0.968,1,'请时刻牢记成本为王 =
因为成本决定你的盈亏!'),COLORRED;
DRAWTEXT_FIX(1,0.698,0.0168,1,'涨跌周期,双高双低,
同色同步,同色异步,异色同步,异色异步,同步同色,同步异色,
异步同色,异步异色!罫线天机,时刻牢记。'),COLORYELLOW;
STICKLINE(V>=REF(V,1)*2,O,C,3,0)COLORYELLOW;
STICKLINE(V>=REF(V,1)*2,H,L,0,0)COLORYELLOW;
STICKLINE(C/REF(C,1)>=1.098,O,C,3,0)COLORRED;
STICKLINE(C/REF(C,1)>=1.098,H,L,0,0)COLORRED;
STICKLINE(C/REF(C,1)<=0.901,O,C,3,0)COLORBLUE;
STICKLINE(C/REF(C,1)<=0.901,H,L,0,0)COLORBLUE;