[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] what am I doing wrong??



PureBytes Links

Trading Reference Links

hi,
 
thanks for your reply.
 
That doesn't seem to solve it.  I now used 100000 instead of 10000
 
Using my data for CEPH (Nasdaq Cephalon) the last buy I get is on 12/21/2004 (in the chart). The explore shows the last buy on 12/13/2004 and gives a 0 on 12/21/2004. This example is maybe looks strange. My real problem I sent yesterday to the helpdesk but to illustrate the problem I used this smaller example.
 
The general problem I see is that I fill my Buy and Short arrays and use them to build my chart. All seems good up to this point. Then I do a backtest or an explore and I see something different. I get signals on different dates or no signals at all.  Hope I am not overlooking something really stupid ....
 
rgds, Ed
 
 
 
 
 
----- Original Message -----
Sent: Monday, December 27, 2004 10:56 AM
Subject: Re: [amibroker] what am I doing wrong??

Hello,
 
If your data set has more than 10000 quotes you have to enlarge the
number of bars you specified in SetBarsRequired.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: ed nl
Sent: Monday, December 27, 2004 10:29 AM
Subject: [amibroker] what am I doing wrong??

hi,
 
can't figure out what I am doing wrong. Below a simple example. I create an array using a function. This array I use to find Buy signals. I put the buy signals in a chart. All seems good. Then I do an explore and then I see that the explore puts the buy signals at a different date. There seems nothing strange about the code. What could be wrong?
 
Ed
 
 
function ffZig(vv,pp) {

   
// initialize fzg array

   fzg =
0
;

   
// perform loop to fill fzg array

   
for( i = 0; i < BarCount; i= i + 10
) {

      fzg[ i ] =
1
;
   }
   
   
return
fzg;
}


SetBarsRequired(10000,10000
);
ZZ = ffZig(
C,0
) ;

Buy = ZZ == 1
;
Short = 0
;

PlotShapes( shapeUpArrow*Buy, colorGreen
);
Plot(C, " ", colorBlue,  styleCandle
) ;

Filter = 1
;
AddColumn(Buy,"Buy"
);



Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links