Moving Average indicator (MA)
The (Simple) Moving Average (MA) is a technical indicator designed to measure a financial asset's price movement and trend. It is a handy indicator, and we have created three filters based on it to help you increase your edge in trading:
- Distance - The distance of the price from its average.
- Crossover - Built from two moving average and the relationship between them.
- Rank - The Percentile of the distance between the asset price and its average.
This article will describe the distance filter. For the other two filters, please refer to the right article from the links above or below.
Why use it?
You can use the SMA indicator to measure the trend of the financial asset. It is essential to trade with the trend, so filtering out trades that don't fit your desired direction will increase your probability of profit.
How to use the SMA indicator in SamurAI
The SMA indicator measures the distance of the asset from its price. It is measured in percent, and a positive number means that the stock/ETF is above its average and vice-versa: negative number means it's below.
You can use the SMA indicator to:
- Find stocks in Bullish/Bearish trend - If a stock is above a long-term average (usually 200 days), it is considered bullish, and if it is below, it is considered bearish.
- Cross - You can set the filter to find stocks that crossed the MA and changed the trend.
In Samurai, you can use it in an advanced way to find stocks about to move in your direction. You can choose:
- Zone - Make sure the indicator has specific values. For example: in above/below MA.
- Cross - The indicator crossed a value. For example: Entered the crossed above or below the MA.
- Breadth - How long does the indicator stay in the zone. This is useful for finding extreme cases and initiating trades after, for example, the stock has been a month above a short term MA.
- Length: in days. During the market hours, we will simulate the last price as the closing price for that day to show you how the MA changes during market hours.
- From: and To: - These are the filters to initiate the zone you want the stock to be. The most common zones are: Above MA (From: 0) and Below MA (To: 0).
- Min Periods inside/outside range: How long the Stock was above or below the MA.
- You can replace the 'inside' and 'outside' the range filters by clicking on the word.
- The number is in days - how many days you want the stock to be above or below.
- his is useful for:
- Cross: Set it as min periods outside to 1.
- Breadth: Set the MA to short term and the min period inside for 20, for example (About one month)
- See more common use cases below.
Common use cases
- Stock is in a bullish trend - (1) periods 200 (default), (2) from:0 to:empty (3) Min. periods in range: 0 (default)
- Stock is in a bearish trend - (1) periods 200 (default), (2) from:empty to:0 (3) Min. periods in range: 0 (default)
- Stock crossed into bullish trend - (1) periods 200 (default), (2) from:0 to:empty (3) Min. periods outside range: 1