一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

【飛狐】MACD股價(jià)推算

 agoha 2015-09-08
 參數(shù):j1 為(1000,-1000,2000)
DIF:(EMA(c,12)-EMA(c,26));
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
DEA1:=2/10*DIF+8/10*EMA(REF(DIF,1),9);
Tsmacd:=2*DIF-2*DEA1;
MACD1:=MACD;   MACD昨:=ref(Tsmacd,1);  Macdx:=if(j1=-999,macd1,if(j1=-1000,MACD昨,j1));
股價(jià):=351/28*(10/16*macdx+ema(ref(dif,1),9)-11/13*EMA(REF(c,1),12)+25/27*EMA(REF(c,1),26));
DRAWTEXT(j1=-999 and Islastbar ,dif ,'設(shè)J=-999,所演即時(shí)股價(jià);'+NUMTOSTR(股價(jià),2)+'                               ' ),colorc0c0c0,ALIGN2;

本帖隱藏的內(nèi)容

DRAWTEXT(j1=-1000 and Islastbar ,dif ,'設(shè)J=-1000,J線拐頭股價(jià);'+NUMTOSTR(股價(jià),2)+'                                ' ),colorc0c0c0,ALIGN2;
DRAWTEXT(j1=Macdx and Islastbar ,dif ,'設(shè)J=自定義,J線達(dá)標(biāo)臨界股價(jià);'+NUMTOSTR(股價(jià),2)+'                          ' ),colorc0c0c0,ALIGN2;




山丘村長(zhǎng)先生的公式:

黃線是金叉死叉反推價(jià),白線是diff反推價(jià),紫線是macd反推價(jià)。

各代碼如下:

參數(shù): short(12,1,100,1) long(26,1,100,1) M(9,1,100,1)

DIFF :=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA  :=EMA(DIFF,M);
MACD :=2*(DIFF-DEA);
jcsc:=(M-1)/(M+1)*dea/(1-2/(m+1));{計(jì)算出金叉死叉時(shí)的Diff值}
dd:=(macd/2+(dea*(m-1)/(M+1)))/(1-2/(m+1));{計(jì)算出明日macd=macd時(shí)的Diff值}
xx:(diff*(short+1)*(long+1)-(long+1)*(short-1)*ema(c,short)+(short+1)*(long-1)*ema(c,long))/(2*((long+1)-(short+1)));{計(jì)算今日Diff=diff的對(duì)應(yīng)股價(jià)}
js:(jcsc*(short+1)*(long+1)-(long+1)*(short-1)*ema(c,short)+(short+1)*(long-1)*ema(c,long))/(2*((long+1)-(short+1)));{計(jì)算金叉死叉的對(duì)應(yīng)股價(jià)}
ddd:(dd*(short+1)*(long+1)-(long+1)*(short-1)*ema(c,short)+(short+1)*(long-1)*ema(c,long))/(2*((long+1)-(short+1)));{計(jì)算macd柱體變向時(shí)的對(duì)應(yīng)股價(jià)}


{改山丘村長(zhǎng)反向推算macd 便于看盤(pán)
macd參數(shù)長(zhǎng)短自己改就是了}

input: short (12,1,20), long(26,1,60),M(9,1,30);
DIFF: EMA(CLOSE, short)-EMA(CLOSE, long ),color0066ff,LINETHICK1;
{partline(DIFF,DIFF>=ref(DIFF,1),rgb(255,0,0),DIFF<ref(DIFF,1),rgb(0,255,0)),linethick1;}
DEA:EMA(DIFF,M),COLOR00BB00,LINETHICK1;
MACD: (DIFF-DEA)*2,COLORSTICK;
{partline(DIFF,DIFF>=ref(DIFF,1),rgb(255,0,0),DIFF<ref(DIFF,1),rgb(0,255,0)),linethick2;
FILLRGN(DIFF,DEA,DIFF>DEA,rgb(255,0,0),DIFF<DEA,rgb(0,255,0)),linethick2;}
{中軸:0,LAYER0,Coloreeeeee,LINETHICK1;}
jcsc:=(M-1)/(M+1)*dea/(1-2/(m+1));{計(jì)算出金叉死叉時(shí)的Diff值}
dd:=(macd/2+(dea*(m-1)/(M+1)))/(1-2/(m+1));{計(jì)算出明日macd=macd時(shí)的Diff值}
xx:=(diff*(short+1)*(long+1)-(long+1)*(short-1)*ema(c,short)+(short+1)*(long-1)*ema(c,long))/(2*((long+1)-(short+1)));{計(jì)算今日Diff=diff的對(duì)應(yīng)股價(jià)}
js:=(jcsc*(short+1)*(long+1)-(long+1)*(short-1)*ema(c,short)+(short+1)*(long-1)*ema(c,long))/(2*((long+1)-(short+1)));{計(jì)算金叉死叉的對(duì)應(yīng)股價(jià)}
ddd:=(dd*(short+1)*(long+1)-(long+1)*(short-1)*ema(c,short)+(short+1)*(long-1)*ema(c,long))/(2*((long+1)-(short+1)));{計(jì)算macd柱體變向時(shí)的對(duì)應(yīng)股價(jià)};

DRAWTEXTEX(c,3,0,400,'DIFF拐頭股價(jià):'+NUMTOSTR(xx,2)),ColorFFFFFF,LINETHICK3;
DRAWTEXTEX(c,175,0,0,'MACD柱體變向?qū)?yīng)股價(jià):'+NUMTOSTR(ddd,2)),Color00A5FF,LINETHICK3;
DRAWTEXTEX(c,410,0,800,'金叉死叉對(duì)應(yīng)股價(jià):'+NUMTOSTR(js,2)),COLOR00BB00,LINETHICK3;
{PARTLINE(DIFF,CROSS(DIFF,DEA) AND DIFF<-0.2,RGB(255,245,12)),CROSSDOT,LINETHICK5;
PARTLINE(DIFF,CROSS(DIFF,DEA) AND DIFF>0,RGB(252,24,212)),CROSSDOT,LINETHICK5;
PARTLINE(DIFF,CROSS(DIFF,DEA) AND DIFF>-0.2 AND DIFF<0,RGB(200,80,20)),CROSSDOT,LINETHICK7;
PARTLINE(DIFF,CROSS(DEA,DIFF) AND DIFF>0,RGB(125,245,252)),CIRCLEDOT,LINETHICK5;}




    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶(hù)發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶(hù) 評(píng)論公約

    類(lèi)似文章 更多

    国产亚洲午夜高清国产拍精品| 国产精品久久男人的天堂| 中文字幕日韩无套内射| 欧美一区二区三区喷汁尤物| 一区二区三区日韩中文| 黄片免费播放一区二区| 亚洲熟女乱色一区二区三区| 亚洲女同一区二区另类| 亚洲一区二区三区有码| 午夜国产成人福利视频| 又色又爽又黄的三级视频| 国产亚洲不卡一区二区| 亚洲高清中文字幕一区二区三区| 午夜亚洲少妇福利诱惑| 久久少妇诱惑免费视频| 国产午夜在线精品视频| 国产综合香蕉五月婷在线| 国产又粗又猛又爽色噜噜| 一级片二级片欧美日韩| 国产精品亚洲一区二区| 亚洲天堂有码中文字幕视频| 一个人的久久精彩视频| 国内欲色一区二区三区| 男人和女人干逼的视频| 亚洲av日韩一区二区三区四区| 国产中文字幕一区二区| 久久精品久久久精品久久| 99久只有精品免费视频播放| 日韩免费成人福利在线| 国产午夜精品在线免费看| 91亚洲精品综合久久| 精品人妻久久一品二品三品| 欧美成人久久久免费播放| 日韩午夜福利高清在线观看| 91熟女大屁股偷偷对白| 九九热精彩视频在线播放| 人人妻人人澡人人夜夜| 国产丝袜极品黑色高跟鞋| 东北老熟妇全程露脸被内射| 一区二区不卡免费观看免费| 中文字幕日韩精品人一妻|