Ⅰ 求MT4軟體上用的MACD雙線指標公式還有方法,謝謝
我好像有,不知道在電腦哪個文件了,以前收藏了很多
Ⅱ 請問MT4自帶的EMA和macd(一根線的)指標的公式
就是mt4自帶的ema和macd(一根線的)指標的計算公式,我在網上找到的驗證下來好像不對。
Ⅲ 怎樣在MT4平台設置雙線的MACD指標
MT4 軟體中默認的MACD指標只有單線和白色能量柱,可以私聊,給你發自己做的雙線的MACD指標插件,2227534552
Ⅳ 我想知道,mt4與南華期貨,同花順外匯軟體上的macd指標為什麼不一樣
計算方法不一樣,具體的差別我忘記了,mt4的要麻煩些,好像採用的是指數移動平均,公式不一樣,參數不一樣,導致結果不一樣
Ⅳ MT4平台技術指標修改完之後重啟MT4指標又恢復到原來的樣子,比如MACD指標,總是修改不成功。
修改是不成功,要重新編公式,起公式名才行。
Ⅵ MT4軟體如何設置MACD雙線指標
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
忽略以上公式。
根據思路編寫公式,修改公式。盤中預警,條件選股。公式解密,去除時間限制。滑鼠點擊下方
我
的
名
字
或(圖
標)上,進入
可
看到
Q,訂
制
公式
Ⅶ 怎樣在MT4外匯軟體中編寫公式
mt4外匯分析軟體怎麼樣,分析走勢准確嗎, 在哪可以下載mt4外匯分析軟體啊
個人感覺專金道投資很不賴,屬 操作很簡單 基本上三分鍾內開戶就搞定了,而且有4%的存款利息, 很劃算啊, 涵蓋美元直盤及交差盤18種主要貨幣對,緊貼市場價格變動而更新。讓我們可和選擇外匯的面比較廣,還是不錯的, 你可以考慮一下呢 此處鏈接
有一種氣叫運氣,它能讓你遇難呈祥;有一種氣叫福氣,它能讓你一生無憂,現在我將它們送
給你,就讓它們永遠伴隨你!
Ⅷ 兩條MACD線,只需將公式復制,另加一個,改名MACD1即可,一條長的,一條短的
//+------------------------------------------------------------------+
//| MACD_ColorHist_Alert.mq4 |
//| Copyright ?2006, Robert Hill |
//| |
//+------------------------------------------------------------------+
#property right "Copyright ?2006, Robert Hill"
//---- indicator settings
#property indicator_separate_window
#property indicator_buffers 4
#property indicator_color1 Aqua
#property indicator_color2 Red
#property indicator_color3 Green
#property indicator_color4 Red
//---- indicator parameters
extern bool SoundON=true;
extern bool EmailON=false;
extern int FastEMA=12;
extern int SlowEMA=26;
extern int SignalSMA=9;
//---- indicator buffers
double ind_buffer1[];
double ind_buffer2[];
double HistogramBufferUp[];
double HistogramBufferDown[];
int flagval1 = 0;
int flagval2 = 0;
//---- variables
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- drawing settings
// IndicatorBuffers(3);
IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+1);
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID);
SetIndexBuffer(0,ind_buffer1);
SetIndexDrawBegin(0,SlowEMA);
SetIndexStyle(1,DRAW_LINE,STYLE_DOT);
SetIndexBuffer(1,ind_buffer2);
SetIndexDrawBegin(1,SignalSMA);
SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_SOLID);
SetIndexBuffer(2,HistogramBufferUp);
SetIndexStyle(3,DRAW_HISTOGRAM,STYLE_SOLID);
SetIndexBuffer(3,HistogramBufferDown);
// SetIndexDrawBegin(2,SlowEMA + SignalSMA);
//---- name for DataWindow and indicator subwindow label
IndicatorShortName("MACD("+FastEMA+","+SlowEMA+","+SignalSMA+")");
SetIndexLabel(0,"MACD");
SetIndexLabel(1,"Signal");
SetIndexLabel(2,"Histogram");
//---- initialization done
return(0);
}
//+------------------------------------------------------------------+
//| Moving Averages Convergence/Divergence |
//+------------------------------------------------------------------+
int start()
{
int limit;
double temp;
int counted_bars=IndicatorCounted();
//---- check for possible errors
if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
//---- macd counted in the 1-st buffer
for(int i=0; i<limit; i++)
ind_buffer1[i]=iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,i)-iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,i);
//---- signal line counted in the 2-nd buffer
for(i=0; i<limit; i++)
ind_buffer2[i]=iMAOnArray(ind_buffer1,Bars,SignalSMA,0,MODE_SMA,i);
// ind_buffer2[i] = alpha*ind_buffer1[i] + alpha_1*ind_buffer2[i+1];
for(i=0; i<limit; i++)
{
HistogramBufferUp[i] = 0;
HistogramBufferDown[i] = 0;
temp = ind_buffer1[i] - ind_buffer2[i];
if (temp >= 0)
HistogramBufferUp[i] = temp;
else
HistogramBufferDown[i] = temp;
if (i == 1)
{
if (HistogramBufferUp[i] > 0 && HistogramBufferDown[i + 1] < 0)
// if (HistogramBufferUp[i] > HistogramBufferUp[i + 1])
{
// Cross up
if (flagval1==0)
{
flagval1=1;
flagval2=0;
if (SoundON) Alert("MACD Crossed up","\n Time=",TimeToStr(CurTime(),TIME_DATE)," ",TimeHour(CurTime()),":",TimeMinute(CurTime()),"\n Symbol=",Symbol()," Period=",Period());
if (EmailON) SendMail("MACD Crossed up", "MACD Crossed up, Date="+TimeToStr(CurTime(),TIME_DATE)+" "+TimeHour(CurTime())+":"+TimeMinute(CurTime())+" Symbol="+Symbol()+" Period="+Period());
}
}
else if (HistogramBufferDown[i] < 0 && HistogramBufferUp[i + 1] > 0)
// else if (HistogramBufferUp[i] < HistogramBufferUp[i + 1] )
{
// Cross down
if (flagval2==0)
{
flagval2=1;
flagval1=0;
if (SoundON) Alert("MACD Crossed down","\n Date=",TimeToStr(CurTime(),TIME_DATE)," ",TimeHour(CurTime()),":",TimeMinute(CurTime()),"\n Symbol=",Symbol()," Period=",Period());
if (EmailON) SendMail("MACD Crossed down","MACD Crossed Down, Date="+TimeToStr(CurTime(),TIME_DATE)+" "+TimeHour(CurTime())+":"+TimeMinute(CurTime())+" Symbol="+Symbol()+" Period="+Period());
}
}
}
}
//---- done
return(0);
}
將以上代碼復制到文檔中,名字比如為macd2.mq4,後綴一定是mq4,然後將其放在mt4安裝目錄的experts\indicators裡面,重新打開mt4,在技術指標的自定義中就可以看到macd2了。完畢
Ⅸ 求大神寫通達信和MT4,MACD指標公式
DIF:=EMA(C,12)-EMA(C,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;M1:=MACDREF(MACD,1);M2:=DIF<0ANDDEA<0;M3:=(DIF-REF(DEA,1))/REF(DEA,1)*100;M4:=BETWEEN(M3,20,40);MXG:M1ANDM2ANDM4;