大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人

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

請(qǐng)問(wèn)怎么把MT4的MACD單線(xiàn)指標(biāo)修改成博易的指標(biāo);謝謝 [博易POBO]

咨詢(xún)內(nèi)容:

請(qǐng)問(wèn)怎么把MT4的MACD單線(xiàn)指標(biāo)修改成博易的指標(biāo);謝謝

//+------------------------------------------------------------------+
//|????????????????????????????????????????????????? Custom MACD.mq4 |
//|?????????????????? Copyright 2005-2014, MetaQuotes Software Corp. |
//|????????????????????????????????????????????? http://www.mql4.com |
//+------------------------------------------------------------------+
#property copyright?? "2005-2014, MetaQuotes Software Corp."
#property link??????? "http://www.mql4.com"
#property description "Moving Averages Convergence/Divergence"
#property strict

#include <MovingAverages.mqh>

//--- indicator settings
#property? indicator_separate_window
#property? indicator_buffers 2
#property? indicator_color1? Silver
#property? indicator_color2? Red
#property? indicator_width1? 2
//--- indicator parameters
input int InpFastEMA=12;?? // Fast EMA Period
input int InpSlowEMA=26;?? // Slow EMA Period
input int InpSignalSMA=9;? // Signal SMA Period
//--- indicator buffers
double??? ExtMacdBuffer[];
double??? ExtSignalBuffer[];
//--- right input parameters flag
bool????? ExtParameters=false;

//+------------------------------------------------------------------+
//| Custom indicator initialization function???????????????????????? |
//+------------------------------------------------------------------+
int OnInit(void)
? {
?? IndicatorDigits(Digits+1);
//--- drawing settings
?? SetIndexStyle(0,DRAW_HISTOGRAM);
?? SetIndexStyle(1,DRAW_LINE);
?? SetIndexDrawBegin(1,InpSignalSMA);
//--- indicator buffers mapping
?? SetIndexBuffer(0,ExtMacdBuffer);
?? SetIndexBuffer(1,ExtSignalBuffer);
//--- name for DataWindow and indicator subwindow label
?? IndicatorShortName("MACD("+IntegerToString(InpFastEMA)+","+IntegerToString(InpSlowEMA)+","+IntegerToString(InpSignalSMA)+")");
?? SetIndexLabel(0,"MACD");
?? SetIndexLabel(1,"Signal");
//--- check for input parameters
?? if(InpFastEMA<=1 || InpSlowEMA<=1 || InpSignalSMA<=1 || InpFastEMA>=InpSlowEMA)
???? {
????? Print("Wrong input parameters");
????? ExtParameters=false;
????? return(INIT_FAILED);
???? }
?? else
????? ExtParameters=true;
//--- initialization done
?? return(INIT_SUCCEEDED);
? }
//+------------------------------------------------------------------+
//| Moving Averages Convergence/Divergence?????????????????????????? |
//+------------------------------------------------------------------+
int OnCalculate (const int rates_total,
???????????????? const int prev_calculated,
???????????????? const datetime& time[],
???????????????? const double& open[],
???????????????? const double& high[],
???????????????? const double& low[],
???????????????? const double& close[],
???????????????? const long& tick_volume[],
???????????????? const long& volume[],
???????????????? const int& spread[])
? {
?? int i,limit;
//---
?? if(rates_total<=InpSignalSMA || !ExtParameters)
????? return(0);
//--- last counted bar will be recounted
?? limit=rates_total-prev_calculated;
?? if(prev_calculated>0)
????? limit++;
//--- macd counted in the 1-st buffer
?? for(i=0; i<limit; i++)
????? ExtMacdBuffer[i]=iMA(NULL,0,InpFastEMA,0,MODE_EMA,PRICE_CLOSE,i)-
??????????????????? iMA(NULL,0,InpSlowEMA,0,MODE_EMA,PRICE_CLOSE,i);
//--- signal line counted in the 2-nd buffer
?? SimpleMAOnBuffer(rates_total,prev_calculated,0,InpSignalSMA,ExtMacdBuffer,ExtSignalBuffer);
//--- done
?? return(rates_total);
? }
//+------------------------------------------------------------------+

?

?來(lái)源:程序化99網(wǎng)( m.weiqiv.net.cn )

博易技術(shù)人員: DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA ?:= EMA(DIFF,9);?
MACD : DIFF-DEA, COLORSTICK; 謝謝回復(fù),但是效果還不一樣,我想dea線(xiàn)在零軸下方,紅綠柱也在零柱下方,dea線(xiàn)在零軸上方,紅綠柱也在零柱上方,圖片中的效果 來(lái)源 程序化久久網(wǎng)

 

有思路,想編寫(xiě)各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友

可聯(lián)系技術(shù)人員 QQ: 262069696  點(diǎn)擊在線(xiàn)交流或微信號(hào):cxh99cxh99  進(jìn)行 有償收費(fèi) 編寫(xiě)!

怎么收費(fèi),代編流程等詳情請(qǐng)點(diǎn)擊閱讀!

(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無(wú)法通過(guò)。謝謝您!)


【字體: 】【打印文章】【查看評(píng)論

相關(guān)文章

    沒(méi)有相關(guān)內(nèi)容
主站蜘蛛池模板: 亚洲第九十七页 | 日韩精品一区二区三区视频 | 五月婷婷在线视频观看 | 亚洲国产人久久久成人精品网站 | 国产精品亚欧美一区二区三区 | 久久99精品久久久久久首页 | 久久精品a | 久久久久欧美国产精品 | 日韩在线观看中文字幕 | 天天久久综合 | 中文字幕一区二区三区四区五区人 | 欧美色插| 综合色图 | 日本综合视频 | 欧美色综合 | 久久国产乱子伦精品在 | 四虎最新免费网址 | 精品综合久久久久久99 | 成年午夜视频免费观看视频 | 一区二区三区精品国产欧美 | 黄片毛片大全 | 天天综合在线视频 | 四虎免费网址 | 久久日本精品国产精品白 | 免费人成激情视频在线看 | 男女啪网站 | 国产精品久久一区一区 | 国产九九 | 日本高清中文字幕一区二区三区a | 日韩欧美亚洲每的更新在线 | 5060网永久免费一级毛片 | 欧美日韩国产在线观看 | 国产成人夜色91 | 亚洲精品一区二区久久这里 | 香蕉久久高清国产精品免费 | 久久国产亚洲精品麻豆 | 亚洲视频免费播放 | 亚洲一区二区三区高清 不卡 | 欧美中文在线观看 | 国产成人精品日本亚洲语音1 | 国产欧美一区二区另类精品 |