Ⅰ 最准確的MT4指標誰有
可以在 最全MT4指標模板網路貼吧
Ⅱ MT4雙線MACD指標
#property link ""
#property indicator_buffers 3
#property indicator_separate_window
#property indicator_color1 LightGray
//#property indicator_color2 Red
//#property indicator_color3 Blue
//---- buffers
double Buffer1[];
double Buffer2[];
double Buffer3[];
extern int Fast = 12;
extern int Slow = 26;
extern int Signal = 9;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//IndicatorBuffers(4);
SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,2);
//SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,1);
//SetIndexStyle(2,DRAW_LINE,STYLE_SOLID,1);
SetIndexBuffer(0,Buffer3);
SetIndexBuffer(1,Buffer2);
SetIndexBuffer(2,Buffer1);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//---- TODO: add your code here
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
//---- TODO: add your code here
for(int i=Bars;i>=0;i--){
Buffer1[i]=iMACD(NULL,0,Fast,Slow,Signal,PRICE_CLOSE,MODE_MAIN,i);
Buffer2[i]=iMACD(NULL,0,Fast,Slow,Signal,PRICE_CLOSE,MODE_SIGNAL,i);
Buffer3[i]=Buffer1[i] - Buffer2[i];
}
//----
return(0);
}
//+------------------------------------------------------------------+
粘貼到MT4裡面,自己設一下顏色屬性啥的
其實指標沒多大用
Ⅲ 文華財經WH6(mytrader)指標符合轉化為MT4指標具體的內容如下
公式中有未來函數,不建議使用。
Ⅳ 請教mt4的技術指標和自定義指標的區別
技術指標分類是MT4系統自帶的分析指標,基本不能修改,自定義指標是投資者自己編程或者使用別人編好的指標代碼進行顯示的部分
Ⅳ 新版 MT4 指標要放在哪個文件夾里了
打開MT4軟體安裝復文件夾,選擇「制Indicators」文件夾打開,將新版的MT4指標粘貼到此文件夾,之後關閉MT4分析軟體,再打開即可在軟體導航欄的位置找到新版的MT4指標了。華爾街投資之神群有更多MT4指標相關課件。
Ⅵ 幫忙編寫mt4指標
我來幫你一下,但我不知道你說的MT指標是什麼,我改動的這個指標可以在大智慧里通過。你試試看。
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
買入:=(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)));
DRAWICON(買入,c,1);
SHORT:=7;
LONG:=19;
RMA:=EMA(CLOSE,SHORT);
NMA:=EMA(CLOSE,LONG);
UP:=L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1)or LLV(L,BARSLAST(CROSS(NMA,RMA))+1) or H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1)or HHV(H,BARSLAST(CROSS(RMA,NMA))+1);
DOWN:=(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1)) or HHV(H,BARSLAST(CROSS(RMA,NMA))+1) or L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) or BARSLAST(CROSS(NMA,RMA))+1;
買進:=(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
DRAWICON(買進,2,10);
Ⅶ MT4寫指標怎麼寫 顧比倒數指標
我有個三線反轉的指標不知道是不是你說的,請你放個圖上來看看,是我就把指標給你
Ⅷ 請問MT4中這個顯示價格的指標叫什麼名字
這是黃金對美元2013年3月30日的走勢,在亞匯網站可以下載軟體,有各種外匯、黃金、白銀、原油的
Ⅸ 跪求能用在MT4系統上的 布林線寬指標(BB Band指標)及 極限寬指標(WIDTH)指標。成分感謝!
網路一下吧,應該可以找到,還有就是上MT4軟體的官網,裡面有個什麼指標欄目,應該可以搜索到的!網站在MT4軟體里就有!
Ⅹ MT4的指標
哦,忘了說了,是MQ4的。
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Red
//---- indicator parameters
extern int ExtDepth=12;
extern int ExtDeviation=5;
extern int ExtBackstep=3;
//---- indicator buffers
double ZigzagBuffer[];
double HighMapBuffer[];
double LowMapBuffer[];
int level=3; // recounting's depth
bool downloadhistory=false;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
IndicatorBuffers(3);
//---- drawing settings
SetIndexStyle(0,DRAW_SECTION);
//---- indicator buffers mapping
SetIndexBuffer(0,ZigzagBuffer);
SetIndexBuffer(1,HighMapBuffer);
SetIndexBuffer(2,LowMapBuffer);
SetIndexEmptyValue(0,0.0);
//---- indicator short name
IndicatorShortName("ZigZag("+ExtDepth+","+ExtDeviation+","+ExtBackstep+")");
//---- initialization done
return(0);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int start()
{
int i, counted_bars = IndicatorCounted();
int limit,counterZ,whatlookfor;
int shift,back,lasthighpos,lastlowpos;
double val,res;
double curlow,curhigh,lasthigh,lastlow;
if (counted_bars==0 && downloadhistory) // history was downloaded
{
ArrayInitialize(ZigzagBuffer,0.0);
ArrayInitialize(HighMapBuffer,0.0);
ArrayInitialize(LowMapBuffer,0.0);
}
if (counted_bars==0)
{
limit=Bars-ExtDepth;
downloadhistory=true;
}
if (counted_bars>0)
{
while (counterZ<level && i<100)
{
res=ZigzagBuffer[i];
if (res!=0) counterZ++;
i++;
}
i--;
limit=i;
if (LowMapBuffer[i]!=0)
{
curlow=LowMapBuffer[i];
whatlookfor=1;
}
else
{
curhigh=HighMapBuffer[i];
whatlookfor=-1;
}
for (i=limit-1;i>=0;i--)
{
ZigzagBuffer[i]=0.0;
LowMapBuffer[i]=0.0;
HighMapBuffer[i]=0.0;
}
}
for(shift=limit; shift>=0; shift--)
{
val=Low[iLowest(NULL,0,MODE_LOW,ExtDepth,shift)];
if(val==lastlow) val=0.0;
else
{
lastlow=val;
if((Low[shift]-val)>(ExtDeviation*Point)) val=0.0;
else
{
for(back=1; back<=ExtBackstep; back++)
{
res=LowMapBuffer[shift+back];
if((res!=0)&&(res>val)) LowMapBuffer[shift+back]=0.0;
}
}
}
if (Low[shift]==val) LowMapBuffer[shift]=val; else LowMapBuffer[shift]=0.0;
//--- high
val=High[iHighest(NULL,0,MODE_HIGH,ExtDepth,shift)];
if(val==lasthigh) val=0.0;
else
{
lasthigh=val;
if((val-High[shift])>(ExtDeviation*Point)) val=0.0;
else
{
for(back=1; back<=ExtBackstep; back++)
{
res=HighMapBuffer[shift+back];
if((res!=0)&&(res<val)) HighMapBuffer[shift+back]=0.0;
}
}
}
if (High[shift]==val) HighMapBuffer[shift]=val; else HighMapBuffer[shift]=0.0;
}
// final cutting
if (whatlookfor==0)
{
lastlow=0;
lasthigh=0;
}
else
{
lastlow=curlow;
lasthigh=curhigh;
}
for (shift=limit;shift>=0;shift--)
{
res=0.0;
switch(whatlookfor)
{
case 0: // look for peak or lawn
if (lastlow==0 && lasthigh==0)
{
if (HighMapBuffer[shift]!=0)
{
lasthigh=High[shift];
lasthighpos=shift;
whatlookfor=-1;
ZigzagBuffer[shift]=lasthigh;
res=1;
}
if (LowMapBuffer[shift]!=0)
{
lastlow=Low[shift];
lastlowpos=shift;
whatlookfor=1;
ZigzagBuffer[shift]=lastlow;
res=1;
}
}
break;
case 1: // look for peak
if (LowMapBuffer[shift]!=0.0 && LowMapBuffer[shift]<lastlow && HighMapBuffer[shift]==0.0)
{
ZigzagBuffer[lastlowpos]=0.0;
lastlowpos=shift;
lastlow=LowMapBuffer[shift];
ZigzagBuffer[shift]=lastlow;
res=1;
}
if (HighMapBuffer[shift]!=0.0 && LowMapBuffer[shift]==0.0)
{
lasthigh=HighMapBuffer[shift];
lasthighpos=shift;
ZigzagBuffer[shift]=lasthigh;
whatlookfor=-1;
res=1;
}
break;
case -1: // look for lawn
if (HighMapBuffer[shift]!=0.0 && HighMapBuffer[shift]>lasthigh && LowMapBuffer[shift]==0.0)
{
ZigzagBuffer[lasthighpos]=0.0;
lasthighpos=shift;
lasthigh=HighMapBuffer[shift];
ZigzagBuffer[shift]=lasthigh;
}
if (LowMapBuffer[shift]!=0.0 && HighMapBuffer[shift]==0.0)
{
lastlow=LowMapBuffer[shift];
lastlowpos=shift;
ZigzagBuffer[shift]=lastlow;
whatlookfor=1;
}
break;
default: return;
}
}
return(0);
}