21评论

0收藏

振荡指标求助

avatar fanhongli123 | 4895 人阅读 | 21 人评论 | 2011-12-28

这个指标是为了求得目前柱子最高最低价之间的振幅于前n天平均振幅指标,运行出错,麻烦高手们看看解答一下谢谢。<div class=\"blockcode\"><div id=\"code_t8I\"><ol>
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1  Red
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
""
还没有人打赏,支持一下

评论|共 21 个

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 | 显示全部楼层

多谢分享 看看是什么

123下一页
您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则