fanhongli123 发表于 2011-12-28 10:20:40

振荡指标求助

这个指标是为了求得目前柱子最高最低价之间的振幅于前n天平均振幅指标,运行出错,麻烦高手们看看解答一下谢谢。<div class=\"blockcode\"><div id=\"code_t8I\"><ol>
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1Red
double fluctuation;
extern int time_period=3;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
   {
   IndicatorBuffers(1);
   SetIndexBuffer(0,fluctuation);
   SetIndexStyle(0,0,0,2,Red);
   return(0);
   }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                     |
//+------------------------------------------------------------------+
int deinit()
   {
//----
   
//----
    return(0);
   }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
   {
   double highsum;
   double lowsum;
   int counted_bars=IndicatorCounted();
   if (counted_bars0) counted_bars--;
   int limit=Bars-counted_bars;
   for (int i=limit-1;i>=0;i--)
   {
       int r=1;
       while (r

l26709020 发表于 2012-11-22 00:12:46

加油站加油

衣冠禽兽 发表于 2012-11-22 00:12:46

…没我说话的余地…飘走

左手起茧 发表于 2012-11-22 00:12:46

先看看怎么样!

小溪水 发表于 2012-11-22 00:12:46

很棒的 EA

笑脸 发表于 2012-11-22 00:12:46

现在越做月亏啊

y12757 发表于 2014-11-3 23:49:44

nice!!!!!!!!!!!!

最他妈不是人 发表于 2014-11-5 02:26:51

xiexiefenxiang

star115 发表于 2014-11-14 06:06:10

研究研究

金钱汇集 发表于 2015-1-7 22:28:30

多谢分享 看看是什么
页: [1] 2 3
查看完整版本: 振荡指标求助