Re: [amibroker] MetaStock's PREV

2009-06-16 Thread Mubashar virk
This is an excellent explanation and very example. Thank you very much. -- From: "Thomas Ludwig" Sent: Tuesday, June 16, 2009 7:00 PM To: Subject: Re: [amibroker] MetaStock's PREV > Hello, > > TJ once wrote: > > [quo

Re: [amibroker] MetaStock's PREV

2009-06-16 Thread Thomas Ludwig
Hello, TJ once wrote: [quote] Hello, PREV in MS is needed because MS does NOT have looping. In AB, there are loop constructs so there is no need for PREV because loops give faster and more general way of solving coding problems. Since loops are more general they allow easy translation of every

Re: [amibroker] MetaStock's PREV

2009-06-15 Thread Mubashar virk
Thanks, TJ. I will look into the archives. From: Tomasz Janeczko Sent: Monday, June 15, 2009 3:43 PM To: amibroker@yahoogroups.com Subject: Re: [amibroker] MetaStock's PREV No, because it is sick idea implemented in MS because they don't have a normal loop construct in th

Re: [amibroker] MetaStock's PREV

2009-06-15 Thread Tomasz Janeczko
No, because it is sick idea implemented in MS because they don't have a normal loop construct in the language. Metastock PREV essentially re-calculates entire array (number of bars)-times resulting (number of bars) performance degradation. So if you have say 1 bars, the code runs 1 slower