[MT4指标]Elliott Wave Oscillator指标
附图指标,
mt4指标类型:趋势指标
是否能用在mt4手机版上:否
是否含有未来函数:无
//+------------------------------------------------------------------+
//| Elliott Wave Oscillator.mq4 |
//| [email protected] |
//| |
//+------------------------------------------------------------------+
#property copyright "[email protected]"
#property link ""
#property indicator_separate_window
#property indicator_color1 DarkKhaki
//---- buffers
double Buffer1;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,2);
SetIndexBuffer(0,Buffer1);
SetIndexLabel(0,"EWO");
//----
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();
double MA5,MA34;
//---- TODO: add your code here
for(int i=Bars;i>=0;i--){
MA5=iMA(NULL,0,5,0,MODE_SMA,PRICE_MEDIAN,i);
MA34=iMA(NULL,0,34,0,MODE_SMA,PRICE_MEDIAN,i);
Buffer1=MA5-MA34;
}
//----
return(0);
}
//+------------------------------------------------------------------+
Elliott%20Wave%20Oscillator34.jpg
