四均线主图:
操盘线:=ema(((2*c+h+l)/4),5);
partline(操盘线>ref(操盘线,1),操盘线),color0000ff,linethick2;//操盘线大于上周期操盘线时,画成黄色;
partline(操盘线<ref(操盘线,1),操盘线),colorgreen,linethick2;//操盘线大于上周期操盘线时,画成绿色;
ma24:ma(c,24);
ma72:ma(c,72);
ma200:ma(c,200);
drawicon(cross(5,72),l,1);
箱顶:ma(ref(hhv(c,89),1),2),color80ffff,linethick2;
箱底:ma(ref(llv(c,30),1),2),color00ff00,linethick2;
{k线}
stickline(close>open,open,low,0.5,0 ),color0000ff;
stickline(close>open,close,high,0.5 ,0 ),color0000ff;
stickline(open>=close,close,low,0.5 ,0 ),color00ff00;
stickline(open>=close,open,high,0.5 ,0 ),color00ff00;
stickline(open>=close ,close ,open,7,0 ),colorff7700;
stickline(open>=close ,close ,open,6,0 ),colorff9900;
stickline(open>=close ,close ,open,5,0 ),colorffbb00;
stickline(open>=close ,close ,open,4,0 ),colorffcc00;
stickline(open>=close ,close ,open,3,0 ),colorffdd00;
stickline(open>=close ,close ,open,2,0 ),colorffee00;
stickline(open>=close ,close ,open,1,0 ),colorffff00;
stickline(close>open,close,open,7,0) ,color000055;
stickline(close>open,close,open,6,0) ,color000066;
stickline(close>open,close,open,5,0) ,color000077;
stickline(close>open,close,open,4,0) ,color000099;
stickline(close>open,close,open,3,0) ,color0000bb;
stickline(close>open,close,open,2,0) ,color0000dd;
stickline(close>open,close,open,1,0) ,color0000ff;
{买卖点}
b:=zig(3,10);
g:=ma(b,2);
drawtext(cross(g,b),h*1.05,'卖' ),color00ff00;
drawtext(cross(b,g),l*0.95,'★'),colorred;
{b点买入}
var2:=(100 - ((90 * (hhv(high,21) - close)) / (hhv(high,21) - llv(low,21))));
var3:=(100 - ma(((100 * (hhv(high,6) - close)) / (hhv(high,6) - llv(low,6))),34));
drawicon(cross(var2,ma(var3,6)),(low * 0.998),8);
drawtext(cross(var2,ma(var3,6)),(low * 0.984),'b '),color00ffff;
{盘面提示}
drawtextex(c,0,20,20,'当前盘面提示:'),color4080ff,linethick1;
drawtextex(c,0,115,20,stklabel+' '+stkname),linethick1,color0000ff;
流通盘:=finance(7)/1000000*100;
drawtextex(c,0,245,20,'流通盘大小:'+numtostr(流通盘,2)+'亿'),linethick1,colorff00ff;
换手:=vol/capital*100;
当日换手率:=sum(换手,1);
drawtextex(c,0,20,40,'当日换手率: '+numtostr(当日换手率,2)+'%'),color00ffff,linethick1;
五日换手率:=sum(换手,5);
drawtextex(c,0,155,40,'5日换手率: '+numtostr(五日换手率,2)+'%'),color00ffff,linethick1;
十日换手率:=sum(vol,10)*100/capital;
drawtextex(c,0,275,40,'10日换手率: '+numtostr(十日换手率,2)+'%'),color00ffff,linethick1;
drawtextex(c,0,20,2,'■所属板块:'+blkname),color00ff00;
drawtextex(c,0,20,2,'■所属板块:'+blkname),color00ff00;
drawtextex(c,1,550,920,'成交金额:'+numtostr(dynainfo(10)/10000,3)+'万'),colorred;
当日成交总量:=dynainfo(8);
成交总金额:=dynainfo(10)/10000;
主动卖盘:=dynainfo(22);
主动买盘:=dynainfo(23);
drawtextex(c,1,20,155,'日成交总量:'+numtostr(当日成交总量,0)+'手'),colorff00ff;
drawtextex(c,1,20,210,'日主动买入量:'+numtostr(主动买盘,0)+'手'),color0000ff;
drawtextex(c,1,20,260,'日主动卖出量:'+numtostr(主动卖盘,0)+'手'),color00ffff;
drawtextex(c,1,20,305,'日净:'+numtostr(主动买盘-主动卖盘,0)+'手'),colorffff00;
买:=dynainfo(23)*c/100;
卖:=dynainfo(22)*c/100;
总:=买+卖;
净:=买-卖;
实际差:=总-成交总金额;
drawtextex(c,1,200,155,'买:'+numtostr(买,3)+'万'),color0000ff;
drawtextex(c,1,200,210,'卖:'+numtostr(卖,3)+'万'),color00ffff;
drawtextex(c,1,200,260,'总:'+numtostr(总,3)+'万'),colorff00ff;
drawtextex(c,1,200,305,'净:'+numtostr(净,3)+'万'),colorffff00;
drawtextex(c,1,750,920,'实际差:'+numtostr(实际差,3)+'万'),colorffff00;
股道卖出价预测:=(close*2.5/100+close);
股道买入价预测:=close-close*2.5/100;
explain(close>0,'筹码解盘:') colorwhite;
explainex(cost(50),'市场平均成本:',cost(50),2,0),coloryellow;
explainex(cost(4),'主力平均成本:',cost(4),2,0),colorred;
explainex(cost(30),'控盘平均成本:',cost(30),2,0),colorred;
explainex(cost(75),'拉升平均成本:',cost(75),2,0),coloryellow;
explainex(cost(95),'顶部平均成本:',cost(95),2,0),coloryellow;
explainex(cost(0.05),'底部平均成本:',cost(0.05),2,0),coloryellow;
explainex(股道卖出价预测,'股道卖出价预测:',股道卖出价预测,2,0),color0099ff;
explainex(股道买入价预测,'股道买入价预测:',股道买入价预测,2,0),color0099ff;
explainex(1,'获利盘比例=',winner(close)*100,2,0),colorred;
explainex(1,'套牢盘比例=',100-winner(close)*100,2,1),colorcyan;
{解盘模块}
explain(ref(open,1)<>ref(close,1) and ref(close,2)/ref(open,2) > 1.03 and ref(open,1) > ref(close,2) and abs(ref(open,1)-ref(close,1))/ref(close,1)<0.02 and close/open<0.97 and close<ref(close,2),'\n* 黄昏之星 -空方势盛 反转信号 跳空成弃婴'),colorwhite;
explainicon(ref(open,1)<>ref(close,1) and ref(close,2)/ref(open,2) > 1.03 and ref(open,1) > ref(close,2) and abs(ref(open,1)-ref(close,1))/ref(close,1)<0.02 and close/open<0.97 and close<ref(close,2),'30'),align0;
explain(ref(open,1)<>ref(close,1) and ref(close,2)/ref(open,2) < 0.95 and ref(open,1) < ref(close,2) and abs(ref(open,1)-ref(close,1))/ref(close,1)<0.03 and close/open>1.05 and close>ref(close,2),'\n* 晨星 -多方势盛 变盘信号'),colorwhite;
explainicon(ref(open,1)<>ref(close,1) and ref(close,2)/ref(open,2) < 0.95 and ref(open,1) < ref(close,2) and abs(ref(open,1)-ref(close,1))/ref(close,1)<0.03 and close/open>1.05 and close>ref(close,2),'13'),align0;
explain(min(open,close)=low and high-low > 3*(max(open,close)-low) and close < ma(close,5),'\n* 倒转槌头 -高位抛压 低位多空争执'),colorwhite;
explainicon(min(open,close)=low and high-low > 3*(max(open,close)-low) and close < ma(close,5),'19'),align0;
explain(high = max(open,close) and high-low > 3*(high-min(open,close)) and close < ma(close,5),'\n* 槌头 -下影线有多头意义 在下降趋势之后看涨 注意反弹卖压'),colorwhite;
explainicon(high = max(open,close) and high-low > 3*(high-min(open,close)) and close < ma(close,5),'\n* 31'),align0;
explain(high = max(open,close) and high-low > 3*(high-min(open,close)) and close > ma(close,5),'\n* 吊颈线 -高档看跌'),colorwhite;
explainicon(high = max(open,close) and high-low > 3*(high-min(open,close)) and close > ma(close,5),'12'),align0;
explain(ref(close,1)/ref(open,1)<0.97 and close/open>1.03 and open<ref(close,1) and close>ref(close,1),'\n* 曙光 -与乌云盖顶相反 行情将演化为v型反转或止跌横盘趋势'),colorwhite;
explainicon(ref(close,1)/ref(open,1)<0.97 and close/open>1.03 and open<ref(close,1) and close>ref(close,1),'曙光'),align0;
explain((ref(close,1)/ref(open,1)>1.03 and close/open<0.96 and close<ref(open,1) and open>ref(close,1)) or (ref(close,1)/ref(open,1)<0.97 and close/open>1.04 and close>ref(open,1) and open<ref(close,1)),'\n* 穿头破脚 -若第一根k为阴(阳) 表强劲上涨(下跌)力量'),colorwhite;
explainicon((ref(close,1)/ref(open,1)>1.03 and close/open<0.96 and close<ref(open,1) and open>ref(close,1)) or (ref(close,1)/ref(open,1)<0.97 and close/open>1.04 and close>ref(open,1) and open<ref(close,1)),'18'),align0;
explain(abs(ref(close,1)-ref(open,1))/ref(close,1) > 0.04 and abs(close-open)/close<0.005 and max(close,open) < max(ref(close,1),ref(open,1)) and min(close,open) > min(ref(close,1),ref(open,1)),'\n* 身怀六甲 -阴(阳)怀阳(阴)怪异的走势显示该股行情可能转向 若量由大转缩更明'),colorwhite;
explainicon(abs(ref(close,1)-ref(open,1))/ref(close,1) > 0.04 and abs(close-open)/close<0.005 and max(close,open) < max(ref(close,1),ref(open,1)) and min(close,open) > min(ref(close,1),ref(open,1)),'16'),align0;
explain(abs(ref(close,1)-ref(open,1))/ref(close,1) > 0.04 and close=open and close < max(ref(close,1),ref(open,1)) and close > min(ref(close,1),ref(open,1)),'\n* 十字胎 -似身怀六甲 转向可能性更大 量缩观望为宜'),colorwhite;
explainicon(abs(ref(close,1)-ref(open,1))/ref(close,1) > 0.04 and close=open and close < max(ref(close,1),ref(open,1)) and close > min(ref(close,1),ref(open,1)),'2'),align0;
explain(abs(high-ref(high,1))/high<0.001,'\n* 平顶 -该高点有一定阻力'),colorwhite;
explain(abs(low-ref(low,1))/low<0.001 and abs(ref(low,1)-ref(low,2))/ref(low,1)<=0.001,'\n* 平底 -该低点有一定支撑'),colorwhite;
explain(close/open>1.05 and high/low < close/open+0.018,'\n* 大阳烛 -上升行情中意味行情剧烈向上攀升 下跌行情中意味行情剧烈向上反弹'),colorwhite;
explain(open/close > 1.05 and high/low < open/close+0.018,'\n* 大阴烛 -今日空方有绝对优势'),colorwhite;
explain((ref(close,1)<ref(open,1) and close>open and abs(close-ref(close,1))/close<0.002) or (ref(close,1)>ref(open,1) and close<open and abs(close-ref(close,1))/close<0.002),'\n* 友好反攻 -阴(阳)线结合极线 多方跳低(高)后反弹 有企稳迹象'),colorwhite;
explainicon((ref(close,1)<ref(open,1) and close>open and abs(close-ref(close,1))/close<0.002) or (ref(close,1)>ref(open,1) and close<open and abs(close-ref(close,1))/close<0.002),'10'),align0;
explain(high<ref(low,1) or low>ref(high,1),'\n* 跳空缺口 -当日未补 有与跳空同向进行欲望强烈 三日为回补观察期'),colorwhite;
explain(ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and close>open and ref(close,1)>ref(close,2) and close>ref(close,1),'\n* 三白兵 -多方气盛 在底部见底反弹可能'),colorwhite;
explainicon(ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and close>open and ref(close,1)>ref(close,2) and close>ref(close,1),'3'),align0;
explain(close=open,'\n** kc k线实习帖 **\n\nk线不是万能量能分析亦不可缺\n'),colorred,align0;
explain(ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and close<open and ref(close,1)<ref(close,2) and close<ref(close,1),'\n* 三只乌鸦 -强烈转空趋势 三黑k价越深量越大越易下跌'),colorwhite;
explainicon(ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and close<open and ref(close,1)<ref(close,2) and close<ref(close,1),'5'),align0;
explain(ref(close,1)<ref(open,1) and close<open and close/open<0.98,'\n* 双飞乌鸦 -多头力竭 行情走软'),colorwhite;
explainicon(ref(close,1)<ref(open,1) and close<open and close/open<0.98,'双飞乌鸦'),align0;
explain(ref(close,4)/ref(open,4)>1.03 and ref(close,3)<ref(open,3) and ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open>1.03 and close>ref(close,4),'\n* 上升三部曲 -空方卖压被吸纳 趋势易顺势走涨'),colorwhite;
explainicon(ref(close,4)/ref(open,4)>1.03 and ref(close,3)<ref(open,3) and ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open>1.03 and close>ref(close,4),'7'),align0;
explain(ref(close,4)/ref(open,4)<0.97 and ref(close,3)>ref(open,3) and ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open<0.97 and close<ref(close,4),'\n* 下跌三部曲 -多方弱势不堪一击 趋势易顺势走跌'),colorwhite;
explainicon(ref(close,4)/ref(open,4)<0.97 and ref(close,3)>ref(open,3) and ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open<0.97 and close<ref(close,4),'6'),align0;
explain(close=open and high<>close and low<>close and high <>close,'\n* 十字星 -警告信号 原趋势停顿或反转 依上下影线长度判后市'),colorwhite;
explain((min(close,open)-low)/(high-low)>0.667,'\n* 长下影 -下档支撑强或空方试探进攻'),colorwhite;
explain((high-max(close,open))/(high-low)>0.667,'\n* 长上影 -上档阻力大或多方试探进攻'),colorwhite;
explain(open=ref(open,1) and (close-open)*(ref(close,1)-ref(open,1))<0,'\n* 分离 -两日开盘相同 一阴一阳 变盘前彻底整理'),colorwhite;
explainicon(open=ref(open,1) and (close-open)*(ref(close,1)-ref(open,1))<0,'9'),align0;
explain(high=close and high<>low,'\n* 光头阳线 -今日尾盘多方气盛 可能延续到明天'),colorwhite;
explain(low=close and high<>low,'\n* 赤脚阴线 -尾盘空方胜 注意延续次日'),colorwhite;
explain(ref(close,2)>ref(open,2) and (ref(close,2)-ref(open,2))/ref(open,2)>=2/100and ref(open,1)>=ref(close,1) and (ref(open,1)-ref(close,1))/ref(close,1)<=2/100 and ref(open,1)<=ref(close,2) and ref(close,1)>=ref(open,2) and c>=open and (close-open)/open>=2/100 and close>=ref(open,1) and open<=ref(close,1) and (max(close,ref(c,2))-min(close,ref(close,2)))/min(close,ref(close,2))<=1/100,'\n* 二阳夹一阴-必须从后续的走势来研判'),colorwhite;
explainicon(ref(close,2)>ref(open,2) and (ref(close,2)-ref(open,2))/ref(open,2)>=2/100and ref(open,1)>=ref(close,1) and (ref(open,1)-ref(close,1))/ref(close,1)<=2/100 and ref(open,1)<=ref(close,2) and ref(close,1)>=ref(open,2) and c>=open and (close-open)/open>=2/100 and close>=ref(open,1) and open<=ref(close,1) and (max(close,ref(c,2))-min(close,ref(close,2)))/min(close,ref(close,2))<=1/100,'1'),align0;
explain(close=open andhigh<>close and low<>close and high/low > 1.03,'\n* 长十字 -多空激争 前途未明'),colorwhite;
explain(close=open and close=low and close<>high,'\n* 垂死十字 -在顶部时重要 表强力多头开始疲软'),colorwhite;
explain(ref(close,2)/ref(open,2) < 0.95 and ref(open,1) < ref(close,2) and ref(open,1)=ref(close,1)and close/open>1.05 and close>ref(close,2),'\n* 早晨十字 -同晨星 从看空平衡到看涨 转强 左右跳空曰弃婴'),colorwhite;
explainicon(ref(close,2)/ref(open,2) < 0.95 and ref(open,1) < ref(close,2) and ref(open,1)=ref(close,1)and close/open>1.05 and close>ref(close,2),'23'),align0;
explain(ref(close,2)/ref(open,2) > 1.05 and ref(open,1) > ref(close,2) and ref(open,1)=ref(close,1)and close/open<0.95 and close<ref(close,2),'\n* 黄昏十字 -同夜星 从看多平衡到看空 转弱 左右跳空曰弃婴'),colorwhite;
explainicon(ref(close,2)/ref(open,2) > 1.05 and ref(open,1) > ref(close,2) and ref(open,1)=ref(close,1)and close/open<0.95 and close<ref(close,2),'黄昏十字'),align0;
explain(close<>open and min(open,close)=low and high-low > 3*(max(open,close)-low) and close > ma(close,5),'\n* 射击之星 -如伴大量 上遇阻力 有短期见顶可能 转疲'),colorwhite;
explainicon(close<>open and min(open,close)=low and high-low > 3*(max(open,close)-low) and close > ma(close,5),'20'),align0;
explain((ref(c,1)-ref(o,1)>0 and c-o<0 and c<ref(o,1) and o>ref(c,1)),'\n* 阴线吞噬 -黑包红 向空反转'),colorwhite;
explainicon((ref(c,1)-ref(o,1)>0 and c-o<0 and c<ref(o,1) and o>ref(c,1)),'15'),align0;
explain((ref(c,1)-ref(o,1)>0 and (abs(ref(c,1)-ref(o,1)))/(abs(ref(c,2)-ref(o,2)))>2.5 and c-o<0 and c>ref(o,1) and c<(ref(close,1)+ref(open,1))/2 and o>ref(c,1)),'\n* 乌云罩顶 -上涨遇重大阻力 空头聚力'),colorwhite;
explainicon((ref(c,1)-ref(o,1)>0 and (abs(ref(c,1)-ref(o,1)))/(abs(ref(c,2)-ref(o,2)))>2.5 and c-o<0 and c>ref(o,1) and c<(ref(close,1)+ref(open,1))/2 and o>ref(c,1)),'21'),align0;
{explain(backset(ref(c,2)-ref(o,2)>0 and ref(c,1)-ref(o,2)>0 and ref(c,1)-ref(o,1)<0 and c-o>0 and ref(c,1)<ref(c,2) and ref(o,1)>ref(c,2) and o<ref(c,1) and c>ref(o,1),'\n* 包容线 翻空');}
explain((ref(c,2)-ref(o,2)>0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.4 and abs(c-o)>3 and abs(ref(c,2)-ref(o,2))>(abs(ref(c,1)-ref(o,1))) and ref(c,1)-ref(o,1)>0 and c-o<0 and ref(o,1) >ref(c,2) and o<ref(o,1) and c<ref(c,2) and c>ref(o,2)) or (ref(c,2)-ref(o,2)>0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.4 and abs(c-o)>3 and (abs(ref(c,2)-ref(o,2)))>(abs(ref(c,1)-ref(o,1))) and ref(c,1)-ref(o,1)<0 and c-o<0 and ref(c,1) >ref(c,2)and c<ref(c,2) and c>ref(o,2) and o<ref(c,1)),'\n* 夜星 -从看多平衡到看空 转弱 转空'),colorwhite;
explainicon((ref(c,2)-ref(o,2)>0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.4 and abs(c-o)>3 and abs(ref(c,2)-ref(o,2))>(abs(ref(c,1)-ref(o,1))) and ref(c,1)-ref(o,1)>0 and c-o<0 and ref(o,1) >ref(c,2) and o<ref(o,1) and c<ref(c,2) and c>ref(o,2)) or (ref(c,2)-ref(o,2)>0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.4 and abs(c-o)>3 and (abs(ref(c,2)-ref(o,2)))>(abs(ref(c,1)-ref(o,1))) and ref(c,1)-ref(o,1)<0 and c-o<0 and ref(c,1) >ref(c,2)and c<ref(c,2) and c>ref(o,2) and o<ref(c,1)),'17'),align0;
explain((ref(c,1)-ref(o,1)>0 and (abs(ref(c,1)-ref(o,1)))/(abs(ref(c,2)-ref(o,2)))>2.4 and c-o<0 and c>ref(o,1) and ref(c,1)-o>2),'\n* 空头孕育线 --阳育阴 看空'),colorwhite;
explainicon((ref(c,1)-ref(o,1)>0 and (abs(ref(c,1)-ref(o,1)))/(abs(ref(c,2)-ref(o,2)))>2.4 and c-o<0 and c>ref(o,1) and ref(c,1)-o>2),'28'),align0;
explain((ref(c,1)-ref(o,1)<0 and c-o<0 and c>ref(c,1) and o<ref(o,1) and o-c <6),'\n* 空头孕育线 -阴育阴 看空'),colorwhite;
explainicon((ref(c,1)-ref(o,1)<0 and c-o<0 and c>ref(c,1) and o<ref(o,1) and o-c <6),'26'),align0;
explain(ref(c,1)<ref(o,1) and c-o>0 and c>ref(h,1) and o<ref(l,1) and ref(o,1)>ref(max(o,c),2) and ref(c,1)>ref(min(o,c),2) and ref(max(o,c),2)>ref(max(o,c),3),'\n* 双人殉情在上升趋势中最后之空头吞噬 也就是所谓的不见长红不回头'),colorwhite;
explainicon(ref(c,1)<ref(o,1) and c-o>0 and c>ref(h,1) and o<ref(l,1) and ref(o,1)>ref(max(o,c),2) and ref(c,1)>ref(min(o,c),2) and ref(max(o,c),2)>ref(max(o,c),3),'37'),align0;
explain((ref(high,2) -ref(o,2))/ref(high,2)<=0.0003 and (c-low)/o<=0.0003 and ref(c,2)<ref(o,2) and ref(c,2)>ref(o,1) and ref(c,1)>o and ref(c,1)<ref(o,1) and ref(high,1)-ref(o,1)>0 and ref(low,1)-ref(c,1)<0 and high-o>0 and ref(c,2)-ref(low,2)>0 and c<o,'\n* 三胎鸦 -多头走势被扭转 黑k价愈深量愈大 跳空愈大 反转信号愈强'),colorwhite;
explainicon((ref(high,2) -ref(o,2))/ref(high,2)<=0.0003 and (c-low)/o<=0.0003 and ref(c,2)<ref(o,2) and ref(c,2)>ref(o,1) and ref(c,1)>o and ref(c,1)<ref(o,1) and ref(high,1)-ref(o,1)>0 and ref(low,1)-ref(c,1)<0 and high-o>0 and ref(c,2)-ref(low,2)>0 and c<o,'4'),align0;
explain(ref(close,1)-ref(open,1)<0 and close-open>0 and open-ref(close,1)<0 and close<ref(open,1) and close>ref(close,1) and close>(ref(close,1)+ref(open,1))/2,'\n* 贯穿线 -多头力道的反扑或是空单回补力道 长黑之后开低收在前天1/2之上 多头反转信号'),colorwhite;
explainicon( ref(close,1)-ref(open,1)<0 and close-open>0 and open-ref(close,1)<0 and close<ref(open,1) and close>ref(close,1) and close>(ref(close,1)+ref(open,1))/2,'25'),align0;
explain( c-o<0 and ref(c,1)-ref(o,1)<0 and c<ref(c,1)and o>ref(o,1),'\n* 最后吞噬 -在下降趋势中 为一黑一红组合 多头吞噬 在上升趋势中 为一红一黑组合 空头吞噬'),colorwhite;
explainicon( c-o<0 and ref(c,1)-ref(o,1)<0 and c<ref(c,1)and o>ref(o,1),'27'),align0;
explain((ref(c,1)-ref(o,1)>0 and c-o<0 and c<ref(o,1) and o>ref(c,1)),'\n* 最后吞噬 -在下降趋势中 为一黑一红组合 多头吞噬 在上升趋势中 为一红一黑组合 空头吞噬'),colorwhite;
explainicon((ref(c,1)-ref(o,1)>0 and c-o<0 and c<ref(o,1) and o>ref(c,1)),'27'),align0;
explain((ref(c,1)-ref(o,1)<0 and c-o>0 and c<ref(o,1) and o>ref(c,1)),'\n* 多头孕育线 -阴育阳 多头反转可能'),colorwhite;
explainicon((ref(c,1)-ref(o,1)<0 and c-o>0 and c<ref(o,1) and o>ref(c,1)),'11'),align0;
explain(ref(close,4)/ref(open,4)>1.02 and ref(close,3)<ref(open,3) and ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and ref(close,4)<=ref(close,3) and ref(high,2)<ref(high,3) and ref(low,2)>=ref(open,4) and ref(high,1)<ref(close,4) and ref(low,1)>ref(open,4) and close/open>1.01 and open>=ref(open,1) and close>=ref(high,3),'\n* 连续型态之执垫 -比上升三法更具多头意义'),colorwhite;
explainicon(ref(close,4)/ref(open,4)>1.02 and ref(close,3)<ref(open,3) and ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and ref(close,4)<=ref(close,3) and ref(high,2)<ref(high,3) and ref(low,2)>=ref(open,4) and ref(high,1)<ref(close,4) and ref(low,1)>ref(open,4) and close/open>1.01 and open>=ref(open,1) and close>=ref(high,3),'22'),align0;
explain((ref(c,1)-ref(o,1)<0 and c-o>0 and c>ref(o,1) and o<ref(c,1)),'\n* 多头阳线吞噬 -红包黑 反转趋势 配合量'),colorwhite;
explainicon((ref(c,1)-ref(o,1)<0 and c-o>0 and c>ref(o,1) and o<ref(c,1)),'14'),align0;
explain(open<close and (ref(c,2)-ref(o,2)<0 and (ref(c,1)-ref(o,1)>0 and ref(c,1)<ref(o,2) and ref(o,1)>ref(c,2) and o>ref(o,2) and c>ref(c,1))),'\n* 内困三日翻红 -一二母子 二量缩 三量增翻红'),colorwhite;
explainicon(open<close and (ref(c,2)-ref(o,2)<0 and (ref(c,1)-ref(o,1)>0 and ref(c,1)<ref(o,2) and ref(o,1)>ref(c,2) and o>ref(o,2) and c>ref(c,1))),'8');
explain((ref(c,2)-ref(o,2)<0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.3 and (abs(ref(c,2)-ref(o,2)))>(abs(ref(c,1)-ref(o,1))) and abs(c-o)/(abs(ref(c,1)-ref(o,1)))>2 and abs(abs(c-o)/(abs(ref(c,2)-ref(o,2))))<2 and ref(c,1)-ref(o,1)<0 and c-o>0 and ref(o,1) <ref(c,2)and o>ref(o,1) and c<ref(o,2)and c>ref(c,2)) or (ref(c,2)-ref(o,2)<0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.3 and (abs(ref(c,2)-ref(o,2)))>(abs(ref(c,1)-ref(o,1))) and abs(c-o)/(abs(ref(c,1)-ref(o,1)))>2 and abs(abs(c-o)/(abs(ref(c,2)-ref(o,2))))<2 and ref(c,1)-ref(o,1)>0 and c-o>0 and ref(c,1)<ref(c,2) and c>ref(c,2) andc<ref(o,2)and o>ref(c,1)),'\n* 晨星 -反多信号'),colorwhite;
explainicon((ref(c,2)-ref(o,2)<0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.3 and (abs(ref(c,2)-ref(o,2)))>(abs(ref(c,1)-ref(o,1))) and abs(c-o)/(abs(ref(c,1)-ref(o,1)))>2 and abs(abs(c-o)/(abs(ref(c,2)-ref(o,2))))<2 and ref(c,1)-ref(o,1)<0 and c-o>0 and ref(o,1) <ref(c,2)and o>ref(o,1) and c<ref(o,2)and c>ref(c,2)) or (ref(c,2)-ref(o,2)<0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.3 and (abs(ref(c,2)-ref(o,2)))>(abs(ref(c,1)-ref(o,1))) and abs(c-o)/(abs(ref(c,1)-ref(o,1)))>2 and abs(abs(c-o)/(abs(ref(c,2)-ref(o,2))))<2 and ref(c,1)-ref(o,1)>0 and c-o>0 and ref(c,1)<ref(c,2) and c>ref(c,2) andc<ref(o,2)and o>ref(c,1)),'24'),align0;
explain((ref(c,2)-ref(o,2)<0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.7 and (abs(ref(c,2)-ref(o,2)))>abs(ref(c,1)-ref(o,1)) and abs(c-o)/(abs(ref(c,1)-ref(o,1)))>2.5 and ref(c,1)-ref(o,1)<0 and c-o>0 and ref(o,1) <ref(c,2)and o>ref(o,1) and c<ref(o,2)and c>ref(c,2)) or (ref(c,2)-ref(o,2)<0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.7 and (abs(ref(c,2)-ref(o,2)))>abs(ref(c,1)-ref(o,1)) and abs(c-o)/(abs(ref(c,1)-ref(o,1)))>2.5 and ref(c,1)-ref(o,1)>0 and c-o>0 and ref(c,1)<ref(c,2) and c>ref(c,2) andc<ref(o,2)and o>ref(c,1)),'\n* 晨星 -反多信号'),colorwhite;
explainicon((ref(c,2)-ref(o,2)<0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.7 and (abs(ref(c,2)-ref(o,2)))>abs(ref(c,1)-ref(o,1)) and abs(c-o)/(abs(ref(c,1)-ref(o,1)))>2.5 and ref(c,1)-ref(o,1)<0 and c-o>0 and ref(o,1) <ref(c,2)and o>ref(o,1) and c<ref(o,2)and c>ref(c,2)) or (ref(c,2)-ref(o,2)<0 and (abs(ref(c,2)-ref(o,2)))/(abs(ref(c,3)-ref(o,3)))>2.7 and (abs(ref(c,2)-ref(o,2)))>abs(ref(c,1)-ref(o,1)) and abs(c-o)/(abs(ref(c,1)-ref(o,1)))>2.5 and ref(c,1)-ref(o,1)>0 and c-o>0 and ref(c,1)<ref(c,2) and c>ref(c,2) andc<ref(o,2)and o>ref(c,1)),'24'),align0;
explain((ref(c,1)-ref(o,1)>0 and (abs(ref(c,1)-ref(o,1)))/(abs(ref(c,2)-ref(o,2)))>1.5 and c-o<0 and c>ref(o,1) and c<ref(c,1) and o>ref(c,1)),'\n* 乌云罩顶 -上涨遇重大阻力 空头聚力 三日内见九死一生或跌落一红k低点 反转走空'),colorwhite;
explainicon((ref(c,1)-ref(o,1)>0 and (abs(ref(c,1)-ref(o,1)))/(abs(ref(c,2)-ref(o,2)))>1.5 and c-o<0 and c>ref(o,1) and c<ref(c,1) and o>ref(c,1)),'乌云罩顶'),align0;
explain((o>c and open>ma(c,5) and open>ma(c,10) and o>ma(c,20) and close<ma(c,5) and close<ma(c,10) and close<ma(c,20)) or (o<c and open<ma(c,5) and open<ma(c,10) and o<ma(c,20) and close>ma(c,5) and close>ma(c,10) and close>ma(c,20)),'\n* 断头铡刀(出水芙蓉) -一根大阴(阳)线切断了三根均线 如果改变了其后均线的排列为空头(多头)排列 后势看空(多)'),colorwhite;
explainicon((o>c and open>ma(c,5) and open>ma(c,10) and o>ma(c,20) and close<ma(c,5) and close<ma(c,10) and close<ma(c,20)) or (o<c and open<ma(c,5) and open<ma(c,10) and o<ma(c,20) and close>ma(c,5) and close>ma(c,10) and close>ma(c,20)),'36'),align0;
explain(ref(o,1)/ref(c,1) > 1.05 and ref(h,1)/ref(l,1) < ref(o,1)/ref(c,1)+0.018 and c>o and o<ref(l,1) and c=ref(l,1),'\n* 颈上线 -下降趋势 若第二天大量 维持原趋势可能大增'),colorwhite;
explainicon(ref(o,1)/ref(c,1) > 1.05 and ref(h,1)/ref(l,1) < ref(o,1)/ref(c,1)+0.018 and c>o and o<ref(l,1) and c=ref(l,1),'33'),align0;
explain(ref(o,1)/ref(c,1) > 1.05 and ref(h,1)/ref(l,1) < ref(o,1)/ref(c,1)+0.018 and c>o and o<ref(l,1) and c<ref(c,1)+(ref(o,1)-ref(c,1))*0.005 and c>ref(c,1)-(ref(o,1)-ref(c,1))*0.005,'\n* 颈内线 -下降趋势 比颈上线缓和 若第二天大量 维持原趋势可能大增'),colorwhite;
explainicon(ref(o,1)/ref(c,1) > 1.05 and ref(h,1)/ref(l,1) < ref(o,1)/ref(c,1)+0.018 and c>o and o<ref(l,1) and c<ref(c,1)+(ref(o,1)-ref(c,1))*0.005 and c>ref(c,1)-(ref(o,1)-ref(c,1))*0.005,'34'),align0;
explain(ref(o,1)/ref(c,1) > 1.05 and ref(h,1)/ref(l,1) < ref(o,1)/ref(c,1)+0.018 and close/open>1.05 and high/low < close/open+0.018 and o<ref(l,1) and c<ref(c,1)+(ref(o,1)-ref(c,1))*0.5 and c>ref(c,1),'\n* 戮入线 -代表下跌市场中的失败涨升 下降趋势持续'),colorwhite;
explainicon(ref(o,1)/ref(c,1) > 1.05 and ref(h,1)/ref(l,1) < ref(o,1)/ref(c,1)+0.018 and close/open>1.05 and high/low < close/open+0.018 and o<ref(l,1) and c<ref(c,1)+(ref(o,1)-ref(c,1))*0.5 and c>ref(c,1),'32'),align0;
早晨之星:=ref(close,2)/ref(open,2) < 0.95 and ref(open,1) < ref(close,2) and abs(ref(open,1)-ref(close,1))/ref(close,1)<0.03 and
close/open>1.05 and close>ref(close,2);
黄昏之星:=ref(close,2)/ref(open,2) > 1.03 and ref(open,1) > ref(close,2) and abs(ref(open,1)-ref(close,1))/ref(close,1)<0.02 and
close/open<0.97 and close<ref(close,2);
长十字:=close=open and high/low >1.03;
垂死十字:=close=open and close=low and close<>high;
早晨十字星:=ref(close,2)/ref(open,2) < 0.95 and ref(open,1) < ref(close,2) and ref(open,1)=ref(close,1) and
close/open>1.05 and close>ref(close,2);
黄昏十字星:=ref(close,2)/ref(open,2) > 1.05 and ref(open,1) > ref(close,2) and ref(open,1)=ref(close,1) and
close/open<0.95 and close<ref(close,2);
射击之星:=min(open,close)=low and high-low > 3*(max(open,close)-low) and close > ma(close,5);
倒转锤头:=min(open,close)=low and high-low > 3*(max(open,close)-low) and close < ma(close,5);
锤头:=high = max(open,close) and high-low > 3*(high-min(open,close)) and close < ma(close,5);
吊颈:=high = max(open,close) and high-low > 3*(high-min(open,close)) and close>ma(close,5);
穿头破脚:=(ref(close,1)/ref(open,1)>1.03 and close/open<0.96 and close<ref(open,1) and open>ref(close,1))
or (ref(close,1)/ref(open,1)<0.97 and close/open>1.04 and close>ref(open,1) and open<ref(close,1));
乌云盖顶:=ref(close,1)/ref(open,1)>1.03 and close/open<0.97 and open>ref(close,1) and close<ref(close,1);
曙光初现:=ref(close,1)/ref(open,1)<0.97 and close/open>1.03 and open<ref(close,1) and close>ref(close,1);
身怀六甲:=abs(ref(close,1)-ref(open,1))/ref(close,1) > 0.04 and abs(close-open)/close<0.005 and
max(close,open) < max(ref(close,1),ref(open,1)) and min(close,open) > min(ref(close,1),ref(open,1));
十字胎:=abs(ref(close,1)-ref(open,1))/ref(close,1) > 0.04 and close=open and
close < max(ref(close,1),ref(open,1)) and close > min(ref(close,1),ref(open,1));
平顶:=abs(high-ref(high,1))/high<0.001;
平底:=(abs(low-ref(low,1))/low<0.001 and abs(ref(low,1)-ref(low,2))/ref(low,1)<=0.001);
大阳烛:=close/open>1.05 and high/low < close/open+0.018;
三个白武士:=ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and close>open
and ref(close,1)>ref(close,2) and close>ref(close,1);
双飞乌鸦:=ref(close,1)<ref(open,1) and close<open and close/open<0.98;
孕育线:=ref(close,2)>ref(open,2) and (ref(close,2)-ref(open,2))/ref(open,2)>=2/100and ref(open,1)>=ref(close,1) and
(ref(open,1)-ref(close,1))/ref(close,1)<=2/100 and ref(open,1)<=ref(close,2) and ref(close,1)>=ref(open,2) and close>=open and
(close-open)/open>=2/100 and close>=ref(open,1) and open<=ref(close,1) and (max(close,ref(close,2))-min(close,ref(close,2)))/min(close,ref(close,2))<=1/100;
多方炮:=ref(close,2)>ref(open,2) and ref(close,1)<ref(open,1) and close>open;
出水芙蓉:=(open<ema(close,20) or open<ema(close,40) or open<ema(close,60)) and (close>max(ema(close,20),max(ema(close,40),ema(close,60))))
and (vol/ma(vol,30)>1.2 and close/ref(close,1)>1.049);
上升三部曲:=ref(close,4)/ref(open,4)>1.03 and ref(close,3)<ref(open,3) and ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and
ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and
ref(high,4)>ref(high,1) and close/open>1.03 and close>ref(close,4);
下跌三部曲:= ref(close,4)/ref(open,4)<0.97 and ref(close,3)>ref(open,3) and ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and ref(low,4)<ref(low,3) and
ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open<0.97 and
close<ref(close,4);
跳空缺口:=high<ref(low,1) or low>ref(high,1);
三只乌鸦:=ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and close<open and ref(close,1)<ref(close,2) and close<ref(close,1);
光脚阴线:=low=close and high<>low;
光头阳线:=high=close and high<>low;
分离:=open=ref(open,1) and (close-open)*(ref(close,1)-ref(open,1))<0;
长下影:=(min(close,open)-low)/(high-low)>0.667;
长上影:=(high-max(close,open))/(high-low)>0.667;
十字星:=close=open and high<>low;
大阴烛:=open/close > 1.05 and high/low < open/close+0.018;
好友反攻:=(ref(close,1)<ref(open,1) and close>open and abs(close-ref(close,1))/close<0.002)
or (ref(close,1)>ref(open,1) and close<open and abs(close-ref(close,1))/close<0.002);
倾盆大雨:=ref(close,1)/ref(open,1)>=1.03 and open<ref(close,1) and open>ref(open,1) and close<ref(open,1);
公式有未来,不喜有zig的,以下可以去掉。。。
{买卖点}
b:=zig(3,10);
g:=ma(b,2);
drawtext(cross(g,b),h*1.05,'卖' ),color00ff00;
drawtext(cross(b,g),l*0.95,'★'),colorred;
上一指标公式:底部爆发公式 飞狐爆发指标 源码
下一指标公式:自动寻找高低点画线的公式 飞狐画线寻找指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文四均线主图公式 飞狐均线指标 源码仅供学习研究。