StockFetcher Forums · Indicators and Measures · Custom Moving Average (CMA)<< >>Post Follow-up
stockfetcher
980 posts
msg #34493
12/23/2004 1:20:26 PM

Custom Moving Average (CMA)

Parameters Indicator, days
Period Limit 400
Usage cma(indicator,days)
Description This indicator allows you to create your own custom moving averages for most measures on StockFetcher. The moving average is based on the simple moving average forumula.

Some examples:

1. Create a 20-day moving average of the high price.

Fetcher[show stocks where the close is above CMA(high,20)]


2. Create a moving average crossover based on the close and open price.

Fetcher[ set{sum1,close + open}
set{avg,sum1 / 2.0}
show stocks where CMA(avg,10,1) crossed above the CMA(avg,50,1)
]


Note: The third parameter "1" tells StockFetcher to plot that measure on the main price plot.

3. Create a custom average for the CCI indicator.

Fetcher[show stocks where the CCI(14) crossed above CMA(CCI(14),21)]


4. Find stocks where the upper Bollinger Band crossed below the 5 day average of the upper Bollinger band.

Fetcher[show stocks where the Upper Bollinger Band(20) crossed below the CMA(Upper Bollinger Band(20),5)]




StockFetcher Forums · Indicators and Measures · Custom Moving Average (CMA)<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.