您現(xiàn)在的位置:程序化交易>> 期貨公式>> 博易大師>> 博易大師知識>>正文內(nèi)容

請博易老師幫忙把MT4指標(biāo)slope direction line轉(zhuǎn)換成博易大師代碼,謝謝 [博易POBO]

咨詢內(nèi)容:

請博易老師幫忙把MT4指標(biāo)slope direction line轉(zhuǎn)換成博易大師代碼,謝謝

#property copyright "MT4 release WizardSerg <wizardserg@mail.ru>, ?? ??????? ForexMagazine #104"
#property link????? "wizardserg@mail.ru"

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 LightBlue
#property indicator_color2 Tomato
//---- input parameters
extern int?????? period=80;
extern int?????? method=3;???????????????????????? // MODE_SMA
extern int?????? price=0;????????????????????????? // PRICE_CLOSE
//---- buffers
double Uptrend[];
double Dntrend[];
double ExtMapBuffer[];


//+------------------------------------------------------------------+
//| Custom indicator initialization function???????????????????????? |
//+------------------------------------------------------------------+
int init()
{
??? IndicatorBuffers(3); ?
??? SetIndexBuffer(0, Uptrend);
??? //ArraySetAsSeries(Uptrend, true);
??? SetIndexBuffer(1, Dntrend);
??? //ArraySetAsSeries(Dntrend, true);
??? SetIndexBuffer(2, ExtMapBuffer);
??? ArraySetAsSeries(ExtMapBuffer, true);
?? ?
??? SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,2);
??? SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,2);
?? ?
??? IndicatorShortName("Slope Direction Line("+period+")");
??? return(0);
}

//+------------------------------------------------------------------+
//| Custor indicator deinitialization function?????????????????????? |
//+------------------------------------------------------------------+
int deinit()
{
??? // ???? ????? ?????? ??????
??? return(0);
}

//+------------------------------------------------------------------+
//| ?????????? ????????????????????????????????????????????????????? |
//+------------------------------------------------------------------+
double WMA(int x, int p)
{
??? return(iMA(NULL, 0, p, 0, method, price, x));?? ?
}

//+------------------------------------------------------------------+
//| Custom indicator iteration function????????????????????????????? |
//+------------------------------------------------------------------+
int start()
{
??? int counted_bars = IndicatorCounted();
?? ?
??? if(counted_bars < 0)
??????? return(-1);
???????????????? ?
??? int x = 0;
??? int p = MathSqrt(period);???????????? ?
??? int e = Bars - counted_bars + period + 1;
?? ?
??? double vect[], trend[];
?? ?
??? if(e > Bars)
??????? e = Bars;?? ?

??? ArrayResize(vect, e);
??? ArraySetAsSeries(vect, true);
??? ArrayResize(trend, e);
??? ArraySetAsSeries(trend, true);
?? ?
??? for(x = 0; x < e; x++)
??? {
??????? vect[x] = 2*WMA(x, period/2) - WMA(x, period);?????? ?
?//?????? Print("Bar date/time: ", TimeToStr(Time[x]), " close: ", Close[x], " vect[", x, "] = ", vect[x], " 2*WMA(p/2) = ", 2*WMA(x, period/2), " WMA(p) = ",? WMA(x, period));?來源:程序化99網(wǎng)( www.tumamayizhan.com )br /> 比博易中的多空線與K線轉(zhuǎn)向的匹配要精準(zhǔn)得多 您好,復(fù)制以下代碼。
?
A:=2*WMA(C,40)-WMA(C,80);??
PARTLINE2(A,A>REF(A,1),COLORRED,A<REF(A,1),COLORGRAY),LINETHICK2;? 來源 程序化久久網(wǎng)

 

有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友

可聯(lián)系技術(shù)人員 QQ: 511411198  點(diǎn)擊這里給我發(fā)消息進(jìn)行 有償 編寫!不貴!點(diǎn)擊查看價(jià)格!


【字體: 】【打印文章】【查看評論

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 下樱桃视频入口在线观看| 亚洲精品无码不卡| 国产精品jizz在线观看直播 | 亚洲色图激情文学| 精品无码久久久久久久动漫| 国产在线一区二区三区av| 波多野结衣33| 国产精品视频yuojizz| eeuss影院www天堂免费| 岳的大白屁股光溜溜| 中文字幕无码av激情不卡| 日韩乱码人妻无码中文字幕视频 | 国内揄拍高清国内精品对白 | 999影院成人在线影院| 女人色毛片女人色毛片中国| 中国体育生gary飞机| 搞av.com| 久久99国产精品久久99小说| 日本无遮挡边做边爱边摸| 久久综合九色综合欧美狠狠| 樱花草在线社区www韩国| 亚洲国产精品尤物yw在线观看| 欧美香蕉爽爽人人爽| 亚洲精品视频在线播放| 用手指搅乱吧~打烊后的...| 再深点灬舒服灬太大了快点h视频| 色天使久久综合给合久久97色| 国产亚洲欧美视频| 青青草a国产免费观看| 欧美xxxx性猛交bbbb| 哆啦a梦エロ本| 老色鬼久久亚洲av综合| 国产中文在线视频| 视频一区精品自拍| 国产免费黄色片| 隔壁老王国产在线精品| 国产人澡人澡澡澡人碰视频| 跳d放在里面逛超市的视频| 国产产在线精品亚洲AAVV| 青青草在视线频久久| 国产偷国产偷亚洲高清人|