大型投行
- 金钱
- 273475 美元
- 权重
- 2293 股
|
图示:
代码:
Elliott Wave Oscillator34趋势指标.zip
(660 Bytes, 下载次数: 0)
- //+------------------------------------------------------------------+
- //| Elliott Wave Oscillator.mq4 |
- //| |
- //+------------------------------------------------------------------+
- #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[i]=MA5-MA34;
- }
- //----
- return(0);
- }
- //+------------------------------------------------------------------+
复制代码
|
|