A. 文華財經MACD如何編寫指標,讓它在0軸上為一種顏色,在0軸下又為另一種顏色。
文華財經MACD如何編寫指標,讓它在0軸上為一種顏色,在0軸下又回為另一答種顏色。
DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK,LINETHICK0;
W1:STICKLINE(MACD>0,MACD,0,3,1),COLORRED;
W2:STICKLINE(MACD<0,MACD,0,3,1),COLORCYAN;
B. 通達信MACD背離指標怎麼不能在文華財經上用,請高手改下
DIFELSEF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFELSEF,9);
A1:=BARSLAST(REF(CROSS(DIFELSEF,DEA),1));
B1:=REF(CLOSE,A1+1)>CLOSE && REF(DIFELSEF,A1+1)<DIFELSEF && CROSS(DIFELSEF,DEA);
C1:=BARSLAST(REF(CROSS(DEA,DIFELSEF),1));
D1:=REF(CLOSE,C1+1)<CLOSE && REF(DIFELSEF,C1+1)>DIFELSEF && CROSS(DEA,DIFELSEF);
DRAWTEXT(B1,LOW-5,'M底背離');
PLAYSOUND(B1,'F');
DRAWTEXT(D1,HIGH+6,'M頂背抄離');
PLAYSOUND(D1,'E');
以上指標帶語音提示'E' 『F』可根據自己喜好修改。
C. 求文華財經軟體macd指標編輯。如圖!感激不盡。
如果活力,資金再不增加,,兩三天後就出了,,,現在人氣已經下來了,,很難再次現成牛股
D. 用文華財經的朋友,有沒有會編制指標的,我想把macd紅綠朱改變一下,高於前一根是紅色,低於前一個是綠色
你的意思是圖中所示嗎?上圖紅綠顏色的轉換處是MACD雙線金叉或死叉。下圖是MACD的柱狀體。
E. 請高人幫我編寫一個MACD 文華財經程序化交易的公式
原函數模型:DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:EMA(DIFF,M);CROSS(DIFF,DEA),BPK;//DIFF上穿DEA,做多。CROSS(DEA,DIFF),SPK;//DIFF下穿DEA,做空。AUTOFILTER;其中的CROSS函數是不包含等於的,只有突破之後才有信號,所專以屬信號是在交叉的下一根k線的,這應該就是你說的對不上的原因。所以文華中本身這個模型是沒有問題的。
F. 求文華財經MACD面積公式,就是紅綠柱子的面積公式~~~ 謝謝~~
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
預設值:12.26.9
G. 請教高手一個文華贏順的交易公式: MACD多周期同時chu'yu多頭或空頭排列應該怎樣寫,謝謝
日線級別以上周期單邊上漲或下跌,MACD指標金叉運行或者死叉運行,多頭排列或空頭排列
H. 怎樣修改公式把文華財經MACD紅綠柱變粗
原公式:
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
把MACD紅綠柱回變粗答:
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),LINETHICK4;
DEA:EMA(DIF,MID),LINETHICK4;
MACD:(DIF-DEA)*2,COLORSTICK;
I. 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);
送你都能用應該
J. 請高人幫我編寫一個MACD 文華財經程序化交易的公式
//該模型僅僅用來示範如何根據指標編寫簡單的模型
//用戶需要根據自己交易經專驗,進行修改後再屬實際應用!!!
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD:2*(DIFF-DEA),COLORSTICK;
MACD<0 AND REF(MACD,1)<MACD,BPK;
MACD>0 AND REF(MACD,1)>MACD,SPK;
AUTOFILTER;
這個模型問題在於,當紅綠柱參差不齊的時候會發生頻繁的反手買賣,所以實戰上不建議,僅供參考。