Trade FOREX with FXCM

  • Award-Winning Platform
  • 24/7 Customer Support
  • Trade Directly on Charts
  • Free $50K Practice Account
View RSS Feed

Jason Rogers

Automated Strategy for Marketscope: Moving Average Stop

Rating: 1 votes, 5.00 average.
by , 10-11-2010 at 02:41 PM (4840 Views)
Automated Moving Average Stop Loss

FxCodeBase created a new strategy for Marketscope that operates similarly to a trailing stop which you can use as another risk management tool. This strategy automatically places a stop loss order at the moving average line you specify. As the moving average line changes, so too will your stop loss order.

Here's how it works...

If you take a look at the image below, I have added the moving average stop to a EUR/AUD trade as an example. The chart is a 60 minute chart of EUR/AUD and I have 3 short positions. I have added a 100 period simple moving average and this moving average line acts as the stop loss. An actual stop loss order is created automatically by the strategy. If the market reverses and touches the moving average line, my stop loss order will execute.

Also take a look at the 60 minute EUR/USD chart below(very nice uptrend ) and you will get a great idea of how the moving average stop acts very similarly to a trailing stop. If you have a long position, the stop loss order will be located at the moving average line as it follows the trend. If the market turns down and touches the moving average line the stop order will execute.

How to set this up?

Pre-Setup Note: I recommend installing the Marketscope 2.0 AutoTrading Patch before using this strategy. My Marketscope was initially crashing when trying to add the new strategy, and it is now running smoothly FXCodeBase.COM: Forex Chart Indicators and Development • View topic - Marketscope 2.0 Autotrading Patch for 082610/091010 TS .

1. Download the Strategy. The strategy is not pre-loaded into Marketscope, so you will need to download it from FXCodeBase and then add it to the custom strategy list. Here is where you will find the download FXCodeBase.COM: Forex Chart Indicators and Development • View topic - Moving-average based stop order [new version] . Download the file onto your Desktop or somewhere where you can easily find it later.

2. Add the strategy to Marketscope. Now that you have the strategy downloaded onto your computer, you can now add it to the Marketscope strategies list. Here are the steps (with image further below):

  • Step 1: At the top of Marketscope, click on Strategies > Add Strategy
  • Step 2: In the window that appears, click on Manage at the top right
  • Step 3: Another window will appear. Click on the Load button and find the strategy file saved to your desktop.

3. Using the Strategy

You should now have the strategy in your strategy list. The moving average stop strategy is called "Set stop by Moving Average". Let's take a look at the Strategy Properties for the moving average stop.

Please make sure to fill out all of the details in the properties window such as symbol, moving average parameters, and **very important** the specific ticket you want the moving average stop applied to.

Let me know if you have any questions!


  1. 00808060's Avatar
    kindly sir answer me how i can make or let Automated Strategy like ma_advisor work 24 in market scope even i log off??
Disclaimer: Trading foreign exchange on margin carries a high level of risk and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. The possibility exists that you could sustain a loss in excess to your investment and therefore you should not invest money that you cannot afford to lose. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. You should be aware of all the risks associated with foreign exchange trading and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. FXCM will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.