1.MT4的背离背离MACD、KD、源码源码RSI怎样弄到文华财经上?
2.文华财经MACD指标,文华如何编写当DIF上穿0轴时显示文字“多”,财经下穿0轴时显示“空”?求指教,指标微助力源码谢谢
3.文华财经中,背离背离FLASH源码下载歌曲如何设置MACD的源码源码DIFF和DEA线在0轴上变成红色,在0轴下变成绿色,文华谢谢大神帮助!财经
4.怎样修改公式把文华财经MACD红绿柱变粗?指标
5.文华财经MACD底背离,顶背离指标怎么编写
6.文华期货的背离背离分时图中MACD零轴上首次金叉和零轴下首次死叉的预警公式怎么编?
MT4的MACD、KD、源码源码RSI怎样弄到文华财经上?
MACD有没有大神能把MT4上的文华开源码网站制作单线MACD指标改成通达信,或者文华财经能用的财经,万分感谢下面是指标指标源码:
//+------------------------------------------------------------------+
//| Custom MACD.mq4 |
//| Copyright -, MetaQuotes Software Corp. |
//| |
//+------------------------------------------------------------------+
#property copyright "-, MetaQuotes Software Corp."
#property link ""
#property description "Moving Averages Convergence/Divergence"
#property strict
#include <MovingAverages.mqh>
//--- indicator settings
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Silver
#property indicator_color2 Red
#property indicator_width1 2
//--- indicator parameters
input int InpFastEMA=; // Fast EMA Period
input int InpSlowEMA=; // 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,) - EMA(CLOSE,), COLORSTICK;
DEA : EMA(DIFF,9);
送你 都能用应该
文华财经MACD指标,如何编写当DIF上穿0轴时显示文字“多”,下穿0轴时显示“空”?求指教,jsp oa系统源码谢谢
DIFF:EMA(CLOSE,) - EMA(CLOSE,);DEA:EMA(DIFF,9);
2*(DIFF-DEA),COLORSTICK;
DRAWTEXT(CROSS(DIFF,0),DIFF,'多',COLORRED);
DRAWTEXT(CROSS(0,DIFF),DIFF,'空',COLORGREEN);
文华财经中,如何设置MACD的DIFF和DEA线在0轴上变成红色,在0轴下变成绿色,谢谢大神帮助!显卡驱动透视源码
DIF:=EMA(CLOSE,)-EMA(CLOSE,);DEA:=EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
PARTLINE(dif,dif>0,RGB(,0,0),dif<0,RGB(0,,0));
PARTLINE(dea,dea>0,RGB(,0,0),dea<0,RGB(0,,0));
怎样修改公式把文华财经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底背离,顶背离指标怎么编写
{ macd底背离选股}DIFF:=EMA(CLOSE,)-EMA(CLOSE,);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>CANDREF(DIFF,A1+1)0,5);
文华期货的分时图中MACD零轴上首次金叉和零轴下首次死叉的预警公式怎么编?
文华期货分时图相当于1分钟图零轴上首次金叉代码如下:
DIF:=EMA(C,)-EMA(C,);
DEA:=EMA(DIF,9);
VAR1:=BARSLAST(DIF<0 AND DEA<0);
VAR2:=CROSS(DIF,DEA);
VAR3:=COUNT(VAR2,VAR1)=1;
VAR4:=DIF>0 AND DEA>0;
VARZ:VAR2 AND VAR3 AND VAR4;
零轴下首次死叉代码如下:
DIF:=EMA(C,)-EMA(C,);
DEA:=EMA(DIF,9);
VBR1:=BARSLAST(DIF>0 AND DEA>0);
VBR2:=CROSS(DEA,DIF);
VBR3:=COUNT(VBR2,VBR1)=1;
VBR4:=DIF<0 AND DEA<0;
VBRZ:=VBR2 AND VBR3 AND VBR4;
可以关注我,有什么问题再交流。
文华财经MACD如何编写指标,让它在0轴上为一种颜色,在0轴下又为另一种颜色。
文华财经MACD如何编写指标,让它在0轴上为一种颜色,在0轴下又为另一种颜色。DIF:(EMA(CLOSE,)-EMA(CLOSE,))*;
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;