"Displacement" is just Ref() function:
It can displace ANY array, not only moving
average.
"Increasing for 5 days" is easy to code in AFL
too.
array = MA( C, 50 );
array_increasing_for_5_days_straight = Sum( ROC( array, 1 ), 5
) == 5;
Best regards, Tomasz Janeczko amibroker.com
----- Original Message -----
Sent: Thursday, June 14, 2007 7:57
AM
Subject: [amibroker] Displaced Moving
Average question for Tomasz or somebody who can help
I like the future capabilities of scanning in www.stockfetcher.com related to the way
they built their DMA, and I will give here a quote from their negative
DMA(50,-5) explanation:
"Please note that the last portion of a negative displacement will be
generated using moving averages based on the length of time available.
Examples |
If you click on the glass link will show you the results of the scan and
if you click on a stock the chart with the DMA will show up. The DMA has the
last 14 bars filled with a MA wich alows to scan for the crossover.
Can this be done in AB? I realy like AB as one stop scanning/screening
capabilities.
Thank you in advance for any help or pointing in the right
direction,
Ray |
__._,_.___
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
__,_._,___
|