%> 飞狐短线主图指标公式_股票资源网
飞狐短线主图指标公式 2588

input:P1(20,0,300),P2(65,0,300),P3(98,0,300),A1(2,0,100),A2(3,0,100),A3(4,0,100),A4(5,0,100),B1(5,0,100),B2(6,0,100),B3(7,0,100),B4(8,0,100);

GAO:MA(HIGH,12),LINETHICK2,color111111;

DI:MA(LOW,12),LINETHICK2,color111111;

MAR2:MA(CLOSE,60),LINETHICK5,color6600;

PARTLINE(CLOSE>MAR2,MAR2),POINTDOT,LINETHICK5,color6600CC;

FILLRGN(GAO>REF(GAO,1) AND (GAO+DI)/2>REF((GAO+DI)/2,1),GAO,DI),color6600CC;

FILLRGN(GAO<REF(GAO,1) AND DI<REF(DI,1),GAO,DI),color6600;

多空区间:IF(REF(SMA((CLOSE- LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),2)>REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),2) AND REF(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),1)>REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),1) AND SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1)<SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),HIGH,IF(REF(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),2)<REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),2) AND REF(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),1)<REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),1) AND SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1)>SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),LOW,IF((BARSLAST(REF(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),2)>REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),2) AND REF(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),1)>REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),1) AND SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1)<SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1)))<(BARSLAST(REF(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),2)<REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),2) AND REF(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),1)<REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),1) AND SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1)>SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1))),REF(HIGH,BARSLAST(REF(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),2)>REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),2) AND REF(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),1)>REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),1) AND SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1)<SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1))),REF(LOW,BARSLAST(REF(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),2)<REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),2) AND REF(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),1)<REF(SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1),1) AND SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1)>SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1)))))),LINETHICK2,color111111;

PARTLINE(多空区间<=CLOSE,多空区间),LINETHICK2,colorFF;

PARTLINE(多空区间>CLOSE,多空区间),LINETHICK2,color339900;

关键点:=多空区间;

STICKLINE(CLOSE<=关键点,OPEN,LOW,0,0),colorFFFF33;

STICKLINE(CLOSE>关键点,OPEN,CLOSE,8,0),colorAA;

STICKLINE(CLOSE>关键点,OPEN,CLOSE,7,0),color11AA;

STICKLINE(CLOSE>关键点,OPEN,CLOSE,6,0),colorBB;

STICKLINE(CLOSE>关键点,OPEN,CLOSE,5,0),colorCC;

STICKLINE(CLOSE>关键点,OPEN,CLOSE,4,0),color11DD;

STICKLINE(CLOSE>关键点,OPEN,CLOSE,3,0),color22EE;

STICKLINE(CLOSE>关键点,OPEN,CLOSE,2,0),color33FF;

STICKLINE(CLOSE>关键点,OPEN,CLOSE,1,0),color33FF;

STICKLINE(CLOSE>关键点,HIGH,CLOSE,1,0),color11FF;

STICKLINE(CLOSE>关键点,HIGH,CLOSE,0,0),colorFFFF;

STICKLINE(CLOSE>关键点,OPEN,LOW,1,0),color11FF;

STICKLINE(CLOSE>关键点,OPEN,LOW,0,0),colorFFFF;

STICKLINE(CLOSE<=关键点,OPEN,CLOSE,8,0),color8800;

STICKLINE(CLOSE<=关键点,OPEN,CLOSE,7,0),color9900;

STICKLINE(CLOSE<=关键点,OPEN,CLOSE,6,0),colorAA11;

STICKLINE(CLOSE<=关键点,OPEN,CLOSE,5,0),colorBB11;

STICKLINE(CLOSE<=关键点,OPEN,CLOSE,4,0),colorCC22;

STICKLINE(CLOSE<=关键点,OPEN,CLOSE,3,0),colorDD22;

STICKLINE(CLOSE<=关键点,OPEN,CLOSE,2,0),colorEE33;

STICKLINE(CLOSE<=关键点,OPEN,CLOSE,1,0),colorFF33;

STICKLINE(CLOSE<=关键点,HIGH,CLOSE,1,0),colorFF0000;

STICKLINE(CLOSE<=关键点,HIGH,CLOSE,0,0),colorFFFF33;

STICKLINE(CLOSE<=关键点,OPEN,LOW,1,0),colorFF0000;

STICKLINE(CLOSE<=关键点,OPEN,LOW,0,0),colorFFFF33;

AA:=REF(HIGH,5)=HHV(HIGH,2*5+1);

BB:=BACKSET(AA,5+1);

CC:=FILTER(BB,5) AND HIGH=HHV(HIGH,5+1);

DRAWICON(CC AND ISLASTBAR=1,HIGH*1.01,10);

AA2:=REF(LOW,5)=LLV(LOW,2*5+1);

BB2:=BACKSET(AA2,5+1);

CC2:=FILTER(BB2,5) AND LOW=LLV(LOW,5+1);

DRAWICON(CC2 AND ISLASTBAR=1,LOW*0.998,11);

GG:=ISLASTBAR=1 AND REF(CC,BARSLAST(CC));

HH:=BACKSET(GG,BARSLAST(CC)+1);

II:=HH>REF(HH,1);

JJ:=REF(BARSLAST(CC),1);

KK:=BACKSET(II,JJ+2);

LL:=KK>REF(KK,1);

DRAWLINE(LL,HIGH,II,HIGH,1),LINETHICK1,color6600CC;

GG2:=ISLASTBAR=1 AND REF(CC2,BARSLAST(CC2));

HH2:=BACKSET(GG2,BARSLAST(CC2)+1);

II2:=HH2>REF(HH2,1);

JJ2:=REF(BARSLAST(CC2),1);

KK2:=BACKSET(II2,JJ2+2);

LL2:=KK2>REF(KK2,1);

DRAWLINE(LL2,LOW,II2,LOW,1),LINETHICK1,color6600;

DRAWICON(CROSS(CLOSE,多空区间+10),LOW*0.999,1);

DRAWICON(CROSS(多空区间-10,CLOSE),HIGH*1.0015,2);

开盘:DYNAINFO(4),LINETHICK1,color99FF;

YY:(MA(CLOSE,A1)+MA(CLOSE,A2)+MA(CLOSE,A3)+MA(CLOSE,A4))/4,colorFF00;

VV:(MA(CLOSE,B1)+MA(CLOSE,B2)+MA(CLOSE,B3)+MA(CLOSE,B4))/4,LINETHICK2,colorFF00;

WW:=(MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16)+MA(CLOSE,32))/4;

PARTLINE(YY>REF(YY,1),YY),color11FF;

PARTLINE(VV>REF(VV,1),VV),LINETHICK2,color11FF;

MA1:=MA(CLOSE,P1);

MA2:=MA(CLOSE,P2);

MA3:=MA(CLOSE,P3);

A:=SMA(SMA((CLOSE-LLV(LOW,243))/(HHV(HIGH,243)-LLV(LOW,243))*100,7,1),5,1);

B:=SMA((CLOSE-LLV(LOW,243))/(HHV(HIGH,243)-LLV(LOW,243))*100,7,1)*16.18-A*12;

D:=CROSS(B,A);

LC:=REF(CLOSE,1);

RSI:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1))*100;

E:=CROSS(83,RSI);


 

{股票教程网-http://gpzyw.net承接通达信软件和公式破解,普通加密破解,完全加密破解,导入密码破解,时间限制破解,公式编写,可按您的要求写公式指标,价格按难度不同报价,有需要可以找我们}