This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
For Free - No Credit Card Required
Moving Average Crossovers In the Past Trading Days
One way to discover stocks that are in a trading range and may move in one way or another in the coming days is to count the number of close and moving average crossovers over the previous days. For example, a stock that had four crossover during the last 10 trading days is certainly not a trending stock, but it may start an up or down trend if its share price breaks the support or resistance line. It is well known that often the best trends occur after a sideways market.
The Moving Average Crossover technical indicator returns the number of crossovers for a given past period. The indicator name is "MACross" and you are allowed to enter the lookback period that is used to calculate the simple moving average as well as the period to use to look for past crossovers. A crossover is detected when then close price crosses above or below the SMA. Crossover count is calculated using the "SUM" function, which is a function that sums the values of an array for the previous N-Bars.
One example of a trading rule using this technical analysis indicator is:
rule = MACross(10, 15) > 3;
This trading rule returns a signal if there are more than three crossovers between the close price and its 10-Bar simple moving average during the last 15 trading bars.