当前位置: 首页 > 文章教程  > 股票财经 > 炒股公式

飞狐个股强弱主图指标公式

5/13/2018 10:07:05 PM 人评论

个股:=CLOSE/INDEXC*1000,LINETHICK0;A:=(CLOSE/REF(CLOSE,1)-1)*100;B:=(INDEXC/REF(INDEXC,1)-1)*100;涨跌幅:A-B,LINETHICK0,COLORYELLOW;{STICKLINE(CLOSE>=REF(CLOSE,1),ABS(涨跌幅),0,6,0),COLORRED;STICKLINE(CLOSE<REF(CLOSE,1),ABS(涨跌幅),0,6,0),COLORGR…

个股:=CLOSE/INDEXC*1000,LINETHICK0;
A:=(CLOSE/REF(CLOSE,1)-1)*100;
B:=(INDEXC/REF(INDEXC,1)-1)*100;
涨跌幅:A-B,LINETHICK0,COLORYELLOW;
{STICKLINE(CLOSE>=REF(CLOSE,1),ABS(涨跌幅),0,6,0),COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1),ABS(涨跌幅),0,6,0),COLORGREEN;
STICKLINE(CLOSE>=REF(CLOSE,1) AND INDEXC<REF(INDEXC,1) AND 个股>REF(个股,1),ABS(涨跌幅),0,4,0),COLOR00FFFF;
STICKLINE(CLOSE>=REF(CLOSE,1) AND INDEXC>REF(INDEXC,1) AND 个股<REF(个股,1),ABS(涨跌幅),0,4,0),COLORCYAN;
STICKLINE(CLOSE<REF(CLOSE,1) AND INDEXC>REF(INDEXC,1),ABS(涨跌幅),0,4,0),COLORBLUE;
STICKLINE(CLOSE<REF(CLOSE,1) AND INDEXC<REF(INDEXC,1) AND 个股>REF(个股,1),ABS(涨跌幅),0,4,0),COLORMAGENTA;}
BB:=HHV(ABS(涨跌幅),SYSPARAM(3)-SYSPARAM(2));
HH:=SYSPARAM(4);
LL:=SYSPARAM(5);
TT:=IF(HH-LL<=2.5,0.25,IF(HH-LL<=5,0.8,IF(HH-LL<=10,2,IF(HH-LL<=20,3,IF(HH-LL<=31,4,IF(HH-LL<=41,5,IF(HH-LL<=50,6,IF(HH-LL<=60,7,IF(HH-LL<=70,8,IF(HH-LL<=80,9,1))))))))));
{MA(ABS(涨跌幅)/BB*0.9*TT+LL,5)-0.04;
MA(ABS(涨跌幅)/BB*0.9*TT+LL,10)-0.04;
MA(ABS(涨跌幅)/BB*0.9*TT+LL,34)-0.04;}
STICKLINE(C>=REF(C,1),ABS(涨跌幅)/BB*0.9*TT+LL-0.04,LL-0.04,4,1)COLOR9090EE;
STICKLINE(C< REF(C,1 ),ABS(涨跌幅)/BB*0.9*TT+LL-0.04,LL-0.04,4,1)COLORBLUE;
STICKLINE(CLOSE>=REF(CLOSE,1),ABS(涨跌幅)/BB*0.9*TT+LL-0.04,LL-0.04,6,0),COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1),ABS(涨跌幅)/BB*0.9*TT+LL-0.04,LL-0.04,6,0),COLORGREEN;
STICKLINE(CLOSE>=REF(CLOSE,1) AND INDEXC<REF(INDEXC,1) AND 个股>REF(个股,1),ABS(涨跌幅)/BB*0.9*TT+LL-0.04,LL-0.04,4,0),COLOR00FFFF;
STICKLINE(CLOSE>=REF(CLOSE,1) AND INDEXC>REF(INDEXC,1) AND 个股<REF(个股,1),ABS(涨跌幅)/BB*0.9*TT+LL-0.04,LL-0.04,4,0),COLORCYAN;
STICKLINE(CLOSE<REF(CLOSE,1) AND INDEXC>REF(INDEXC,1),ABS(涨跌幅)/BB*0.9*TT+LL-0.04,LL-0.04,4,0),COLORBLUE;
STICKLINE(CLOSE<REF(CLOSE,1) AND INDEXC<REF(INDEXC,1) AND 个股>REF(个股,1),ABS(涨跌幅)/BB*0.9*TT+LL-0.04,LL-0.04,4,0),COLORMAGENTA;
PARTLINE(v>0,2/BB*0.9*TT+LL-0.04),COLORDDFF00,LINEDOT;
STICKLINE(C>=O,C,O,8,0),COLOR0055AA;
STICKLINE(C<=O,C,O,8,0),COLOR006600;
STICKLINE(C>=O,C,O,5,0),COLOR0077CC;
STICKLINE(C>=O,C,O,3,0),COLOR0099DD;
STICKLINE(C>=O,H,L,0,0),COLOR00BBFF;
STICKLINE(C<=O,C,O,5,0),COLOR009900;
STICKLINE(C<=O,C,O,3,0),COLOR00BB00;
STICKLINE(C<=O,H,L,0,0),COLOR00EE00;
A5:=100*(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);
B5:=100*(INDEXC-REF(INDEXC,5))/REF(INDEXC,5);
五日强弱:A5-B5,LINETHICK0L;
A10:=100*(CLOSE-REF(CLOSE,10))/REF(CLOSE,10);
B10:=100*(INDEXC-REF(INDEXC,10))/REF(INDEXC,10);
十日强弱:A10-B10,COLORYELLOW,LINETHICK0;
A30:=100*(CLOSE-REF(CLOSE,30))/REF(CLOSE,30);
B30:=100*(INDEXC-REF(INDEXC,30))/REF(INDEXC,30);
三十日强弱:A30-B30,COLORRED,LINETHICK0;
ma1:EMA(CLOSE,12);
ma2:EMA(CLOSE,26);
PARTLINE(C>=ma1,ma1),COLORRED;
PARTLINE(C<ma1,ma1),COLORGREEN;
PARTLINE(C>=ma2,ma2),COLORRED,LINETHICK2;
PARTLINE(C<ma2,ma2),COLORGREEN,LINETHICK2;
D:=IF(MA1>=MA2,MA1-MA2,MA2-MA1);
PARTLINE(MA1>=MA2 AND MA1>=REF(MA1,1),MA1-D*4/5),COLORRED;
PARTLINE(MA1>=MA2 AND MA1>=REF(MA1,1),MA1-D*3/5),COLORRED;
PARTLINE(MA1>=MA2 AND MA1>=REF(MA1,1),MA1-D*2/5),COLORRED;
PARTLINE(MA1>=MA2 AND MA1>=REF(MA1,1),MA1-D*1/5),COLORRED;
PARTLINE(MA1>=MA2 AND MA1<REF(MA1,1),MA1-D*4/5),COLORYELLOW;
PARTLINE(MA1>=MA2 AND MA1<REF(MA1,1),MA1-D*3/5),COLORYELLOW;
PARTLINE(MA1>=MA2 AND MA1<REF(MA1,1),MA1-D*2/5),COLORYELLOW;
PARTLINE(MA1>=MA2 AND MA1<REF(MA1,1),MA1-D*1/5),COLORYELLOW;
PARTLINE(MA1<MA2 AND MA1<REF(MA1,1),MA2-D*4/5),COLORGREEN;
PARTLINE(MA1<MA2 AND MA1<REF(MA1,1),MA2-D*3/5),COLORGREEN;
PARTLINE(MA1<MA2 AND MA1<REF(MA1,1),MA2-D*2/5),COLORGREEN;
PARTLINE(MA1<MA2 AND MA1<REF(MA1,1),MA2-D*1/5),COLORGREEN;
PARTLINE(MA1<MA2 AND MA1>=REF(MA1,1),MA2-D*4/5),COLORMAGENTA;
PARTLINE(MA1<MA2 AND MA1>=REF(MA1,1),MA2-D*3/5),COLORMAGENTA;
PARTLINE(MA1<MA2 AND MA1>=REF(MA1,1),MA2-D*2/5),COLORMAGENTA;
PARTLINE(MA1<MA2 AND MA1>=REF(MA1,1),MA2-D*1/5),COLORMAGENTA;
指定位置显示文字(1,0,0,0,(' 所属板块:' + BLKNAME) + '\n'),COLOR00FFFF;

飞狐个股强弱主图指标公式

相关教程

  • 飞狐主力净买量指标公式

    A:=VOL*CLOSE;B:=SUM(A,2)/SUM(VOL,2);B1:=EMA(B,7);M:=(B-B1);STICKLINE(M>0,0,M,2,0),COLORRED;STICKLINE(M<0,0,M,2,0),COLORGREEN;主力净买量:M,COLORYELLOW;三日均量:EMA(M,3),COLORWHITE;

    5/13/2018 10:07:24 PM
  • 飞狐MACD与KDJ综合指标公式

    DIFZ:=EMA(C,12)-EMA(C,26);DEAZ:=EMA(DIFZ,9);MACDZ:=8*(DIFZ-DEAZ);RSV:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*247.2-123.6;SQX:=(C-MA(CLOSE,13))*10;DIF:=EMA(MA(SQX,7),1);DEA:=EMA(DIF,7);MACD:=(DIF-DEA)*2;STICKLINE(MACD>0 AND MACD>REF(M…

    5/13/2018 10:07:22 PM
  • 飞狐MACD和KDJ主图指标公式

    INPUT:N(18),S(26),P(12),M(9);DRAWGBK(CLOSE=CLOSE,COLORRGB(80,130,130),COLORRGB(30,30,60),1);A:=EMA(CLOSE,S);T:=EMA(CLOSE,P);B:=EMA(A,M);T1:=EMA(T,M);DEA:=EMA(T-(T1-T),2),COLORFF8866,LINETHICK2;DIFF:=DEA-EMA(((A-B)-(T-T1)),1)*6,COLORFFFF66,LINETHICK2;F…

    5/13/2018 10:07:20 PM
  • 飞狐将军参谋指标公式

    Var1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;Var2:=2*ABS(Var1);Var3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var4:=100-3*SMA((OP…

    5/13/2018 10:07:19 PM

共有条评论 网友评论

验证码: 看不清楚?