① 文华指标macd怎么加上剪头
DIFF: EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),colorwhite;DEA: EMA(DIFF,M),coloryellow;MACD: 2*(DIFF-DEA), COLORSTICK这是macd的源码,你只要在colorstick后面加一内个数字即可容
② 请高人帮我编写一个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;
这个模型问题在于,当红绿柱参差不齐的时候会发生频繁的反手买卖,所以实战上不建议,仅供参考。
③ 用文华财经的朋友,有没有会编制指标的,我想把macd红绿朱改变一下,高于前一根是红色,低于前一个是绿色
你的意思是图中所示吗?上图红绿颜色的转换处是MACD双线金叉或死叉。下图是MACD的柱状体。
④ 求文华财经软件macd指标编辑。如图!感激不尽。
如果活力,资金再不增加,,两三天后就出了,,,现在人气已经下来了,,很难再次现成牛股
⑤ 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);
送你都能用应该
⑥ 文华财经MACD指标,如何编写当DIF上穿0轴时显示文字“多”,下穿0轴时显示“空”求指教,谢谢
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:EMA(DIFF,9);
2*(DIFF-DEA),COLORSTICK;
DRAWTEXT(CROSS(DIFF,0),DIFF,'多',COLORRED);
DRAWTEXT(CROSS(0,DIFF),DIFF,'空',COLORGREEN);
⑦ 怎样修改公式把文华财经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;
⑧ 文华财经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;
⑨ 文华财经电脑版分时线同时设置macd和kd指标可以吗
可以的,文华财经可以设置四个附图指标
一般文华财经默认附图指标有两个,你打开分时图,设置当前附图指标为macd和kd指标即可。
如果当前附图指标只有一个,可以点击右键添加附图指标。
⑩ 通达信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’可根据自己喜好修改。