「翔博精选指标」顶底判断
2022-03-27原创 编 辑:翔博软件
{公式名称: 顶底判断
公式描述: DDPD
无参数
公式类型: 技术指标公式-其他类型
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:无
公式源码:}
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:=100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9));
VAR3:=SMA(VAR2,9,1)+100;
VAR4:=SMA(VAR1,3,1);
VAR5:=SMA(VAR4,3,1)+100;
顶底线:VAR5-VAR3+50,COLORWHITE,LINETHICK2;
底线:10,COLORWHITE;
强弱线:50,POINTDOT,COLORGREEN;
天线:100,COLORCYAN,LINETHICK2;
VAR6:=(CLOSE+LOW+HIGH)/3;
VAR7:=EMA(VAR6,6);
VAR8:=EMA(VAR7,5);
VAR9:=CROSS(VAR7,VAR8);
买入:IF(CROSS(VAR7,VAR8),60,0),COLORRED,LINETHICK2;
{DRAWTEXT(CROSS(买入,8),64,27),COLORRED;}
STICKLINE(REF(顶底线,1)<顶底线,顶底线,REF(顶底线,1),3.5,0),COLOR117777;
STICKLINE(REF(顶底线,1)<顶底线,顶底线,REF(顶底线,1),2.8,0),COLOR119999;
STICKLINE(REF(顶底线,1)<顶底线,顶底线,REF(顶底线,1),2,0),COLOR11BBBB;
STICKLINE(REF(顶底线,1)<顶底线,顶底线,REF(顶底线,1),1.2,0),COLOR11DDDD;
STICKLINE(REF(顶底线,1)<顶底线,顶底线,REF(顶底线,1),0.4,0),COLOR44FFFF;
STICKLINE(REF(顶底线,1)>顶底线,顶底线,REF(顶底线,1),3.5,0),COLORFF2200;
STICKLINE(REF(顶底线,1)>顶底线,顶底线,REF(顶底线,1),2.8,0),COLORFF4400;
STICKLINE(REF(顶底线,1)>顶底线,顶底线,REF(顶底线,1),2,0),COLORFF6600;
STICKLINE(REF(顶底线,1)>顶底线,顶底线,REF(顶底线,1),1.2,0),COLORFF8800;
STICKLINE(REF(顶底线,1)>顶底线,顶底线,REF(顶底线,1),0.4,0),COLORFFAA00;
VAR10:=LLV(LOW,33);
VAR11:=HHV(HIGH,21);
VAR12:=EMA((CLOSE-VAR10)/(VAR11-VAR10)*100,10)*(-1)+100;
VAR13:=100-EMA(0.191*REF(VAR12,1)+0.809*VAR12,1);
VAR14:=LLV(LOW,17);
VAR15:=SMA(ABS(LOW-REF(LOW,1)),17,1);
VAR16:=SMA(MAX(LOW-REF(LOW,1),0),17,2);
VAR17:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;
STICKLINE(CROSS(VAR17,0),30,0,3,0),COLORYELLOW;
STICKLINE(CROSS(VAR17,0),55,0,1,0),COLORLIBLUE;
STICKLINE(CROSS(VAR17,0),80,0,0.03,0),COLORRED;
{DRAWTEXT(CROSS(VAR17,0),83,28),COLORYELLOW;}
VAR18:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);
VAR19:=MA((VAR18-REF(VAR18,1))/REF(VAR18,1)*100,2);
VAR20:=MA((VAR18-REF(VAR18,1))/REF(VAR18,1)*100,1);
STICKLINE(VAR20>VAR19 AND VAR20<0,10,0,1,1),COLORYELLOW;
VAR21:=STICKLINE(VAR20>VAR19 AND VAR20<0,10,0,1,1)=1;
VAR22:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR23:=SMA(VAR22,9,1)+100;
VAR24:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR25:=SMA(VAR24,3,1);
VAR26:=SMA(VAR25,3,1)+100;
VAR27:=VAR26-VAR23;
VAR28:=REF(LOW,1);
VAR29:=SMA(ABS(LOW-VAR28),3,1)/SMA(MAX(LOW-VAR28,0),3,1)*100;
VAR30:=EMA(IF(CLOSE*1.3,VAR29*10,VAR29/10),3);
VAR31:=LLV(LOW,30);
VAR32:=HHV(VAR30,30);
VAR33:=IF(MA(CLOSE,58),1,0);
VAR34:=EMA(IF(LOW<=VAR31,(VAR30+VAR32*2)/2,0),3)/999*VAR33;
VAR35:=CROSS(82,RSI.RSI1);
STICKLINE(VAR35,100,85,3.5,0),COLORMAGENTA;
STICKLINE(VAR35,100,80,2.5,0),COLOR990099;
STICKLINE(VAR35,100,55,0.05,0),COLORCYAN;
STICKLINE(VAR35,100,80,1.1,0),COLORDD00DD;
STICKLINE(VAR35,100,80,0.7,0),COLORMAGENTA;
STICKLINE(VAR35,100,80,0.4,0),COLORMAGENTA;
STICKLINE(VAR35,100,80,0.08,0),COLORCYAN;
DRAWICON(VAR35>0,88,35),COLORGREEN;
{DRAWICON(VAR35>0,87,35),COLORGREEN;
DRAWICON(VAR35>0,86,35),COLORGREEN;
DRAWICON(VAR35>0,85,35),COLORGREEN;
DRAWICON(VAR35>0,84,35),COLORGREEN;
DRAWICON(VAR35>0,83,35),COLORGREEN;
DRAWICON(VAR35>0,82,35),COLORGREEN;
DRAWICON(VAR35>0,81,35),COLORGREEN;
DRAWICON(VAR35>0,80,35),COLORGREEN;
DRAWICON(VAR35>0,79,35),COLORGREEN;
DRAWICON(VAR35>0,78,35),COLORGREEN;
DRAWICON(VAR35>0,77,35),COLORGREEN;
DRAWICON(VAR35>0,76,35),COLORGREEN;
DRAWICON(VAR35>0,75,35),COLORGREEN;
DRAWICON(VAR35>0,75,6),COLORGREEN;}
{DRAWTEXT(CROSS(VAR35,0.5),55,29),COLORLIBLUE;};