Click here to Login








Moving Average Ratio

by The trader, 5270 days ago
Share |






The percentage of stocks that trade above their moving average is a popular measure of market sentiment. When a higher number of stocks trade below their moving average, the indicator value decrease and traders consider this as a bullish sign and expect a rally to occur in the coming days.

The moving average ratio is a market indicator; it is the ratio of the percentage of stocks that trade above their 50-day moving average (medium term) to the percentage of stocks that trade above their 150-day moving average (long term).

Buy signals occur when the moving average ratio falls below a threshold. The threshold should be chosen depending on the market you are trading and the periods used to calculate this ratio.
You may use the rules analyzer to simulate or backtest this market indicator and choose the appropriate threshold.

Note that a filter is applied to this composite; the filter instructs the application to consider only stocks that have a 30-bar simple moving average volume higher than 10000 shares.

This filter as well as the periods used to calculate the moving averages could be easily changed.
The item first creates two composites using the "AddComposite" function.
AddComposite("above_50", close > sma(50), _CompAverage);
AddComposite("above_150", close > sma(150), _CompAverage);

It then creates a filter by associating a rule to the "filter" variable:
filter = sma(volume, 30) > 10000;

Finally, a script loops through the above composites and divides the percentage of stocks trading above their 50-day moving average by the percentage of stocks trading above their 150-day moving average.


Share This ->
Share |


You have to log in to bookmark this object
What is this?




Type: Composite Index

Object ID: 466


Country:
United States

Market: Stock Market

Style:
Technical Analysis

Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects

Empty

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis



Random Blog Posts

How to create a market timing system

Backtesting Process

Trading software new features

Money Management: Optimize a trading system

Optimization of a trading system

How to create custom databases in your trading software

Technical Analysis Using Multiple Timeframes - Second Part

New features in QuantShare - Trading Software

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.