飞狐大赚主图指标公式是什么?附:飞狐交易师常见问题解答
2016-4-22 14:42:15 股票入门 http://rumen.southmoney.com
飞狐大赚主图指标公式是什么?附:飞狐上证深证股票时显示对应指数副图 南方财富网小编为您提供
【飞狐大赚主图指标公式】
佣金:=0.5;
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA), COLORSTICK;
EXPLAIN(1, STRMID(STKLABEL,1,6)),LINETHICK;
进价:=SELFDATA('持仓股');
股数:=SELFDATA('持仓量');
买入价:进价,LINETHICK,COLORFFFFFF;
保本价:进价*(1.001+佣金*2/1000)+0.001,LINETHICK,COLOR00FF00;//默认佣金:万分之五 调整到自己的实际佣金
盈亏:(DYNAINFO( 7)-保本价)*股数,LINETHICK,COLORFFFF;//保本价=进价*(印花税+佣金*2/1000)+0.001(过户费 可不计入)
每股盈亏:(DYNAINFO( 7)-保本价),LINETHICK,COLORFFFFFF;
A:=BARPOS; B:=DATACOUNT; A2:=SYSPARAM(2); A3:=SYSPARAM(3); HM:=A3-A2;
HQ:=HHV(HIGH,HM);
LQ:=LLV(LOW,HM);
ZH:=HQ[B];
ZL:=LQ[B];
Q:=(ZH-ZL)/10;
MM:=HM/100;
DW:=A=A3-ROUND(MM*95);
DRAWTEXT(DW, 0.15 ,'买入价'+NUMTOSTR(进价,2)+' 持仓量'+NUMTOSTR(股数,0)),COLORFFFFFF,ALIGN1;
DRAWTEXT(DW, -0.15 ,'保本价'+NUMTOSTR(保本价,2)+' 总盈亏'+NUMTOSTR(盈亏,2)),COLORFFFFFF,ALIGN5;
附:【飞狐上证深证股票时显示对应指数副图】
实现当看600开头的股票时显示上证指数副图,看00开头的股票时显示深证指数副图。
DRAWGBK(CLOSE, COLORRGB(50,100,50), COLORRGB(50,100,50),1);
TC:=STRCMP(MARKETLABEL,'SH')=0;
CC:if(tc=1,"SH000001$CLOSE","SZ399001$CLOSE"),LINETHICK;
OO:if(tc=1,"SH000001$OPEN","SZ399001$OPEN"),LINETHICK;
HH:if(tc=1,"SH000001$HIGH","SZ399001$HIGH"),LINETHICK;
LL:if(tc=1,"SH000001$LOW","SZ399001$LOW"),LINETHICK;
STICKLINE(OO>=CC ,CC ,OO,8,0 ),COLOR777700;
STICKLINE(OO>=CC ,CC ,OO,7,0 ),COLOR999900;
STICKLINE(OO>=CC ,CC ,OO,5,0 ),COLORbbbb00;
STICKLINE(OO>=CC ,CC ,OO,3,0 ),COLORdddd00;
STICKLINE(OO>=CC ,HH,LL,1 ,0 ),COLORffff00;
STICKLINE(CC>OO ,CC,OO,8,0) ,COLOR000077;
STICKLINE(CC>OO ,CC,OO,7,0) ,COLOR000099;
STICKLINE(CC>OO ,CC,OO,5,0) ,COLOR0000bb;
STICKLINE(CC>OO ,CC,OO,3,0) ,COLOR0000dd;
STICKLINE(CC>OO ,HH,LL,1,0 ),COLOR0000FF;
MA5:MA(CC,5),COLOR00FFFF;
MA10:MA(CC,10),COLORFFFF00;
MA20:MA(CC,20),COLOR00FF00;
MA30:MA(CC,30),COLOR0000FF;
MA40:MA(CC,40),COLOR009FFF;
MA60:MA(CC,60),COLORFF0000;
MA120:MA(CC,120),COLORFF00FF;
MA250:MA(CC,250),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,MA5,' '+NUMTOSTR(MA5,2)),COLOR00FFFF;
DRAWTEXT(ISLASTBAR,MA10,' '+NUMTOSTR(MA10,2)),COLORFFFF00;
DRAWTEXT(ISLASTBAR,MA20,' '+NUMTOSTR(MA20,2)),COLOR00FF00;
DRAWTEXT(ISLASTBAR,MA30,' '+NUMTOSTR(MA30,2)),COLOR0000FF;
DRAWTEXT(ISLASTBAR,MA40,' '+NUMTOSTR(MA40,2)),COLOR009FFF;
DRAWTEXT(ISLASTBAR,MA60,' '+NUMTOSTR(MA60,2)),COLORFF0000;
DRAWTEXT(ISLASTBAR,MA120,' '+NUMTOSTR(MA120,2)),COLORFF00FF;
DRAWTEXT(ISLASTBAR,MA250,' '+NUMTOSTR(MA250,2)),COLORFFFFFF;
更多飞狐指标公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。