л

ܽ,򻯽,Զ,

 һ
 ע

QQ¼

ֻһٿʼ

ֻŵ¼

μMT4ܽױѵ,7MT4ָ,EAдEAָ˻Զ֤ ҵMT4ϵͳ(0.1뼫Ӧ©)
Ϊ̳нѧ,ѧֱӻǮ ɨվ΢Ź ںŲƵγָEAѵܽMT4,ɨںѵ
б
鿴: 1826|ظ: 3

ΪʲôATRȡֵΪ㣿

[]
2014-12-16 00:41:26 | ʾȫ¥ |Ķģʽ
Daimons 2014-12-16 06:28 ༭

N=iATR(NULL,240,ATRperiod,1);
дһATRֹEA4СʱóATRֵΪʲôóN0أָ̣лл
ظ

ʹõ ٱ

2014-12-18 08:41:19 | ʾȫ¥
ĵָǶԵģֻATRperiodֵΪĻֵͿܱΪ0
ظ ֧

ʹõ ٱ

 ¥| 2015-12-6 00:33:55 | ʾȫ¥
ãҵATRperiodֵҲ0ʹֱдN=iATR(NULL,240,20,1); printӡҲ0EAϢʾ
2015.12.06 00:21:18.062        DOCH AUDJPY,H1: array out of range in 'DOCH.mq4' (87,14)
ָ
int start()
{
   int limit;
   int counted_bars = IndicatorCounted();
   //---- check for possible errors
   if (counted_bars<0) return(-1);
   //---- last counted bar will be recounted
   if (counted_bars>0) counted_bars--;
   limit = Bars - counted_bars;
   //----

   for (int i=0; i<=limit; i++)
   {
    if(Periods1==1)
     {
         DOCH_High[i]=0;
         DOCH_Low[i]=0;
     }
    else
      {
          double ATR[];
          ATR[i]=iATR(NULL,0,Periods1,i+1);
          Print(ATR[i]);
         
           DOCH_High[i]= Close[iHighest(NULL,0,MODE_CLOSE,Periods1,i+1)];
           ATRBuySL[i]=DOCH_High[i]-n*ATR[i];
           DOCH_Low[i] = Close[iLowest(NULL,0,MODE_CLOSE,Periods1,i+1)];
           ATRSellSL[i]=DOCH_Low[i]+n*ATR[i];
       }
   


  }
//----
   return(0);
  }
ظ ֧

ʹõ ٱ

 ¥| 2015-12-6 00:34:35 | ʾȫ¥
extern int Periods1=20;
extern int n=3;


double DOCH_High[];
double DOCH_Low[];
double ATRBuySL[];
double ATRSellSL[];
ظ ֧

ʹõ ٱ

б

ֹ

С|ֻ|sitemap|ܽ,򻯽,Զ, ( ICP08108698ţǵ½Ƽɷ޹˾Ȩ )

GMT+8, 2019-10-23 19:46 , Processed in 0.075563 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

ٻظ ض б