文华财经指标 自动画线变色K线公式源码
2018/8/29 8:40:02点击:
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
HIGHN:=10;
LOWN:=10;
HIGHDISPLAY:=0;
LOWDISPLAY:=0;
ZGDISPLAY:=0;
MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H,'ICO5');
DDD:=BARSLAST(CC);
CURRBARSCOUNT:=DATACOUNT-BARPOS;
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);
{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=REFX1(DINGBUTS,10000);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=REFX1(DINGBUTS1,10000);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
高点压力:TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H),COLORGREEN,DOT;
DRAWHORIZONTALLINE(CURRBARSCOUNT=GDCS1,H,COLORLIGHTGREY),POINTDOT;
DRAWHORIZONTALLINE(CURRBARSCOUNT=GDCS2,H,COLORLIGHTGREY),POINTDOT;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L,'ICO4');
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=REFX1(DDTS1,10000);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=REFX1(DDTS2,10000);
低点支撑:TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L),COLORRED,DOT;
ZGSTAR:=(高点压力+低点支撑)/2;
ZGEND:=REFX1((高点压力+低点支撑)/2,10000);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS1,L,COLORLIGHTGREY),POINTDOT;
DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS2,L,COLORLIGHTGREY),POINTDOT;
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK2;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,NULL),COLORBLUE,LINETHICK2;
AAA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CCA:= EMA(C,5) > EMA(C,10);
CC1A:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;
STICKLINE1(AAA,O,C,3,1),COLORRED;
STICKLINE1(AAA,MAX(O,C),H,0,0),COLORRED;
STICKLINE1(AAA,MIN(O,C),L,0,0),COLORRED;
STICKLINE1(AAA AND DD,O,C,3,0),COLORRED;
STICKLINE1(BB,MAX(O,C),H,0,0),COLORGREEN;
STICKLINE1(BB,MIN(O,C),L,0,0),COLORGREEN;
STICKLINE1(BB,O,C,3,1),COLORGREEN;
STICKLINE1(BB AND DD,O,C,3,0),COLORGREEN;
STICKLINE1(BB AND CCA,MAX(O,C),H,0,1),COLORWHITE;
STICKLINE1(BB AND CCA,MIN(O,C),L,0,1),COLORWHITE;
STICKLINE1(BB AND CCA,O,C,3,1),COLORWHITE;
STICKLINE1(BB AND CCA AND DD,O,C,3,0),COLORWHITE;
STICKLINE1(AA AND CC1A,MAX(O,C),H,0,0),COLORWHITE;
STICKLINE1(AA AND CC1A,MIN(O,C),L,0,0),COLORWHITE;
STICKLINE1(AA AND CC1A,O,C,3,1),COLORWHITE;
STICKLINE1(AA AND CC1A AND DD,O,C,3,0),COLORWHITE;
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
HIGHN:=10;
LOWN:=10;
HIGHDISPLAY:=0;
LOWDISPLAY:=0;
ZGDISPLAY:=0;
MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H,'ICO5');
DDD:=BARSLAST(CC);
CURRBARSCOUNT:=DATACOUNT-BARPOS;
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);
{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=REFX1(DINGBUTS,10000);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=REFX1(DINGBUTS1,10000);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
高点压力:TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H),COLORGREEN,DOT;
DRAWHORIZONTALLINE(CURRBARSCOUNT=GDCS1,H,COLORLIGHTGREY),POINTDOT;
DRAWHORIZONTALLINE(CURRBARSCOUNT=GDCS2,H,COLORLIGHTGREY),POINTDOT;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L,'ICO4');
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=REFX1(DDTS1,10000);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=REFX1(DDTS2,10000);
低点支撑:TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L),COLORRED,DOT;
ZGSTAR:=(高点压力+低点支撑)/2;
ZGEND:=REFX1((高点压力+低点支撑)/2,10000);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS1,L,COLORLIGHTGREY),POINTDOT;
DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS2,L,COLORLIGHTGREY),POINTDOT;
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK2;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,NULL),COLORBLUE,LINETHICK2;
AAA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CCA:= EMA(C,5) > EMA(C,10);
CC1A:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;
STICKLINE1(AAA,O,C,3,1),COLORRED;
STICKLINE1(AAA,MAX(O,C),H,0,0),COLORRED;
STICKLINE1(AAA,MIN(O,C),L,0,0),COLORRED;
STICKLINE1(AAA AND DD,O,C,3,0),COLORRED;
STICKLINE1(BB,MAX(O,C),H,0,0),COLORGREEN;
STICKLINE1(BB,MIN(O,C),L,0,0),COLORGREEN;
STICKLINE1(BB,O,C,3,1),COLORGREEN;
STICKLINE1(BB AND DD,O,C,3,0),COLORGREEN;
STICKLINE1(BB AND CCA,MAX(O,C),H,0,1),COLORWHITE;
STICKLINE1(BB AND CCA,MIN(O,C),L,0,1),COLORWHITE;
STICKLINE1(BB AND CCA,O,C,3,1),COLORWHITE;
STICKLINE1(BB AND CCA AND DD,O,C,3,0),COLORWHITE;
STICKLINE1(AA AND CC1A,MAX(O,C),H,0,0),COLORWHITE;
STICKLINE1(AA AND CC1A,MIN(O,C),L,0,0),COLORWHITE;
STICKLINE1(AA AND CC1A,O,C,3,1),COLORWHITE;
STICKLINE1(AA AND CC1A AND DD,O,C,3,0),COLORWHITE;
- 上一篇:支撑压力指标 文华财经公式源码 2018/8/29
- 下一篇:一个个人用的博易大师好指标,波段操盘,即可以看大趋势也可以小 2018/8/28