PureBytes Links
Trading Reference Links
|
I think it was done to be compatible with metastock when ab was built -
don't think it matters much now
_____
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of whitneybroach
Sent: Thursday, 23 November 2006 2:24 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] N-period MA not available on bar n-1
I notice an n-period MA is not available on bar n-1, yet bars are
numbered starting with zero?
Related question: why isn't an n-period MA of Open not available at
the close on bar n-1 ?
Newbie just trying to understand. Maybe I have a setting wrong? :)
(If there's a "know issues" list, could someone point me to it? Thanks.)
Sample code (Explorer, Range "all quotations":
/////////////////////////////////////////////
trendC = MA( C, 3 );
trendO = MA( O, 3 );
trendCTrue = IsTrue( trendC );
trendOTrue = IsTrue( trendO );
Filter=Status("Barinrange");
AddColumn( C, "Close" );
AddColumn( BarIndex(), "Bar" );
AddColumn( trendCTrue, "trendCTrue", 1.0 );
AddColumn( trendOTrue, "trendOTrue", 1.0 );
AddColumn( trendC, "TrendC" );
AddColumn( trendO, "TrendO" );
/////////////////////////////////////////////
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.13/546 - Release Date: 11/22/2006
|