FZ买卖糸统
BIAS20:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
Q7:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
持股天数:=BARSLAST((BARSLAST(BIAS20>0 AND REF(BIAS20,1)>0))>0);
持币天数:=BARSLAST((BARSLAST(BIAS20<0 AND REF(BIAS20,1)<0))>0);
利润率:IF(持股天数>0,SUM(Q7,持股天数),0);
买入:IF(REF(持币天数,1)>0 AND 持币天数=0,10,0),colorFF00FF;
卖出:IF(REF(持股天数,1)>0 AND 持股天数=0,10,0),colorFFFF00;
持币:IF(持币天数>0,5,0),colorFFFF;
EXPLAINEX(1=1,'利润率=',利润率,2,1);
EXPLAIN(买入>0,'买卖糸统建议你【买入】'),colorFF00FF;
EXPLAIN(卖出>0,'买卖糸统建议你【卖出】'),colorFFFF00;
EXPLAIN(持币>0,'买卖糸统建议你【持币】'),colorFFFF;
FZ解盘2号
EM5:EMA(CLOSE,5),colorFFFFFF;
EM10:EMA(CLOSE,10),colorFFFF;
POLYLINE(CLOSE,EMA(CLOSE,20)),color999999;
EM30:EMA(CLOSE,30),colorFF00;
POLYLINE(CLOSE,EMA(CLOSE,45)),color999999;
EM60:EMA(CLOSE,60),colorFF00FF;
POLYLINE(CLOSE,EMA(CLOSE,90)),color999999;
EM120:EMA(CLOSE,120),colorFFFF00;
POLYLINE(CLOSE,EMA(CLOSE,150)),color999999;
POLYLINE(CLOSE,EMA(CLOSE,180)),color999999;
POLYLINE(CLOSE,EMA(CLOSE,210)),color999999;
EM250:EMA(CLOSE,250),colorFF;
FILLRGN(EMA(CLOSE,5)>EMA(CLOSE,10),EMA(CLOSE,5),EMA(CLOSE,10)),color6699FF;
FILLRGN(EMA(CLOSE,5)<EMA(CLOSE,10),EMA(CLOSE,5),EMA(CLOSE,10)),colorFF6666;
VK:=SQRT(VOL/CAPITAL*100*5);
STICKLINE(CLOSE>=OPEN,HIGH,LOW,0,0),colorFF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,VK+3.8,0),colorFF;
STICKLINE(CLOSE<OPEN,HIGH,LOW,0,0),colorFF00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,VK+3.8,0),colorFF00;
EXPLAIN(1=1,'EM指标的判断:'),LINETHICK2,colorFFFF;
EXPLAIN(EM5>EM10 AND EM10>EM30 AND EM5>EM30,'短期均线排列:多头');
EXPLAIN(EM5<EM10 AND EM10<EM30 AND EM5<EM30,'短期均线排列:空头');
EXPLAIN(EM30>EM60 AND EM30>EM120 AND EM60>EM120,'中期均线排列:多头');
EXPLAIN(EM30<EM60 AND EM30<EM120 AND EM60<EM120,'中期均线排列:空头');
EXPLAIN(EM60>EM120 AND EM120>EM250 AND EM60>EM250,'长期均线排列:多头');
EXPLAIN(EM60<EM120 AND EM120<EM250 AND EM60<EM250,'长期均线排列:空头');
EXPLAIN(CROSS(EM5,EM10),'短期均线5x10:金叉');
EXPLAIN(CROSS(EM10,EM5),'短期均线5x10:死叉');
EXPLAIN(CROSS(CLOSE,EM120),'今日股价上穿半年线');
EXPLAIN(CROSS(EM120,CLOSE),'今日股价跌破半年线');
EXPLAIN(CROSS(CLOSE,EM250),'今日股价上穿一年线');
EXPLAIN(CROSS(EM250,CLOSE),'今日股价跌破一年线');
EXPLAIN(CROSS(CLOSE,EM60) AND CROSS(CLOSE,EM120) AND CROSS(CLOSE,EM250),'股价一阳上穿三线');
EXPLAIN(EM30>REF(EM30,1),'30日均线趋势:向上');
EXPLAIN(EM30>REF(EM30,1) AND EM30<REF(EM30,1)*1.001,'30日均线趋势:走平');
EXPLAIN(EM30<REF(EM30,1),'30日均线趋势:向下');
EXPLAIN(EM5>REF(EM5,1)*1.015,'5日均线:强劲向上');
EXPLAIN(EM5>REF(EM5,1) AND EM5<REF(EM5,1)*1.005,'5日均线:方向不明');
EXPLAIN(EM5<REF(EM5,1)*0.985,'5日均线:快速向下');
DIFF:=EMA(CLOSE,5)-EMA(CLOSE,20);
DEA:=EMA(DIFF,10);
MACD:=2*(DIFF-DEA);
JC:=CROSS(DIFF,DEA);
SC:=CROSS(DEA,DIFF);
DCJC:=JC AND DEA>0;
EXPLAIN(1=1,'MACD指标的判断:'),LINETHICK2,colorFFFF;
EXPLAIN(JC AND DEA>0,'MACD在0轴上金叉');
EXPLAIN(JC AND DEA<0,'MACD在0轴下金叉');
EXPLAIN(SC AND DEA>0,'MACD在0轴上死叉');
EXPLAIN(SC AND DEA<0,'MACD在0轴下死叉');
EXPLAIN(MACD>0 AND MACD>REF(MACD,1),'MACD的红柱:增长');
EXPLAIN(MACD>0 AND MACD<REF(MACD,1),'MACD的红柱:缩短');
EXPLAIN(MACD<0 AND ABS(MACD)>REF(ABS(MACD),1),'MACD的绿柱:增长');
EXPLAIN(MACD<0 AND ABS(MACD)<REF(ABS(MACD),1),'MACD的绿柱:缩短');
EXPLAIN(COUNT(DCJC,20)=2 AND JC AND DEA>0,'0轴上金叉次数:2');
EXPLAIN(COUNT(DCJC,20)=3 AND JC AND DEA>0,'0轴上金叉次数:3');
EXPLAIN(COUNT(DCJC,20)=4 AND JC AND DEA>0,'0轴上金叉次数:4');
EXPLAIN(1=1,'KDJ指标的判断:'),LINETHICK2,colorFFFF;
日K:="KDJ.K#day"(20,5,5);
日D:="KDJ.D#day"(20,5,5);
周K:="KDJ.K#week"(9,3,3);
周D:="KDJ.D#week"(9,3,3);
EXPLAINEX(周K>0,'周线K=',周K,2,0);
EXPLAIN(周K<=20,'周K低位');
EXPLAIN(周K>=80,'周K高位');
EXPLAIN(周K>20 AND 周K<50,'周K中低位');
EXPLAIN(周K>50 AND 周K<80,'周K中高位');
EXPLAINEX(日K>0,'日线K=',日K,2,0);
EXPLAIN(日K<=20,'日K低位');
EXPLAIN(日K>=80,'日K高位');
EXPLAIN(日K>20 AND 日K<50,'日K中低位');
EXPLAIN(日K>50 AND 日K<80,'日K中高位');
EXPLAIN(CROSS(日K,日D),'日K与日D今日金叉');
EXPLAIN(CROSS(日D,日K),'日K与日D今日死叉');
EXPLAIN(CROSS(周K,周D),'周K与周D今日金叉');
EXPLAIN(CROSS(周D,周K),'周K与周D今日死叉');
FZ解盘KD
日K:"KDJ.K#day"(20,5,5);
日D:"KDJ.D#day"(20,5,5);
周K:"KDJ.K#week"(9,3,3);
周D:"KDJ.D#week"(9,3,3);
FILLRGN(周K>周D,周K,周D),colorFF00FF;
FILLRGN(周K<周D,周K,周D),colorFF9999;
FILLRGN(日K>日D,日K,日D),colorFF;
FILLRGN(日K<日D,日K,日D),colorFF00;
STICKLINE(CLOSE>0,20,20,6,0),colorFF;
STICKLINE(CLOSE>0,80,80,6,0),colorFF;
STICKLINE(CLOSE>0,50,50,6,0),colorFFFF;
EXPLAIN(1=1,'周KDJ指标的判断:'),LINETHICK2,colorFFFF;
EXPLAIN(周K<=20,'周线KD:低位');
EXPLAIN(周K>=80,'周线KD:高位');
EXPLAIN(周K>20 AND 周K<50,'周线KD:中低位');
EXPLAIN(周K>50 AND 周K<80,'周线KD:中高位');
EXPLAINEX(周K>0,'周线位置,周K=',周K,2,1);
EXPLAIN(1=1,'日KDJ指标的判断:'),LINETHICK2,colorFFFF;
EXPLAIN(日K<=20,'日线KD:低位');
EXPLAIN(日K>=80,'日线KD:高位');
EXPLAIN(日K>20 AND 日K<50,'日线KD:中低位');
EXPLAIN(日K>50 AND 日K<80,'日线KD:中高位');
EXPLAINEX(日K>0,'日线位置,日K=',日K,2,1);
EXPLAIN(1=1,'KDJ的金叉死叉判断:'),LINETHICK2,colorFFFF;
EXPLAIN(CROSS(日K,日D),'日K与日D今日金叉');
EXPLAIN(CROSS(日D,日K),'日K与日D今日死叉');
EXPLAIN(CROSS(周K,周D),'周K与周D今日金叉');
EXPLAIN(CROSS(周D,周K),'周K与周D今日死叉');
|