The ATR then has a multiplier applied to it, such as 2, 2.5, or 3. How to search for stocks in Metastock priced between .50c and $5.00. For example if the opt columns display opt1 = 2, opt2 = 15 and opt3 = 45, then the best stop loss indicator to use would be: You can easily alter the stop loss indicator parameters to reflect the results: Remember we started off with 3, 5 and 20. This exploration can be modified to suit your exact criteria by altering the 50 to a number that suits your timeframe better. It then comes back with the results of the best performing values. momentum indicator which compares the recent closing price of an asset to a range of its prices over a specific period of time It calculates the average range that the stock moves over the last 5 periods (one week) and then multiplies that value by a factor of 3. Type “15Peak-2” into the small “col. Now select the stocks to run the exploration over and hit explore. Please don’t be put off by all the details in this code, it’s not that complicated, in fact the entire process should take no longer than 5 minutes. Typically, the number of periods used in the calculation is 14. In column A: Column name: Avrg Vol Formula: Mov(V,50,S), In column B: Column name: Volume Formula: V. In column C: Column name: Liquid Formula: Mov(V,50,S) * Mov(C,50,S) This bit of code allows you to see what the average $ value traded on this stock has been ie to gauge liquidity in your search results. For example “To rank the sectors by their historical performance”. Here is the code: Movperiods:= Input(“Enter the Move Ave Periods”,1,100,21); The input needs to know the minimum, maximum and default values for your indicator. Formula for Supertrend Indicator Basic Upperband = (High + Low) / 2 + Multipler* ATR Basic Lowerband = (High + Low)/… You need to tell MetaStock a minimum and maximum value for MetaStock to test. The idea is that more volatile stocks need more leeway to prevent getting stopped out on normal price fluctuations. You can copy and paste the above indicator straight into the indicator builder, using the instructions. In this example I am using a simple moving average as an entry condition. Have a look at the indicator and remember the numbers its using 3, 5 and 20. So in the below examples I show you how to get MetaStock to prompt you to enter the values you would like to use into your own custom indicator as soon as you drag it onto the chart. Opt3 is how many periods MetaStock should look back when calculating the highest value of the stop loss. The next step is to copy and paste the following code into each of the alphabetical tabs, starting with column. Then copy and paste the below formula into Column A: Then type “3 month” into the small “col. If it is, the formula calculates ATR. The basic ATR trailing stop trading method formula will switch from support to resistance and visa-versa when breaking support or resistance. You can simply run this scan over the market and your done. In the trading day, the price of an asset is given to a specific limit but the original limit is more encompassing. They are created using a formula … Enter the below code into the relevant window in the explorer and select save. I ask MetaStock to allow stocks to pass this filter if their peak is within 6% of a prior peak. 4 Next, we need to select the Equities folder by clicking it once and clicking the “SELECT FOLDER” button at the bottom of the window. Average true range (ATR) is an average of how much the price is moving on each bar. This Metastock exploration looks for stocks that are trading at a new high for the past 250 periods. 3 Next, we navigate to our C:(Drive)/ Trading Data/Stocks/ASX/Equities folder or equivalent folder if using USA Equities, Futures, Forex or a different data source. This exploration looks for stocks with rising 5, 20 and 200 period exponential moving averages, a volume filter has also been added to exclude stocks where volume traded is below 350000 shares. In the “Optimisation” tab you will see the opt1, opt2 and opt3 that you have created. For the ATR trailing stop method we calculate the maximum allowed loss based on the basic ATR function multiplied by a factor. This article will find the link to download the average true range stop loss calculator for metatrader4 for free. When setting stop losses, there are usually only 2 methods. This Metastock exploration searches for stocks where the 50 period exponential moving average has crossed above the 100 period exponential moving average in the past 5 periods. The formula for the force index is: NOTE: This formula requires the presence of volume data to work. The below example looks for stocks where today’s volume is at least 10 times greater than average over the previous 50 periods. C>Mov(C,20,E) AND C>(Ref(Mov(C,20,E),-25)) AND Repeat the process only this time name your box “Down trend”, choose red as your colour, and use the below formula: C < HHV(L – 3*ATR(9),20) AND CLOSE < Mov(C,34,S) Click Ok. Congratulations, you have now created your own expert advisor. However, our stop loss indicator had three inputs. For example: Volume Spike In the notes box, write a brief description of the scan. That way it’s easy to change it from a 21 day to say a 13 day moving average. I wanted today’s trading range to be above average. Regardless of what your entry criteria may be, try and use a trailing stop loss the next time you run a back test. ATR Formula The ATR indicator is common on Metatrader4 trading software, and the calculation formula sequence involves these straightforward steps: For each period chosen, calculate three absolute values: a) the “High” minus the “Low”, b) the “High” minus the previous period’s “Close”, and c) the previous period’s “Close” minus the “Low”; The high degree of leverage can work against you as well as for you. Again these codes are very simple, they tell MetaStock to return a value of “one” if a chart has had a peak at the same price level, or a value of “zero” if did not. Then copy and paste the below formula into Column A: Then type “Ave Vol$” into the small “col. It is a handy indicator and indicates the three stoploss levels directly on the chart. Give your new exploration the name “Stocks near resistance level”. See Indicator Panel for directions on how to set up an indicator — and Edit Indicator Settings to change the settings. This scan can be modified or used in conjunction with other criteria. Opt2 is the number of periods over which the ATR is calculated. This scan is using both a 10% and 15% zigzag to gauge where the peaks have occurred. Then copy and paste the below formula into Column F: If(Peak(2,C,10) < HHV(CLOSE,100)*1.04,1,0). So the formula for true range would be: TR = max ( H – L, H – C.1, C.1 – L ) For more detailed explanation of true range and some graphical examples, see True Range and How It Differs from Range . The ATR has been one of the integrated indicators on the MT4. Also please note: To remove multiple folders at once from the power console, you can right click over the words LOCAL DATA LISTS and click “Manage Custom lists”, select the folders you would like to remove and select delete. These values can be changed, and in the next article we talk about how to figure out the best stop loss values for any stock in your portfolio by back testing the variations. At the “peaks” in the curve, you can visually see the “candlesticks” expanding in size, evidence of activity strength. Hard coded folders such as Equities, Indices, World Indices and any Custom folders created in Oraclestocks. Rule 3. So let’s imagine a stock is trading at $1.00. Double click the opt1 values and enter the following: Opt3: Minimum 5, Maximum 100, and step 5. This entire process should only take a couple of minutes and will ensure your data displayed in Metastock is completely current. Now click the OK button and the exploration will be added to your list and can be run across your selected stocks. The first step in calculating ATR is to find the best security value. Calculation of Values as per Formula : BASIC UPPERBAND = (HIGH + LOW) / 2 + Multiplier* ATR BASIC LOWERBAND = (HIGH + LOW) / … This is because I believe a hammer pattern should have a reasonable daily range and be close to a significant low. B Name” box. This brings up a new box that has a number of tabs. Open a new exploration in Metastock and enter the follow text into the following columns and the filter tab. In the “general” tab, give your new trading system a name. For example you may wish to substitute the $1 for $5 etc. Paste the following code into the FILTER section. Open the indicator builder (the F(x) symbol at the top of your MetaStock program). I will start off with a simple moving average example first: Normally, you would write a 21 day simple moving average like this: But you can get rid of the “21” and replace it with some text, in this example “Movperiods” (but you can use any text so long as it is matched up with an input). C > HHV(L – 3*ATR(9),20) AND CLOSE > Mov(C,34,S) Click ok and then hit new again. 6. Opt1 is how many times you would like to multiply the ATR. So, just like we did with the moving average example above, we simply replace the numbers with text for our custom Stop loss indicator. Stocks move differently than bonds, bond move differently than currency pairs…and so on. I ask MetaStock to allow stocks to pass this filter if their peak is within 6% of a prior peak. The hammer pattern (as you would expect) looks like a hammer, it has a long bottom spike where the stock traded at a low, but the open and close are at the top of the daily range. How to find stocks with abnormal volume spikes. This simply says that it’s ok to be 10% below the prior peak. How to create the Elder Ray and the Force Index Indicators in Metastock. These are things the standard pre-built patterns don’t allow for. Then copy and paste the below formula into Column K: If(Peak(2,C,10) < HHV(CLOSE,100)*1.03,1,0). I also wanted the open to be within the upper 25% of the daily range. H Name” box. Maintaining your local ASX and USA Equities data in Metastock version 15DC. For example you can add to the filter to exclude stocks unless they are trading above the 50 day moving average by adding an “and” statement, then a moving average filter like below. These pre-built patterns work well, and will indeed find the candlestick your looking for, but I prefer to have more control over the exact details of what I want to find. Choose a stock using the add security tab and hitting open. I believe trailing stops work best in most cases, and allthough MetaStock comes with its own trailing stop loss indicator built in, here is the formula for a simple trailing stop loss indicator you can build yourself. B Name” box. This exploration need to be entered into three windows in Metastock’s explorer, ColA, ColB and the Filter. It might have an average true range of 4c (or 4%). This is an IF function checking that the row number is high enough for ATR to be calculated. After testing we decided to change the values to 2, 15 and 20. The same process can be followed to add your custom folders in and out of Metastock 15/16. Next double click over the words “LOCAL DATA LISTS” in the power console or right click over the words “LOCAL DATA LISTS” and select new, the same screen will open. The condition is: ROW(F5)>=4+G$2. Then type “10peak+4” into the small “col. Below I have written (and explained) my version of a hammer pattern. It is typically derived from the 14-day simple moving average of a series of true range indicators. ATR indicator used for a technical analysis that measures market volatility by calculating the range of asset value for that time. Copy and paste the below formula into the formula box: Then simply click OK and then drag and drop the indicator into your chart. ATR is defined as the greatest of the following: current High less than current Low Its full form is “Average True Range”. ATR Bands or Average True Range Bands Indicator is another masterpiece of the technical analysis, introduced by J.Welles Wilder in 1978. This exploration can be modified to suit your exact criteria by altering the 50 to a number that suits your timeframe better. Just like last week, we need to put some values in the alphabetical columns. The ATR is classified as an “oscillator” since the resulting curve fluctuates between values calculated based on the level of price volatility over a selected period. In the filter: colB>(colA*10) This bit of code is asking for volume to be ten times the average volume and can easily be changed to *15 or any amount. Find your favourite Japanese Candlestick Pattern using Metastock. In other words it’s ok to be either 3% below or 3% above the previous value. (C>Mov(C,50,E) AND (Mov(C,100,E))AND Mov(C,50,E) > Mov(C,100,E) AND Ref(Mov(C,50,E),-5) < Ref(Mov(C,100,E),-5)). An example trading strategy using the ATR Indicator. of stocks from the power console, these will need to be re-created if removed. For example you can say “close > 10” and MetaStock will filter out any stocks that are below $10. If you look at the formula, you will notice the values are either being multiplied by .97 or by 1.03. Then copy and paste the below formula into Column B: Then type “10peak+2” into the small “col. Open your MarketWatch on Zerodha Kite. The filter column is different, it allows you to make rules or conditions, and only allows stocks that have passed these conditions to show up in the report. Drag the Bear Power formula and drop it in a new inner window. To plot this formula as a histogram, after dropping the formula in an inner window, right click on the indicator and select properties. In the filter tab, click in the empty formula box. 1 Next a NEW CUSTOM LIST window opens; we click on the browse button. The first way to put behind the last peak, and the second to use the ATP indicator. The value will be either one or zero depending on whether we have a peak within 6% of the peak that took place before. ATR Indicator. It is also possible to calculate the atr through an indicator especially developed by us for MetaTrader4. This indicator is based on the average true range (ATR). Please note ONLY the hard coded folders need to removed and re-added periodically. In MetaTrader 4 and MetaTrader 5, it is added to the chart via the Main Menu: Insert - Indicators - Oscillators - Average True Range. Type “15Peak+4” into the small “col. Here is how to use it: First type “1 month” into the small “col. C Name” box. To view your expert advisor, open a chart, select your expert from the list and click attach, then close. Here is the explanation for each part of this formula: Rule1. This is because support and resistance is easier to see visually on a chart than it is to explain in mathematical terms. Next either type or copy and paste the below formula into the “condition” box. Moreover, the atr formula considers large ranges that accompany strong moves. H-L >ATR(14)*1.5 AND (H-C)/(H-L)<0.25 AND (H-C)/(H-L)*.11. It is plotted on prices and their placement indicates the current trend. The next step is to copy and paste the following code into each of the alphabetical tabs, starting with column A. Paste the below formula in: H-L >ATR(14)*1.5 AND (H-C)/(H-L)<0.25 AND (H-C)/(H-L)*.11. This leaves us with the problem of having to re-write our stop loss indicator with these new values. The goal here is to test and see which parameters work BEST on the stock you are trading. True range = Whichever-is-higher (BarHigh, PreviousBarClose) – Whichever-is-lower (BarLow, PreviousBarClose). The ATR indicator has only one input parameter, which by default is 14, but the trader can change it at his discretion. Make your own Trailing Stop Loss Indicator. The ATR time period default is 21 days, with multiples set at a default of 3 x ATR. Then copy and paste the below formula into Column I: If(Peak(3,C,15) > HHV(CLOSE,100)*.97,1,0). The ATR Formula. If we multiply that by 3 we get 12c. 1. 3. Give your new exploration a name. The average true range (ATR) is a market volatility indicator used in technical analysis. If it isn’t, the formula returns “”. The expert advisor icon is located at the top of the MetaStock screen, the icon is that of a man in a bowler hat. Now select the stocks to run the exploration over and hit explore. With a percentage of the ATR reading, the trader can effectively act with orders involving proportionate sizing levels customized for the currency at hand. Open Metastock and when the power console opens find the Equities folder under LOCAL DATA LISTS, right click the Equities folder and select delete. C Name” box. For this example I have named my system “Oracle Trending Expert” Next click on the “highlights” tab at the top. The stop loss value will be “Price + ATR value = Stop Loss” for SHORTING. You will use this value as stop loss. In the notes box type “Looking for stocks close to or touching resistance levels”. Then type “Av Vol$” into the small “col. So this formula demands that the range (calculated from the high minus the low) is at least one and a half times the average true range. The first tab “name” allows you to choose a name and add a note to your new expert. See Indicator Panel for directions on how to set up an indicator. I like to add a close and volume column to my explorations to allow me to filter the exploration results by price or volume. true range = max [ (high - low), abs (high - previous close), abs (low - previous close)] *Absolute Value is used because the ATR does not measure price direction, only volatility.