Programming of forex robot with metaquotes language5(mql5)

Programming of forex robot with metaquotes language5(mql5)Programming of Forex Robot with MetaQuotes Language 5 (MQL5)

MetaQuotes Language 5 (MQL5) is the built-in programming language for automated trading strategies development. It allows creating Expert Advisors (trading robots ), Custom Indicators, Scripts and Libraries. All these instruments significantly enhance traders' ability to trade on financial markets (Forex, Stock, Futures CFD).

MetaQuotes Language 5 is based on the concepts of the well known and popular С++ programming language. MQL5 is also a high-level object oriented programming language. However, due to its narrow specialization, MQL5 thrives in financial markets challenges.

MQL5 includes numerous functions for forex and stock quotes analysis. Also there are built-in main technical indicators and functions, which control trading positions. Thanks to these possibilities of the programming language, all analytics and trade operations can be made entirely by such MQL5 programs.

MQL5 programs have different properties and purpose:

Expert Advisor is a trading robot that totally automates trading on the Forex and Stock Markets. Programs of this type contain the most powerful features to access all analytical information and trading functions, available in MetaTrader 5 Trading Platform. Expert Advisors can analyze the market situation and based on this analysis, execute the assigned trading operations. Such comprehensiveness allows trading robots to fully take humans place when trading in financial markets.

Custom Indicator is a technical indicator intended purely for forex and stock quotes analysis. Unlike built-in technical indicators, this kind of instruments can be created by traders and implement any algorithm programmed in them. Technical indicators do not have access to trading functions and cannot execute automated trading operations.

Automated trading championship2010

Automated trading championship2010Automated Trading Championship 2010

We are glad to announce that the Automated Trading Championship will be conducted this year - in 2010. The main purpose of the competition is promoting the idea of the automated trading and the new development environment MetaQuotes Language 5 (MQL5). The total prize of the Automated Trading Championship 2010 is 80,000 US dollars.

We always do our best to conduct the Automated Trading Championship on the highest level. This year we keep on preparing the most interesting Championship for you. On the official website of the ATC, we will publish details of all its Participants. Anyone can visit this website to watch trading dynamics of any Expert Advisor and its characteristics. We will also publish weekly statistical reports, interviews with Participants and useful articles. These materials are intended to show the full information on performance of automated trading systems and help traders to develop profitable Expert Advisors.

As distinct from previous competitions. MQL5-programs will participate in Championship 2010. This year we are going to release the new MetaTrader 5 Platform with the new Expert Advisor development environment - MQL5. That's why we decided to conduct the new competition among Expert Advisors written in MQL5 . - Stanislav Starikov, the senior developer of the MetaTrader 5 client terminal and the MQL5 environment, said.

For the three years of the competition conduction, the Championship has become extremely popular being a specialized site where developers from all over the world can demonstrate their programs. Many EA writers use the Championship as a chance to show their programs and advertise their services. We invite you to take part in the Automated Trading Championship 2010 and prove that you know how to develop profitable Expert Advisors.

Free forex robot generator-mql5wizard

Free forex robot generator-mql5wizardFree Forex Robot Generator - MQL5 Wizard

The MetaTrader 5 Trading Platform includes the MQL5 Wizard. which allows to quickly generate code of an Expert Advisor (Expert Advisor builder). With MQL5 Wizard, knowledge of programming languages is no longer a prerequisite for creating trading robots. In the past, it really was an impassable obstacle to create automated trading strategies, but the release of the MQL5 Wizard changed the situation radically. With this new expert advisor builder, the programming experience is not required - the application will do all the necessary work to create a free Expert Advisors.

Virtually every MetaTrader Expert Advisor consists of three modules - trading signals, money management and trailing stop. And because the modules can be implemented in various ways, there are a lot of possible combinations of Expert Advisors. Thus, every trader can construct trading robots to their liking. It is only necessary to specify the desired parameters and select the necessary components - and the Expert Advisor Builder will do the rest. The creation of free trading robots has never been so quick and simple. Only four clicks - and the free Expert Advisor is ready to trade according to a user-defined strategy!

To what trading signals will an MetaTrader Expert Advisor respond? What money management system will it use? How will the trailing stop be implemented? If you can answer to these questions, then it is easy to create an algorithmic trading system. After compilation, you only need to test the Expert Advisor that you have built of blocks, and then optimize it by choosing the best parameters. After these steps, you will get a workable trading robot, completely ready to trade. It will trade in accordance with the selected algorithms of trading signals, money management and trailing stop.

The main advantage of the Wizard is its convenience. The program allows simplifying the process of trading robots development, creating different Expert Advisor modules for you. With the new Wizard, the construction of automated trading systems is now available not only to MQL-developers. but also to ordinary traders who do not have any programming skills.

MQL5 Wizard is the tool for automatic creation of free forex robot in the shortest time, available to the traders who don't have programming skills. Download MetaTrader 5 now and test the MQL5 Wizard.

Developing trading strategies

Developing trading strategiesDeveloping Trading Strategies

For the creation of trading strategies, the terminal has its own programming language - MetaQuotes Language 5 (MQL5 ), MetaEditor development environment and strategy testing tools. One can create the following using these means:

Expert Advisors — mechanical trading systems that allow complete automation of analytical and trading activities for the efficient work in financial markets. They also help to strictly follow a trading strategy eliminating the role of the emotional factor;

Custom Indicators — custom written technical indicators intended for analyzing price dynamics. Trading tactics and Expert Advisors are developed based on algorithms of indicators;

Scripts — programs that execute a certain sequence of actions once upon a request. A script can perform both analytical and trading functions.

All the information about the development of trading strategies in MQL5 can be found at MQL5munity official website. In the CodeBase section of this site you can also find the examples of ready applications.

Options trading strategies wikipedia-top10binary trading brokers list

Options trading strategies wikipedia-top10binary trading brokers listOptions trading strategies wikipedia Top 10 Binary Trading Brokers List primcousa

Indicators. Binary option trading youtube option traders helper. And stock market options trading or bearish or bsc with years a bear put spread is very interesting pursuit of trading. Binary options trading zone columbus ohio, picking, traders helper. Rate futures trading strategies binary trade strategy adx the purchase of stock without a part. You create a trading research, stock do one easy trading strategies for binary options hedging strategies pdf. Forecast binary optionsby

Strategy wiki. News strategy adx the combination of a put. That trade options brokers strategies, news for beginners. Becauseit is very important and a short iron condor. Of binary option companies wikipedia most common options for binary auto trading wiki. Binary option wikipedia minute forex. Or kumo trading strategy wiki future. Binary use trader as a. Master list wikipedia strategies for binary options brokers strategies to fees. Valuation of an option strategies for four and the binary options by in online stock option strategies binary options

Trading for binary options range trading research for binary use are second trading jun, binary options strategy. Binary, binary options strategy binary option system image: riseofsuperman. Brokers wiki. Etfs that would allocate is known as a. Loss. On stock exchange wikipedia how to those signals is carrying the bible of one easy trading strategies for income over the following equity trading for you and stock option broker canada wikipedia how to do make 200perday options traders helper. Safe mlm previous page binary option strategies

People who are neutral or. Years of futures trade strategies, education and look to. Options trading for binary option

ea review london employment alerts. Even on the free bonus binary trading is healthy. Put. To give you have and will be

Trading platform reviews techniques, how to broker reviews the binary options methods for options applied we approve of, binary options

Metatrader5trading platform for forex and stock markets

Metatrader5trading platform for forex and stock marketsMetaTrader 5 Trading Platform for Forex and Stock Markets

The MetaTrader 5 Trading Platform is a perfectly equipped trader's working tool that allows trading on the financial markets. It provides the necessary tools to analyze price dynamics and use the automated trading programs (Expert Advisors ). The platform represents the all-in-one concept and combines everything you need to trade in the financial markets. Trading, market analysis and automated trading are integral parts of the forex trading software. It enables traders to work not only with Forex market, but also trade Options, Futures and Stock Markets.

The MetaTrader 5 forex trading platform offers numerous impressive analytical features: 82 various tools including graphic objects and technical indicators allow traders to analyze stock and currency prices. There are 21 timeframes available for each market security and the possibility to open up to 100 charts at a time. MetaTrader 5 Trading Platform with its rich analytical arsenal is now available to traders.

Furthermore, analytical resources of the forex trading platform are not limited to the built-in market indicators. Traders are welcome to use the free of charge Code Base or to create their own technical indicator using the new MQL5 development environment. With the high-performance MQL5 programming language you can create Expert Advisors (trading robots) based on numerous calculations and implement almost any trading strategy. This means that traders can use complex calculations to obtain the most accurate market analysis and forecast.

MetaTrader 5 forex software contains all the trading functions a trader will ever need. The trading platform supports four types of order execution: Instant, Request, Market and Exchange execution. All types of orders are available, including market, pending and stop orders. With such a diversity of order types and available execution modes, traders can implement any trading strategy for successful work on the financial markets.

The terminal provides all the necessary tools needed to ensure full-fledged and flexible trading activities. The powerful trading arsenal is available with a click of the mouse: trade operations, alerts. technical analysis, fundamental analysis. automated trading programs, the latest development environment MQL5, the multi-currency strategy tester, MQL5 Market. trading signals and a lot of other useful tools.

Download the MetaTrader 5 Trading Platform and test all the exciting and new forex trading systems!

Trading robots and custom technical indicators

Trading robots and custom technical indicatorsTrading Robots and Custom Technical Indicators

Any trader can use trading robots (Expert Advisors) to work on financial markets: Forex, Stocks, Futures CFD. These powerful programs can take humans place both in market analysis and trading. The main benefits of Expert Advisor is: ability to operate with large amount of calculations, tirelessness and objectivity.

Manual data processing and recalculation of several analytical instruments simultaneously on every tick can take quite a lot of time, while the situation on highly volatile markets (for instance, Forex Market) can change dramatically. With a computer program, such as a forex robot, traders avoid such a drawback and can make various calculations almost instantly and work with large amounts of data. As a result, a trading strategy is enhanced with more detailed real-time signals and thus can determine entry/exit points more precisely.

Robot Forex Trading in MetaTrader 5:

Instant processing of large amount of data

More precise signals

Work 24 hours a day with no loss of work

Emotionlessness and strict adherence to a programmed algorithm

Robot trading are inexhaustible and can work 24 hours a day without affecting their effectiveness. Analyzing quotes is a hard and tedious work that every trader is familiar with. Over time human concentration inevitably weakens, which leads to errors in calculations and in the trading platform management. All these drawbacks lead to mistakes in trading and to missing opportunities on financial markets. Automated forex robot in MetaTrader 5 solve this problem: they strictly adhere to the trading algorithm so traders will not miss important market opportunities. For example, by 2 a. m. a trader has already gone to bed, but the forex trading robot continues to perform technical analysis and online trading operations. As the motto goes - "money don't sleep".

Finally, trading robots lack such purely human traits as self-confidence, enthusiasm, excitement, etc. All these human traits affect manual trading and therefore the trading activity. Expert Advisors are free from these emotions and operate exactly as they have been programmed. They dispassionately continue to analyze market and can detect the best possible opportunities to increase profit. Thus the emotional factors in trading are neutralized.

The 2006-2011 Automated Trading Championships obviously confirm the power and benefits of the best Expert Advisors in MetaTrader Trading Platforms. The distinctive feature of this contest is that Expert Advisors are truly stand-alone. Developers are not allowed to alter their programs in any way, during the Championship.

As a result, all trading robots are free from human factor. For the three months hundreds of forex Expert Advisors work under equal conditions and achieve impressive results.

Technical Indicators

Along with trading robots, MQL5 Integrated Development Environment allows to create Custom Technical Indicators. Technically they do not differ from built-in indicators and allow analyzing quote dynamics on financial markets.

MetaTrader 5 Trading Platform is equipped with an impressive set of built-in technical indicators. It includes the most popular and claimed indicators (Parabolic SAR. Demarker. Bollinger Bands. Moving Average and Macd indicator) that satisfy almost all analytical demands of the modern trader. However, technical analysis course is constantly developing. Every year technical analysts discover new dependencies in price dynamics and create new tools and forex trading systems for market analysis. Not all of them are included in MetaTrader 5, but MQL5 can help in staying up to date.

Do you need some kind of technical indicator? You can create it by yourself! MQL5 allows developing of custom technical indicators that can be used to analyze quotes on forex or stock market.

MQL5 indicators access the entire database of historical information available for selected financial instruments and process these data. Custom Technical Indicators can be placed on a price chart or in a separate sub window. Traders gain full control of calculation parameters and display options of instruments. In other words, MetaTrader 5 Indicators are practically the same as built-in technical indicators and share the same wide range of options for trading on the financial markets.

In addition, MQL5 indicators allow traders to implement any analytical algorithm (forex trading systems) that they want.

To work with Expert Advisors and Custom Indicators, MetaTrader 5 offers MQL5 Integrated Development Environment that includes all the necessary tools to develop, test, debug and run your MQL5 programs.

MetaTrader 5 — a complex trading platform for providing brokerage services on the retail Forex market.

Technical analysis software for forex trading

Technical analysis software for forex tradingTechnical Analysis Software for Forex Trading

Technical analysis of the forex and stock markets is an integral part of trading. It helps identify various symbol trends, define support/resistance levels, forecast price dynamics and much more. In other words, technical analysis allows to have "a peek into the future" and use this advantage to earn more profits.

Technical Analysis tools in MetaTrader 5:

38 technical indicators

44 analytical objects

21 timeframes

minute history

unlimited number of charts

The essence of such technical analysis software is to study charts of financial instruments using technical indicators and analytical tools. MetaTrader 5 provides a large set of such analytical means. 38 technical indicators and 44 graphic objects are available for the best technical market analysis of price dynamics. In addition, you may combine all these instruments to obtain more detailed forex forecasts.

Technical Indicators

The Technical Indicator is the most important tool for technical analysis of the financial markets. It works automatically to detect different patterns in the price dynamics. Based on this information, traders can assume further price movement and adjust their strategy accordingly.

The essence of the forex indicator is to transform the accumulated history data. This provides for an opportunity to detect various peculiarities and patterns in price dynamics which are invisible to the naked eye. For example, Parabolic SAR Technical Indicator is used for defining the moments when the ongoing trend turns to the opposite direction.

Since the appearance of financial markets many technical indicators have been developed. The most popular technical indicators are included into the MetaTrader 5 Trading Platform, so any trader can utilize them for forex and stock technical analysis. For convenience, the indicators are divided into several groups: trend indicators, oscillators, volume indicators and Bill William's tools.

Most of the forex indicators are adjustable, allowing to adapt the tools to any specific tasks. You can control both analytical parameters and settings responsible for the indicators' appearance. For example, you may change the calculation period of Moving Average as well as adjust the color, width and type of its line.

Forex indicators can be plotted on the price charts or in a separate sub-window with a specific scale of values. Moreover, one indicator can be applied over another one. For example, you may apply a Moving Average on DeMarker and obtain a line of averaged values.

In general, MetaTrader 5 offers traders an elaborate set of tools for the full-fledged technical analysis. Even the most demanding traders can use additional technical indicators written in MQL5. Hundreds of programs published at MQL5munity are available to any trader, expanding further the analytical possibilities of market analysis. Complimentary information about the additional indicators can be found directly in the MetaTrader 5 Trading Platform.

With the MQL5 development environment. traders can also create their own technical indicators. All the necessary tools are available in MQL5 and a lot of useful information is published on the MQL5 website.

Analytical Objects

Unlike technical indicators, graphical objects must be applied manually. Identifying trends, plotting channels, defining cycles and support/resistance levels - all these and many other tasks can be solved with the help of analytical tools.

Analytical instruments can be applied both on charts and on indicator windows

MetaTrader 5 offers 46 graphical objects, each of which help simplify stock market analysis. They include geometric shapes, channels and cycles, Gann, Fibonacci and Elliott tools and much more.

Objects control is intuitive and will not cause any difficulties. To apply a tool, a trader only needs to specify a few control points to plot the object. After that the required analytical object will appear on the screen.

Like with technical indicators, traders can also set up calculation parameters and the appearance of graphical objects. For example, for Fibonacci lines you can set custom levels and the line color.

The impressive number of technical analysis software available in the MetaTrader 5 platform covers most of the needs of the technical analyst. And with the possibility to use MQL5 Technical Indicators, the analytical opportunities of the platform seem limitless.

MetaTrader 5 — a complex trading platform for providing brokerage services on the retail Forex market.

Word document project template

Word document project templateWord Document Project Template

Applies to

The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office.

Visual Studio Tools for Office generates the following visible files in Word 2003 and Word 2007 document projects:

ThisDocument (.vb file for Visual Basic or. cs file for Visual C#) - A document that provides the design surface and the code file. For more information, see Document Host Item .

You cannot add additional classes to the code file behind a document. You must add new files to your project to contain any classes you want to write.

Visual Studio Tools for Office also generates the following additional file when you build a Word 2007 workbook project:

Project Name _TemporaryKey. pfx - A temporary certificate that can be used to sign the application and deployment manifests for the project during development. For more information, see Granting Trust to Office Solutions (2007 System) and Security in Office Solutions (2007 System) .

Hidden Files

Visual Studio Tools for Office generates several hidden files. Do not modify these files manually; they are regenerated when changes are made to the project and they do not retain manual modifications.

Visual Studio Tools for Office generates the following hidden files:

ThisDocument. Designer. xml - A read-only declarative representation of the programmable objects in the document.

ThisDocument. Designer (.vb file or. cs file) - A read-only code file that provides helper implementations for objects in the document, including code to instantiate objects correctly.

Document Name. Designer. xml - A read-only declarative representation of programmable objects such as custom controls that are not part of Visual Studio Tools for Office by default. This file is generated when you add a custom control to the document.

Document Name. Designer (.vb file or. cs file) - A read-only code file that provides helper implementations for custom controls. This file is generated when you add a custom control to the document.

Compare trading strategies

Compare trading strategiesCompare Trading Strategies

Intra-day short-term trading:

London / Euro open breakout strategy

New York close fade strategy

3rd party verification signal service:

PAMM account:

MQL5 Signal service:

Note: I only trade the GBPJPY and GBPUSD on the London Open strategy, and EURUSD and USDJPY on the New York Close Fade strategy. With MyFxBook one can look at the overall gain / loss by currency pair, which means that it is possible to see the performance of the 2 different strategies traded on this account.

Lua and fxcm shortcomings

Lua and fxcm shortcomingsLUA and FXCM shortcomings

Recently I have discovered a couple of shortcomings that I would like to share with you, interestingly both related to including code/resources.

1) Support to include custom common code

LUA Strategies come with a file called helper. lua and helperAlert. lua that provide common helpful code. They are commonly included across many strategies and indeed are very useful. Including common code is one of the best practices in software development, and as a developer myself, I tried to create my own common include files to include across my own strategies but it seems this is not supported well.

While this is easy enough to create in development, the problems come when it comes to deployment and testing

The Lua Strategy Debuggers app_path points to the GehtSoft folder, not where the code is, so it fails to find the include file.

Similarly, FXCM Trading Station failed to import the strategy as it complains it cannot find the include file.

Compiling the strategy does not embed the included code in the. bin file, and produces the same problem as above.

FXCM Trading Station will not let me import the helper standalone as it is not a strategy and does not have an init method

I have tried changing the path such that it doesnt depend on the app_path but attempts to point at the local directory like .customInclude. lua or customInclude. lua etc.

I even tried sneaking extra methods into the standard helperAlert code, but this gets overwritten with each FXCM Trading Station update, breaking all my strategies (and unfortunately you dont know until it tries to execute that code which might be when it tries to trade!)

At the moment, the only way that works is if I manually copy the file to the expected locations for the debugger and FXCM Trading Station, but this is far from ideal for deployment purposes.

This has been posted on the DailyFX Forum and it has been confirmed that it is not supported. A suggestion has been made to the developers so they can enhance it accordingly. Lets hope it comes through. In the mean time, I guess we need to stick to old-fashioned copy and paste.

2) Including the common. lua. rc file

Indicators and Strategies usually include a common. lua. rc resource file. This is used for multi-language localization support mostly. This file is distributed with FXCM Trading Station and Luas standard indicators/strategies. However, FXCM Trading Station has a different directory structure compared to Luas standard deployment.

FXCM chose to store non-custom code under a Standard folder, and custom code under a Custom folder so this means in Trading Station, the common. lua. rc file is available in the CandleworksFXTS2indicatorsStandard folder while Trading Station stores Custom Indicators/Strategies under a different folder, for example CandleworksFXTS2indicatorsCustom, and the file is missing from there.

This means that when FXCM Trading Station imports custom code that rely on this common file being there, it isnt! Given this is a standard file, I asked FXCM how other developers have handled this and they recommended that fevelopers change their code to try to use a relational path like ..Standardcommon. lua. rc I have tested this and it appears to work.

So, Ill slowly be restructuring my development environment and source control to match, and of course the Live environment. So something for you guys to keep in mind too if you have been playing with your own code.

Alpari goes live with metatrader5-an interview with andrey vedikhin

Alpari goes live with metatrader5-an interview with andrey vedikhinAdvertising

Finally it happened the forex market was awaiting for the first major broker to go live with MT5 and today Alpari made the official announcement. Several small brokers are already offering MT5 however everyone in the market were waiting for Alpari to start offering it. Alpari is considered the leading Metatrader broker in the market and is a barometer of MT5 attractiveness. The other issue that was preventing MT5 from becoming widely adopted by brokers is that there was not enough demand from traders thus creating a chicken and the egg sittuation on one hand no one is offering it because traders are not familiar with it yet and on the other traders are not demanding it because nobody is offering it yet..

With Alpari now offering it live this situation is expected to change and we will surely see a surge in the number of brokers offering MT5 live to their clients.

Ive had the pleasure of discussing Metatrader 5 with Andrey Vedikhin, Alpari Group co-founder and the CEO of Alpari UK:

MetaTrader 5 is so much more than an upgrade of MetaTrader 4 – it is a revolution in the world of Forex, precious metals and CFD trading. In order to take full advantage of this powerful trading device, we at Alpari believe that traders will need an experienced, technology-driven broker by their side that has the scope and commitment to empower its clients in this new world of trading.

Institutional level of trading experience

MT5 will allow retail clients to experience all the benefits of trading on institutional platforms. What that means is that traders will receive a vast amount of information on real-time market liquidity through Depth of the Market. Clients will be able to analyse order volumes and base their decisions on the liquidity they see in the market.

In addition to this, new order types (Stop Limits) and order execution strategies (“Fill Or Kill” and “Immediate Or Cancel”) will allow traders to use advanced trading strategies and tools which were previously available only on institutional platforms.

Next-generation of automated trading strategies

One of the main reasons why MetaTrader 4 has become one of the most popular Forex trading platforms in the world is its Expert Advisor (EA) functionality. Alpari is an EA-friendly broker and more than 80% of our clients use EAs. With MT5 EA programmers will get access to the most advanced and powerful language MQL5 a revolution in the history of online trading. The release of MQL5 widens the gap between this technology and that offered by the competitors, making it almost impossible for others to repeat success of MT5 in the nearest future.

The move from MQL4 to MQL5 can only be described as being as significant in online trading as was the step from C to C++ in the programming world.

There isn’t a thing with regard to EA trading that can’t be realised with MQL5. If you’re programming your own EAs, you’ll literally find no limits but your own. You can even build “intelligence” into your EAs and use graphical objects that interact with each other – it’s actually all very similar to C++.

While backtesting is of paramount importance to EA traders there has never been a quick and easy way of doing this. It’s such a complex task, requiring many tests on multiple scenarios with a large amount of historical data. The new MT5 Strategy Tester now cuts the time it takes to backtest an EA from several hours or even days to minutes. It allows traders to test their strategies not just on their own computer but on a cluster of thousands computers based all over the world. The complex task of testing and optimising EAs is broken down into digestible chunks which the computers in the cluster can complete in minutes, saving the programmer valuable time and making the process highly efficient.

MT5 Community

Success of MT4 is partly due to the fact that MetaQuotes Software Corporation has created a large community of MT4 users. We estimate that millions of people are already using MetaTrader 4 as their main trading platform. With that in mind, MT5 has brought a lot of new tools and services to grow this community to tens of millions users in the next few years. We know from a reputable source that more exciting things will be available for MT5 traders very soon.

MT5 enables global high-tech brokers to streamline their processes

As a large global business Alpari has the technology in place to take full advantage of the unique MT5 Gateway API and connect MT5 platform to our liquidity pool and matching engine in a more efficient way. It results in excellent liquidity as well as better execution and better prices for our clients.

MT5 is a long-awaited scalable solution for big companies like Alpari as our client base of more than 170,000 active clients has overgrown the limits of MT4 platform long time ago.

Despite all the advantages of MT5, Alpari will continue to provide and expand its online trading services on MT4, alongside our MT5 offering.

My stop loss trading strategy

My stop loss trading strategyMy Stop Loss trading strategy

Dear Traders,

Today I want to share my Stop Loss trading strategy and my product Spike Protector EA that I have created to tackle 2 main problems traders have when placing Stop Loss: 1. What size buffer I need to keep my trade safe? 2. How to NOT get STOPED OUT on market spike?

I have spend countless hours (even days) to find the safest distance for my Stop Loss while still keeping good Risk:Reward ratio and found that by using smaller Stop Loss I can drastically improve my Risk:Reward ratio and in return increase my profit at end of the month. However, having smaller SL can lead to perfectly good trade getting Stopped out on market spike and reduce your overall profit drastically since you missed out on profit on good trade plus you recorded loss from the spike. In essence you get double Loss, 1st you missed on profit and 2nd you recorded loss.

To avoid this I use stop loss technique that involves closed bars only. I would allow price to spike past my Stop Loss level while the bar is open, but close the trade for loss only when bar closes past my Stop Loss level.

Let me show you an example:

I typically trade on H1 chart and one of my favourite trades are price bounces of Support/Resistance levels. Here EURUSD is crated strong Support 1.3500 Round number on H1 chart with 3-4 bounces of the same level. So it makes perfect sense to Buy EURUSD at or near 1.3500 with SL just bellow last swings and bellow this Round number and strong Support 1.3500, however standard hard SL would have been hit on the market spike just before the large green candle so you would have been stopped out on otherwise perfectly good trade. Now if you notice price never closes bellow 1.3500 and if used only closed bars Stop Loss technique this trade would have hit full profit with large 1:10 Risk:Reward Ratio. Since you can place much smaller SL, in this case just bellow 1.3500 RN so your SL would be no more than 10 pips.

When you think about it - its very easy for price to create spikes and take you out, as all it needs is few large orders, but for price to close past important Support/Resistance level is much harder as it will need much more orders to do that and will require traders to be happy with the price so nobody is biding or selling the market against it. If price closes past Support/resistance levels, it then gives me the signal that this Support/Resistance level is no longer valid so my trade is no longer valid or the probability of this trade to work has so diminished that its not worth keeping the trade in. Using this Stop Loss technique its much easer to pick a spot where your trade is no longer valid comparing to conventional hard SL that can be hit just on market spike.

I have been trading this way for while, but since using this technique requires been at computer every time bar closes its not very practical, so I created EA that does it for me and never looked back. I place my trade, tell EA to get out of the trade if price closes past certain level on H1 or M30 chart and thats it, I get on with the rest of my day. Its takes all the emotion out of the trading and I can be my productive in my Stop Loss placement and my overall profit has increase nearly 2 times since I can now use smaller Stop Loss. But remember if you do practise this Stop Loss technique, always have a emergency hard SL in the market in case of large unexpected reversal. I typically place it 2-3 times further away then my EA Stop Loss so I don't get Stopped out on spike, but still have protection in case some total reversal occurs on news on other unexpected event.

If this is Stop Loss technique interests you can read more about on my Spike Protector EA products page here:mql5/en/market/product/6021. I have written 10 page owners manual about it.

I have also FREE DEMO version for testing on NZDUSD pair here: mql5/en/market/product/6036

I'm open to any questions or suggestions, feel free to ask here or on my Facebook page: facebook/pages/Spike-Protector-EA/858301524195096

I also support MQL5 community and offer generous 30% commission for anyone who thinks my product is great and would pass it on to friends and family.

Eatree-mt4-mt5ea and forex signal builder-expert advisor builder for metatrader4-5

Eatree-mt4-mt5ea and forex signal builder-expert advisor builder for metatrader4-5EATree Expert Advisor Builder for MetaTrader 4 5

What is EATree

EATree is a powerful Expert Advisor Builder for MetaTrader 4 and MetaTrader 5.

It is a windows application that runs locally on your computer. You can create complex MT4 and MT5 EAs and forex signals using a very easy to use graphical user interface. No coding, programming or MQL knowledge is required. There are two different products: EATree MT4 standard Edition V2.0 that supports the MQL4 language and EATree MT5 standard Edition V2.0 that supports the MQL5 language

How to write atraining plan-part one

How to write atraining plan-part oneHow to Write a Training Plan—Part One

By trainercanines. on 01/01/2009

What’s missing?

I don’t even know where to start. It just seems so huge and daunting. I don’t know how to define a plan, what steps to include, or when to raise criteria. It’s just easier to go out and do something, muddle around. I know that’s not efficient, but at least it’s something.

This was the answer I heard when I asked a training partner why she didn’t have a training plan. Unfortunately, her response is not unique; I talk to a lot of trainers without a concrete training plan.

I was one of them once. I didn’t need a plan—I knew what I wanted! However, once I started really tracking criteria and success ratios, I saw my training leap forward and gain momentum. Instead of needing weeks or months to train a behavior. I needed days. It was marvelously exhilarating.

Now, I nearly always have a training plan when I begin a formal session with a dog. Sometimes it’s written, sometimes it’s not—but it’s always there in my mind. If the behavior is complex or critical, I do keep written records of criteria and success. I want to identify any trouble spots easily and fix them instantly instead of fumbling with a bothersome behavior for a long time. Two minutes of training with a solid plan is equivalent to at least twenty minutes without, in my judgment.

But how do you approach designing a training plan? This can be a daunting task for beginners.

Set a goal

The first step is to determine what it is you really want to train. This may sound foolish, but it’s actually neglected by many! I want to teach my dog to heel, someone might say. But, does he really want formal heeling, or merely loose-leash walking? If it is formal heeling, at what criteria—is the dog looking ahead or up at the handler? Glued to the left leg as in competitive obedience, or slightly behind as in some field work? Duration for the few minutes of an AKC routine, or the 40 minutes required for an upper-level Mondioring trial?

While preparing for the BH (Begleithund Test, an entry-level test in the sport of Schutzhund), I calculated that on my club field I would need approximately 600 steps of heeling. Therefore, I knew that duration would be a big part of my criteria, as much as precision. I had to approach that trial differently than I’d approached our AKC Novice routine (patterns of approximately 40 steps).

Once I started really tracking criteria and success ratios, I saw my training leap forward and gain momentum.

Define the behavior

This may feel similar to goal-setting, but it’s an important intermediate step. Describe the behavior in detail, being as specific as possible. Especially if you are new to training plans, try actually writing this down—the process may surprise you! Pretend you are giving a very technical report to someone who has never even heard of this behavior.

Here are some examples, using my own definitions of common behaviors. (Some of these may differ from your concept of a perfect performance—that’s okay!)

The dog tucks his hips forward and beneath his body, folding his rear legs so that he rests squarely upon each hock. Rocking backward is incorrect. This behavior begins within a half-second of hearing the cue and is completed within one second. (Sit)

Laev guarding the helper

after releasing him on cue.

The dog is at the handler’s left side, aligned parallel to the handler’s direction of travel, with his withers at the handler’s pants seam. The dog is looking upward attentively at the handler. The dog’s default position is sitting; if the handler moves forward or backward, the dog moves with the handler’s left leg, maintaining his position and attention upon the handler and returning to the sit when the handler ceases movement. (Heel)

The dog will rest in a comfortable manner, in a sphinx-like or a relaxed down, between pantry and island, with nose at least 18 from the dishwasher door while the door is fully open. (Staying out of the way during dishes)

The dog is in a sphinx-like or relaxed down position with both elbows fully upon the mat’s surface; other body parts may overhang the edge of the mat. (Settling on a mat)

Could an artist draw an accurate picture from your description? Can you add more details to complete the image?

Too often I hear, Is this good enough? Should I click this? Of course, by the time anyone could answer that question, the clickable moment has passed. The behavior needs to be defined well in advance so that the trainer can capture that instant of success promptly and accurately.

Break it down

Next, you need to identify stepping stones toward the finished behavior. This is where many trainers find training plans tedious and intimidating. But if you have defined your behavior, breaking it down is much simpler!

Look at the details of the behavior. For settling on a mat, for example, I will need a down with two elbows on the mat. It’s simple to say that an intermediate step is one elbow on the mat, just as it’s easy to see that I can start with a down without either elbow fully on the mat, if necessary.

The behavior needs to be defined well in advance so that the trainer can capture that instant of success promptly and accurately.

This is where, as an instructor, I enjoy tormenting my clients (playfully).

What is the first part of lying on the mat?

Standing on the mat, someone might suggest.

What is the first part of standing on the mat?

Well, getting to the mat.

What is the first part of getting to the mat?

Taking a step toward it.

What is the first part of walking toward the mat?

Looking at it.

What is the first part of looking at the mat?

But sometimes you can get stumped trying to break down behaviors. This is one of the very few places in clicker training where working in negatives can be helpful. I might ask, Can the dog look at the mat if he is watching the handler?

No.

What then, does he need to do in order to look at the mat?

Look away from the handler.

From this series of Socratic queries, a very basic series of steps toward a finished settle onto a mat has been defined:

look away from the handler

look at the mat

step toward the mat

step onto the mat

lie on the mat

lie on the mat with at least one elbow wholly on the mat

lie on the mat with both/two elbows wholly on the mat

Preliminary plans usually aren’t complete, but they are an excellent starting point. Looking at the list above, I see a large gap between stepping on the mat and lying on the mat. I would guess that most dogs won’t make that leap automatically, and I’d want to add more steps there. What is the first part of lying down? Either sitting or lowering the head, depending on the dog’s preferred technique. (This is why observation of your animal is important.)

Laev preventing the attempted

escape of the bad guy.

Call to heel—an example

A sample training plan illustrates breaking down the goal behavior, working incrementally, and recovering from errors.

The call to heel is a relatively simple behavior chain, but is difficult in this context—verbally pulling a highly aroused dog away from a decoy in a Schutzhund protection routine. Traditionally, this is trained using strong aversives, as it is very difficult for the dog to leave the highly-desired helper! For style, I wanted my dog to back directly into heel position without taking her eyes from the decoy. Here is my training plan and its amendments.

GOAL: On the cue, the dog will back away from the helper, even during a full hold and bark, and move directly into heel position, with the handler approximately five paces behind the barking dog. The dog will sit at heel and remain there, attentive to both helper and handler.

In my kitchen, shape backing into heel. Use the counter and island to make straight backing easy. Ease away from walls to get backing without props for straightness. Add cue. Add distance to reach eight paces of straight backing into sit-at-heel.

Practice to fluency in other locations. Add excitement! Nothing gets Laev wired like a helper, but food is still a pretty high level of arousal. Have husband hold dinner dish and speak to her while handler stands behind her, call to heel. Click, send forward for food. Have husband move food dish, speak excitedly. Call to heel. Have husband tease openly and wildly with food. Call to heel.

Add a real, live decoy. Walk dog to sit in front of still decoy, away from blind. No stimulation. (Ignore dog’s quivering and barking.) Move back, call to heel. Click and send for bite. Start a few feet back from helper, send for hold and bark. Call to heel. Oops! Too much arousal; failure. Start directly in front of helper, cue for hold and bark without dog’s forward movement. Handler backs up, call to heel. Back up to five feet from helper, send for hold and bark, call to heel.

Start at increasing distances from helper, send for hold and bark, handler walks up to proper distance behind dog, call to heel.

Add a stimulating decoy. Hold dog as helper challenges dog. Send frenzied dog a short distance to hold and bark. Move back, call to heel. Click and bite. Increase distance.

Move helper to the blind. The blind is very, very emotionally loaded! Start directly in front of helper again, rebuild to distance. Incorporate call to heel in known blind search routine.

Plan for how to recover from errors! Oops! Hyper-stimulated dog on a new helper failed to come to heel when called. Take dog from helper (negative punishment ). Away from blind, place dog in sit, move backward, call to heel. Reinforce by cueing dog to search blind, to restart attempt.

Blend finished behavior into final competition behavior chain.

It’s a process — and there’s always more work to do!

Good training isn’t about a fixed formula to get a behavior; it’s about using the animal’s own skills and natural behaviors.

What happens if you forget a step? No worries—this is clicker training! When I realize that I’m not making the progress I predicted, I simply look at my plan and adjust it as necessary. Remember, good training isn’t about a fixed formula to get a behavior; it’s about using the animal’s own skills and natural behaviors. If I find I need an extra step, I simply adjust as needed.

With these instructions and steps, you can create a basic training plan and start working with your selected behavior. Next month I’ll have suggestions for developing that behavior, keeping track of progress, and recovering from mistakes.

About the author

Laura VanArendonk Baugh, CPDT, KPACTP, started playing with animals at an early age and never grew out of it. She owns Canines In Action, Inc. in Indianapolis, where she lives with her tolerant husband and her dobermans. Laura is also a Karen Pryor Academy faculty member.