人人爽天天爽夜夜爽qc-人人爽天天爽夜夜爽曰-人人天天爱天天做天天摸-人人天天夜夜-色网站在线-色网站在线看

您現在的位置:程序化交易>> 期貨公式>> 博易大師>> 博易大師知識>>正文內容

請博易老師幫忙把MT4指標slope direction line轉換成博易大師代碼,謝謝 [博易POBO]

咨詢內容:

請博易老師幫忙把MT4指標slope direction line轉換成博易大師代碼,謝謝

#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網( www.kzuj.com.cn )br /> 比博易中的多空線與K線轉向的匹配要精準得多 您好,復制以下代碼。
?
A:=2*WMA(C,40)-WMA(C,80);??
PARTLINE2(A,A>REF(A,1),COLORRED,A<REF(A,1),COLORGRAY),LINETHICK2;? 來源 程序化久久網

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 511411198  點擊這里給我發消息進行 有償 編寫!不貴!點擊查看價格!


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

相關文章

    沒有相關內容
主站蜘蛛池模板: h片在线播放免费高清 | 国产成人综合久久综合 | 亚洲免费午夜视频 | 日本xxwwwxxxx18| 日日做夜夜爽夜夜爽 | 羞羞的视频在线免费观看 | 天天操天天干天搞天天射 | 欧美视频综合 | 亚洲欧美一级久久精品 | 成人污| 天天插天天射天天干 | 午夜成a人片在线观看 | 国产午夜毛片一区二区三区 | 国产香蕉一区二区在线观看 | 日本欧美一级二级三级不卡 | 午夜看黄网站免费 | h视频在线观看视频观看 | 亚洲剧场午夜在线观看 | 最新午夜韩国理论片77网 | 老黄色片| 久热精品视频 | 天天操夜夜做 | 黄漫画黄网站在线观看 | 国产高清av在线播放 | 在线免费观看黄 | 五月激情视频 | 日韩在线综合 | 日本精品a在线观看 | 国内精品视频在线播放一区 | 久久精品vr中文字幕 | 最近中文免费字幕在线播放 | 欧美日本日韩aⅴ在线视频 欧美日本免费观看αv片 | 最近新韩国日本免费看 | 插综合网 | 中文无码日韩欧 | 视频在线你懂的 | 天天碰天天摸天天操 | 久久综合九色综合97伊人麻豆 | 国产精品资源在线 | 黄色污污视频 | 亚洲爆乳无码一区二区三区 |