Ⅰ 怎麼把文華的指標修改成MT4主圖指標
這個要有專業的水平,不是每個人都能做的。
Ⅱ MT4的MACD、KD、RSI怎樣弄到文華財經上
MACD
有沒有大神能把MT4上的單線MACD指標改成通達信,或者文華財經能用的,萬分感謝下面是指標源碼:
//+------------------------------------------------------------------+
//| Custom MACD.mq4 |
//| Copyright 2005-2014, MetaQuotes Software Corp. |
//| http://www.mql4.com|
//+------------------------------------------------------------------+
#property right "2005-2014, MetaQuotes Software Corp."
#property link "http://www.mql4.com"
#property description "Moving Averages Convergence/Divergence"
#property strict
#include <MovingAverages.mqh>
//--- indicator settings
#propertyindicator_separate_window
#propertyindicator_buffers 2
#propertyindicator_color1Silver
#propertyindicator_color2Red
#propertyindicator_width12
//--- 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=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);
}
//+------------------------------------------------------------------+
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26), COLORSTICK;
DEA: EMA(DIFF,9);
送你都能用應該
Ⅲ 請問這個MT4指標能不能幫忙改成文華財經指標
系統不一樣,改不了
Ⅳ 文華財經指標如何改成通達信指標呢,回復有效有獎哦
VAR1:=SAR(10,2,20);
X:IF(ABS(VAR1)<C,ABS(VAR1),DRAWNULL),COLORRED,CIRCLEDOT;
S:IF(ABS(VAR1)>C,ABS(VAR1),DRAWNULL),COLORGREEN,CIRCLEDOT;
B1:=REF(C,1);
B2:=REF(C,2);
SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(C<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2) AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));
SM:=IF(REF(SS,1)>0 OR REF(SS,1)<0,REF(SS,1),IF(REF(SS,2)>0 OR REF(SS,2)<0,REF(SS,2),IF(REF(SS,3)>0 OR REF(SS,3)<0,REF(SS,3),IF(REF(SS,4)>0 OR REF(SS,4)<0,REF(SS,4),IF(REF(SS,5)>0 OR REF(SS,5)<0,REF(SS,5),IF(REF(SS,6)>0 OR REF(SS,6)<0,REF(SS,6),IF(REF(SS,7)>0 OR REF(SS,7)<0,REF(SS,7),0)))))));
STICKLINE(SS=1 OR SM>=1 AND SS=0,B1,C,0.8,1),COLORRED;
STICKLINE(SS=2,B2,C,0.8,1),COLORRED;
STICKLINE(SS=-2,B2,C,0.8,0),COLORFF9000;
STICKLINE((SS=-1 OR SS=-2) AND SM>0,B2,B1,0.8,1),COLORRED;
STICKLINE((SS=1 OR SS=2) AND SM<0,B2,B1,0.8,0),COLORFF9000;
MA1:MA(C,5);
MA2:MA(C,10);
MA3:MA(C,20);
MA4:MA(C,30);
MA5:MA(C,60);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;{收盤價與N周期最低值做差,N周期最高值與N周期最低值做差,兩差之間做比值。}
K:=SMA(RSV,3,1);{RSV的移動平均值}
D:=SMA(K,3,1);{K的移動平均值}
AA:=X>0&&MACD>0&&K>D&&MA1>MA2&&MA3>MA4;
BB:=S>0&&MACD<0&&K<D&&MA1<MA2&&MA3<MA4;
DRAWICON(CROSS(AA,0.5),H,1);
DRAWICON(CROSS(BB,0.5),L,2);
Ⅳ 文華指標改為通達信指標
這個文化財經公式可以改成通達信效果如圖。
Ⅵ 如何將MT4里的指標導入到文華贏順
是到不進去的,但是可以寫啊,文化的贏智就有程序化代碼,很好寫的,如果不清楚可以發我 我幫你寫
Ⅶ 文華財經指標改為通達信指標
你這代碼不全在文華財經上都提示錯誤
就算改成通達信也無法測試是否可以在通達信正常使用。
Ⅷ 文華財經WH6(mytrader)指標符合轉化為MT4指標具體的內容如下
公式中有未來函數,不建議使用。
Ⅸ 文華指標怎麼轉換通達信,大神幫幫忙
這段文華財經主圖畫線公式可以轉換成通達信公式並且正常使用效果如下圖
Ⅹ 求助文化改成mt4主圖指標謝謝
是將文華財經改成MT4主圖指標嘛?具體哪一個指標?方便說具體一些嘛?