飞狐仅对起爆金股主图均线胡改,主图源码,贴图说明
看到起爆金股源码,本人仅仅对均线源码进行了胡改,起爆信号没有贴出。此为飞狐源码。
DH:=(MIN(C,O)+2*H)/3;XL:=(MAX(C,O)+2*l)/3;
重心:=(DH+XL)/2,POINTDOT,LINETHICK3;
均价:=AMOUNT/(VOL*100);
折价:=if(INDEXC=C,重心,(重心+均价)/2);
YM:EMA(SLOPE(折价,42)*6+折价,42),COLORRED,LINETHICK1;
YM1:=EMA(YM,3),COLORRED,LINETHICK1;
LXX:(YM+YM1)/2;
SL:=LXX+2*STD(MD(折价,21),21),COLORMAGENTA,POINTDOT,LINETHICK2;
XL:=LXX-2*STD(MD(折价,21),21),COLOR00bb00,POINTDOT,LINETHICK2;
FILLRGN(C>0,LXX,SL),COLORBROWN;
FILLRGN(C>0,LXX,XL),COLORBLUE;
PARTLINE(YM>=YM1,LXX),LINETHICK1,COLORRED;
PARTLINE(YM<=YM1,LXX),LINETHICK1,COLORGREEN;
KLINE(O,H,L,C,0);
STICKLINE(EMA(折价,3)>=YM,LOW,HIGH,0,0),COLORRED;
STICKLINE(EMA(折价,3)>=YM,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(EMA(折价,3)<=YM,LOW,HIGH,0,0),COLORGREEN;
STICKLINE(EMA(折价,3)<=YM,CLOSE,OPEN,3,0),COLORGREEN;
高价线:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORBLUE,LINETHICK1;
低价线:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORBLUE,LINETHICK1;
G90:=EMA(高价线,72),COLORRED,LINETHICK1;
D90:=EMA(低价线,72),COLORRED,LINETHICK1;
高低线:(G90+D90)/2;