公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

小主图(精品飞狐主图公式 源码)

2021-5-18 04:58| 发布者: admin| 查看: 80| 评论: 0

文件:小主图_hy.alg
名称: 小主图 类别:技术指标
说明:
公式组: 自用

SAT:=IF(AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20))*100>100,100,AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20))*100);
DRAWTEXTEX(1,0,12,5,'量能饱和度:'+NUMTOSTR(SAT,0)),LINETHICK3,color8000FF;
AA10:MA(CLOSE,8),colorFF;
AA12:MA(CLOSE,12),colorFF;
BB10:=(ATAN(AA10-REF(AA10,1)))*3.1416*10;
BB12:=(ATAN(AA12-REF(AA12,1)))*3.1416*10;
MA13:=MA(CLOSE,13);
FILLRGN(AA12<=AA10 AND BB12>=1 AND BB10>=1,AA10,AA12),color98FF;
FILLRGN(AA12>=AA10 AND BB10<=1 AND BB10<=1,AA10,AA12),colorFF00;
X1:=(CLOSE+LOW+HIGH)/3;
BB13:=(ATAN(EMA(X1,13)-REF(EMA(X1,13),1)))*3.1416*10;
EMA8:=EMA(CLOSE,8);
DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠45上升'),colorFFFFFF;
压力:MA(REF(HHV(CLOSE,30),1),2),color9DFFFF;
支撑:MA(REF(LLV(CLOSE,30),1),2),colorABFF46;
AA1:=AMOUNT/VOL;
BB1:=LOWCC1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
DD1:=LOWEE1:=VOLFF1:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(FF1,LOW*0.99,'老鼠仓'),color4080FF;
A51:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1)-2*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,5,1);
黑马线:=EMA(A51,5);
A54:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
趋势线:=MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2);
DRAWTEXT(CROSS(趋势线,0) AND 黑马线<40,HIGH*0.94,'▲'),ALIGN0,colorFFFF;
DRAWTEXT(CROSS(趋势线,0) AND 黑马线<40,HIGH*0.92,'大黑马'),colorFFFF;
LC:=REF(CLOSE,1);
RSI:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),LOW*0.99,'底背离'),colorA6E500;
DRAWTEXT(CROSS(88,RSI),HIGH*1.02,'顶背离'),color1880FF;
VAR2:=LLV(LOW,27);
VAR3:=HHV(HIGH,34);
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*25;
注意买:=IF(VAR4<10,80,100);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
超跌:=IF(J<0,10,0);
BDDD:=LLV(J,2)=LLV(J,8);
买入:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,30,0);
DRAWTEXT(买入 AND 注意买=100 AND 超跌=0,LOW,'短线'),color8000FF;
MTM:=CLOSE-REF(CLOSE,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(FILTER(买=1,5),LOW-0.03,'拉升'),colorFFDE00;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0),colorFF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5,0),colorFF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5,0),colorFF00;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5,0),colorFF00;
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),color55;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0),color66;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0),color77;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),color99;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),colorBB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),colorDD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),colorFF;
VAR9Q:=CLOSE=HHV(CLOSE,4) AND (REF(CLOSE,1)>=REF(CLOSE,2) OR REF(CLOSE,1)>=REF(CLOSE,3)) OR REF(CLOSE,1)=HHV(CLOSE,4) AND CLOSE>=REF(CLOSE,2) OR REF(CLOSE,2)=HHV(CLOSE,4) AND REF(CLOSE,3)=LLV(CLOSE,4) AND CLOSE>=REF(CLOSE,1) OR REF(CLOSE,3)=HHV(CLOSE,4) AND CLOSE>=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,7,0),color55;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,6,0),color66;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,5,0),color77;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,4,0),color99;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,3,0),colorBB;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,2,0),colorDD;
STICKLINE(VAR9Q,CLOSE,(OPEN+CLOSE)/2,1,0),colorFF;
VARAQ:=CLOSE=HHV(CLOSE,4) AND REF(CLOSE,1)=LLV(CLOSE,4);
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,7,0),colorFF11FF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,6,0),colorFF33FF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,5,0),colorFF55FF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,4,0),colorFF77FF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,3,0),colorFF99FF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,2,0),colorFFBBFF;
STICKLINE(VARAQ,CLOSE,(OPEN+CLOSE)/2,1,0),colorFFDDFF;
VARBQ:=CLOSE=LLV(CLOSE,4) AND (REF(CLOSE,1)HHV(CLOSE,4) AND CLOSESTICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,7,0),color333333;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,6,0),color555555;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,5,0),color777777;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,4,0),color999999;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,3,0),colorBBBBBB;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,2,0),colorDDDDDD;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,1,0),colorFFFFFF;
VARCQ:=REF(CLOSE,1)=LLV(CLOSE,4) AND CLOSE>=REF(CLOSE,2) OR REF(CLOSE,2)=LLV(CLOSE,4) AND REF(CLOSE,1)<=REF(CLOSE,3) AND REF(CLOSE,2)=REF(CLOSE,1);
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,7,0),color3300;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,6,0),color5500;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,5,0),color7700;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,4,0),color9900;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,3,0),colorBB00;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,2,0),colorDD00;
STICKLINE(VARCQ,OPEN,(OPEN+CLOSE)/2,1,0),colorFF00;
VARDQ:=REF(CLOSE,1)=HHV(CLOSE,4) AND CLOSEREF(CLOSE,3) OR REF(CLOSE,3)=HHV(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,2)) AND REF(CLOSE,2)>=REF(CLOSE,4) AND CLOSESTICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,7,0),colorFF1100;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,6,0),colorFF3300;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,5,0),colorFF5500;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,4,0),colorFF7700;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,3,0),colorFF9900;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,2,0),colorFFBB00;
STICKLINE(VARDQ,OPEN,(OPEN+CLOSE)/2,1,0),colorFFDD00;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7,0),colorAA;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,6,0),colorBB;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5,0),colorCC;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,4,0),colorDD;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3,0),colorEE;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2,0),colorFF;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1,0),colorFF;
STICKLINE(CLOSE>=OPEN,HIGH,LOW,0,0),colorFF;
STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,7,0),colorAAAA00;
STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,6,0),colorBBBB00;
STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,5,0),colorCCCC00;
STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,4,0),colorDDDD00;
STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,3,0),colorEEEE00;
STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,2,0),colorFFFF00;
STICKLINE(CLOSE<=OPEN,CLOSE,OPEN,1,0),colorFFFF00;
STICKLINE(CLOSE<=OPEN,HIGH,LOW,0,0),colorFFFF00;
STICKLINE(CLOSE/REF(CLOSE,1)>1.05,(CLOSE+OPEN)/2,CLOSE,7,0),colorAAAA;
STICKLINE(CLOSE/REF(CLOSE,1)>1.05,(CLOSE+OPEN)/2,CLOSE,5,0),colorCCCC;
STICKLINE(CLOSE/REF(CLOSE,1)>1.05,(CLOSE+OPEN)/2,CLOSE,3,0),colorEEEE;
STICKLINE(CLOSE/REF(CLOSE,1)>1.05,(CLOSE+OPEN)/2,CLOSE,1,0),colorFFFF;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,7,0),color333333;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,6,0),color555555;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,5,0),color777777;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,4,0),color999999;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,3,0),colorBBBBBB;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,2,0),colorDDDDDD;
STICKLINE(VARBQ,CLOSE,(OPEN+CLOSE)/2,1,0),colorFFFFFF;
SS:=30;
HHC:=HHV(HIGH,SS);
LLC:=LLV(LOW,SS);
AA:PARTLINE(BARPOS>=SYSPARAM(1)-SS,HHC[SYSPARAM(1)]),colorFF00;
DRAWNUMBER(BARPOS=SYSPARAM(1)-SS,HHC[SYSPARAM(1)],HHC[SYSPARAM(1)],2),PXUP25,colorFF88CC;
BB:PARTLINE(BARPOS>=SYSPARAM(1)-SS,(HHC[SYSPARAM(1)]*3+LLC[SYSPARAM(1)])/4),POINTDOT,colorFFFF;
CC:PARTLINE(BARPOS>=SYSPARAM(1)-SS,(HHC[SYSPARAM(1)]+LLC[SYSPARAM(1)])/2),colorFFFFFF;
DRAWNUMBER(BARPOS=SYSPARAM(1)-SS,(HHC[SYSPARAM(1)]+LLC[SYSPARAM(1)])/2,(HHC[SYSPARAM(1)]+LLC[SYSPARAM(1)])/2,2),PXUP25,colorFF88CC;
DD:PARTLINE(BARPOS>=SYSPARAM(1)-SS,(HHC[SYSPARAM(1)]+LLC[SYSPARAM(1)]*3)/4),POINTDOT,colorFFFF;
EE:PARTLINE(BARPOS>=SYSPARAM(1)-SS,LLC[SYSPARAM(1)]),colorFF;
DRAWNUMBER(BARPOS=SYSPARAM(1)-SS,LLC[SYSPARAM(1)],LLC[SYSPARAM(1)],2),PXUP25,colorFF88CC;


鲜花

握手

雷人

路过

鸡蛋
返回顶部