![A Method of Drawing the Support/Resistance Levels](https://c.mql5.com/2/14/233_1.png)
![A Method of Drawing the Support/Resistance Levels](https://c.mql5.com/i/articles/overlay.png)
A Method of Drawing the Support/Resistance Levels
This article describes the process of creating a simple script for detecting the support/resistance levels. It is written for beginners, so you can find the detailed explanation of every stage of the process. However, though the script is very simple, the article will be also useful for advanced traders and the users of the MetaTrader 4 platform. It contains the examples of the data export into the tabular format, the import of the table to Microsoft Excel and plotting the charts for the further detailed analysis.
![Genetic Algorithms vs. Simple Search in the MetaTrader 4 Optimizer](https://c.mql5.com/2/13/135_1.gif)
![Genetic Algorithms vs. Simple Search in the MetaTrader 4 Optimizer](https://c.mql5.com/i/articles/overlay.png)
Genetic Algorithms vs. Simple Search in the MetaTrader 4 Optimizer
The article compares the time and results of Expert Advisors' optimization using genetic algorithms and those obtained by simple search.
![Pivot Points Helping to Define Market Trends](https://c.mql5.com/2/14/333_1.png)
![Pivot Points Helping to Define Market Trends](https://c.mql5.com/i/articles/overlay.png)
Pivot Points Helping to Define Market Trends
Pivot point is a line in the price chart that shows the further trend of a currency pair. If the price is above this line, it tends to grow. If the price is below this line, accordingly, it tends to fall.
![Expert System 'Commentator'. Practical Use of Embedded Indicators in an MQL4 Program](https://c.mql5.com/2/13/129_2.gif)
![Expert System 'Commentator'. Practical Use of Embedded Indicators in an MQL4 Program](https://c.mql5.com/i/articles/overlay.png)
Expert System 'Commentator'. Practical Use of Embedded Indicators in an MQL4 Program
The article describes the use of technical indicators in programming on MQL4.
![Events in МetaТrader 4](https://c.mql5.com/2/13/119_4.gif)
![Events in МetaТrader 4](https://c.mql5.com/i/articles/overlay.png)
Events in МetaТrader 4
The article deals with programmed tracking of events in the МetaТrader 4 Client Terminal, such as opening/closing/modifying orders, and is targeted at a user who has basic skills in working with the terminal and in programming in MQL 4.
![Synchronization of Expert Advisors, Scripts and Indicators](https://c.mql5.com/2/13/117_1.gif)
![Synchronization of Expert Advisors, Scripts and Indicators](https://c.mql5.com/i/articles/overlay.png)
Synchronization of Expert Advisors, Scripts and Indicators
The article considers the necessity and general principles of developing a bundled program that would contain both an Expert Advisor, a script and an indicator.
![Poll: Traders’ Estimate of the Mobile Terminal](https://c.mql5.com/2/14/345_1.png)
![Poll: Traders’ Estimate of the Mobile Terminal](https://c.mql5.com/i/articles/overlay.png)
Poll: Traders’ Estimate of the Mobile Terminal
Unfortunately, there are no clear projections available at this moment about the future of the mobile trading. However, there are a lot of speculations surrounding this matter. In our attempt to resolve this ambiguity we decided to conduct a survey among traders to find out their opinion about our mobile terminals. Through the efforts of this survey, we have managed to established a clear picture of what our clients currently think about the product as well as their requests and wishes in future developments of our mobile terminals.
![MQL4 as a Trader's Tool, or The Advanced Technical Analysis](https://c.mql5.com/2/13/137_1.png)
![MQL4 as a Trader's Tool, or The Advanced Technical Analysis](https://c.mql5.com/i/articles/overlay.png)
MQL4 as a Trader's Tool, or The Advanced Technical Analysis
Trading is, first of all, a calculus of probabilities. The proverb about idleness being an engine for progress reveals us the reason why all those indicators and trading systems have been developed. It comes that the major of newcomers in trading study "ready-made" trading theories. But, as luck would have it, there are some more undiscovered market secrets, and tools used in analyzing of price movements exist, basically, as those unrealized technical indicators or math and stat packages. Thanks awfully to Bill Williams for his contribution to the market movements theory. Though, perhaps, it's too early to rest on oars.
![Effective Averaging Algorithms with Minimal Lag: Use in Indicators](https://c.mql5.com/2/14/297_2.png)
![Effective Averaging Algorithms with Minimal Lag: Use in Indicators](https://c.mql5.com/i/articles/overlay.png)
Effective Averaging Algorithms with Minimal Lag: Use in Indicators
The article describes custom averaging functions of higher quality developed by the author: JJMASeries(), JurXSeries(), JLiteSeries(), ParMASeries(), LRMASeries(), T3Series(). The article also deals with application of the above functions in indicators. The author introduces a rich indicators library based on the use of these functions.
![What Is a Martingale?](https://c.mql5.com/2/14/288_3.png)
![What Is a Martingale?](https://c.mql5.com/i/articles/overlay.png)
What Is a Martingale?
A short description of various illusions that come up when people trade using martingale betting strategies or misuse spiking and the like approaches.
![Testing Visualization: Manual Trading](https://c.mql5.com/2/13/195_5.png)
![Testing Visualization: Manual Trading](https://c.mql5.com/i/articles/overlay.png)
Testing Visualization: Manual Trading
Testing manual strategies on history. Check how your trading algorithm works turning a deaf ear to programming niceties!
![Testing Visualization: Functionality Enhancement](https://c.mql5.com/2/13/176_30.gif)
![Testing Visualization: Functionality Enhancement](https://c.mql5.com/i/articles/overlay.png)
Testing Visualization: Functionality Enhancement
The article describes software that can make strategy testing highly similar to the real trading.
![Testing Visualization: Trade History](https://c.mql5.com/2/14/398_12.png)
![Testing Visualization: Trade History](https://c.mql5.com/i/articles/overlay.png)
Testing Visualization: Trade History
The article describes the possibilities of convenient viewing the trade history when visualizing tests. Starting from build 196, MetaTrader 4 Client Terminal offers testing visualization function. It allows controlling the Expert Advisors' testing on a brand new level. Now, the trading programmer can watch every action of his or her Expert Advisor checking its operation on history!
![Beginners' Mistakes when Working with MetaTrader 4 Client Terminal](https://c.mql5.com/2/14/278_2.gif)
![Beginners' Mistakes when Working with MetaTrader 4 Client Terminal](https://c.mql5.com/i/articles/overlay.png)
Beginners' Mistakes when Working with MetaTrader 4 Client Terminal
Err is human. Everybody makes mistakes: more or less frequently, through ignorance or inadvertently. You ask and we answer your questions about: terminal time, test results, Print in journal, symbols, history for Tester, history import, leverage, traffic, hints, scaling, wrong calculations, Invalid account, Empty News, Price changed, Not Enough Money, Market Is Closed.
![Graphic Expert Advisor: AutoGraf](https://c.mql5.com/2/13/111_1.gif)
![Graphic Expert Advisor: AutoGraf](https://c.mql5.com/i/articles/overlay.png)
Graphic Expert Advisor: AutoGraf
The article shows the workability of graphics in creation of a convenient interface to manage trading.
![Trading Tactics on Forex](https://c.mql5.com/2/14/205_1.png)
![Trading Tactics on Forex](https://c.mql5.com/i/articles/overlay.png)
Trading Tactics on Forex
The article will help a beginning trader to develop trading tactics on FOREX.
![Secrets of MetaTrader 4 Client Terminal: File Library in MetaEditor](https://c.mql5.com/2/14/211_2.gif)
![Secrets of MetaTrader 4 Client Terminal: File Library in MetaEditor](https://c.mql5.com/i/articles/overlay.png)
Secrets of MetaTrader 4 Client Terminal: File Library in MetaEditor
When creating custom programs, code editor is of great importance. The more functions are available in the editor, the faster and more convenient is creation of the program. Many programs are created on basis of an already existing code. Do you use an indicator or a script that does not fully suit your purposes? Download the code of this program from our website and customize it for yourselves.
![Orders Management - It's Simple](https://c.mql5.com/2/13/126_1.gif)
![Orders Management - It's Simple](https://c.mql5.com/i/articles/overlay.png)
Orders Management - It's Simple
The article deals with various ways of how to control open positions and pending orders. It is devoted to simplifying of writing Expert Advisors.
![Trading Strategies](https://c.mql5.com/2/13/175_1.png)
![Trading Strategies](https://c.mql5.com/i/articles/overlay.png)
Trading Strategies
All categories classifying trading strategies are fully arbitrary. The classification below is to emphasize the basic differences between possible approaches to trading.
![Ten Basic Errors of a Newcomer in Trading](https://c.mql5.com/2/13/173_1.png)
![Ten Basic Errors of a Newcomer in Trading](https://c.mql5.com/i/articles/overlay.png)
Ten Basic Errors of a Newcomer in Trading
There are ten basic errors of a newcomer intrading: trading at market opening, undue hurry in taking profit, adding of lots in a losing position, closing positions starting with the best one, revenge, the most preferable positions, trading by the principle of 'bought for ever', closing of a profitable strategic position on the first day, closing of a position when alerted to open an opposite position, doubts.
![Multiple Null Bar Re-Count in Some Indicators](https://c.mql5.com/2/13/139_6.png)
![Multiple Null Bar Re-Count in Some Indicators](https://c.mql5.com/i/articles/overlay.png)
Multiple Null Bar Re-Count in Some Indicators
The article is concerned with the problem of re-counting of the indicator value in the MetaTrader 4 Client Terminal when the null bar changes. It outlines general idea of how to add to the indicator code some extra program items that allow to restore program code saved before multiple re-counting.
![Secrets of the MetaTrader 4 Client Terminal: Indicators](https://c.mql5.com/2/13/180_6.png)
![Secrets of the MetaTrader 4 Client Terminal: Indicators](https://c.mql5.com/i/articles/overlay.png)
Secrets of the MetaTrader 4 Client Terminal: Indicators
Are you going to write your own indicator? Perhaps you will find that what you need among indicators already embedded in the client terminal. So why to reinvent the wheel?
A summary table of integrated indicators' characteristics; special features and methods of attaching indicators to a chart; building of levels; displaying of indicators on different timeframes.
![Testing of Expert Advisors in the MetaTrader 4 Client Terminal: An Outward Glance](https://c.mql5.com/2/13/172_8.png)
![Testing of Expert Advisors in the MetaTrader 4 Client Terminal: An Outward Glance](https://c.mql5.com/i/articles/overlay.png)
Testing of Expert Advisors in the MetaTrader 4 Client Terminal: An Outward Glance
What happens after you have clicked on the "Start" button? The article answers this and many other questions.
![Secrets of MetaTrader 4 Client Terminal: Alerting System](https://c.mql5.com/2/13/159_6.png)
![Secrets of MetaTrader 4 Client Terminal: Alerting System](https://c.mql5.com/i/articles/overlay.png)
Secrets of MetaTrader 4 Client Terminal: Alerting System
How to be aware of what happens in the terminal and on your account without permanent looking at the monitor.
System events; custom events; wave and executable files; electronic messages; setting up SMTP server access; publications; setting up FTP server access.
![Secrets of MetaTrader 4 Client Terminal](https://c.mql5.com/2/13/158_10.png)
![Secrets of MetaTrader 4 Client Terminal](https://c.mql5.com/i/articles/overlay.png)
Secrets of MetaTrader 4 Client Terminal
21 way to ease the life: Latent features in MetaTrader 4 Client Terminal.
Full screen; hot keys; Fast Navigation bar; minimizing windows; favorites; traffic reduction; disabling of news; symbol sets; Market Watch; templates for testing and independent charts; profiles; crosshair; electronic ruler; barwise chart paging; account history in the chart; types of pending orders; modifying of StopLoss and TakeProfit; undo deletion; chart print.
![My First "Grail"](https://c.mql5.com/2/13/144_2.png)
![My First "Grail"](https://c.mql5.com/i/articles/overlay.png)
My First "Grail"
Examined are the most frequent mistakes that lead the first-time programmers to creation of a "super-moneymaking" (when tested) trading systems. Exemplary experts that show fantastic results in tester, but result in losses during real trading are presented.
![Considering Orders in a Large Program](https://c.mql5.com/2/13/114_3.gif)
![Considering Orders in a Large Program](https://c.mql5.com/i/articles/overlay.png)
Considering Orders in a Large Program
General principles of considering orders in a large and complex program are discussed.
![A Pause between Trades](https://c.mql5.com/2/12/103_1.gif)
![A Pause between Trades](https://c.mql5.com/i/articles/overlay.png)
A Pause between Trades
The article deals with the problem of how to arrange pauses between trade operations when a number of experts work on one МТ 4 Client Terminal. It is intended for users who have basic skills in both working with the terminal and programming in MQL 4.
![MagicNumber: "Magic" Identifier of the Order](https://c.mql5.com/2/13/105_2.gif)
![MagicNumber: "Magic" Identifier of the Order](https://c.mql5.com/i/articles/overlay.png)
MagicNumber: "Magic" Identifier of the Order
The article deals with the problem of conflict-free trading of several experts on the same МТ 4 Client Terminal. It "teaches" the expert to manage only "its own" orders without modifying or closing "someone else's" positions (opened manually or by other experts). The article was written for users who have basic skills of working with the terminal and programming in MQL 4.
![How to Use Crashlogs to Debug Your Own DLLs](https://c.mql5.com/2/13/153_6.gif)
![How to Use Crashlogs to Debug Your Own DLLs](https://c.mql5.com/i/articles/overlay.png)
How to Use Crashlogs to Debug Your Own DLLs
25 to 30% of all crashlogs received from users appear due to errors occurring when functions imported from custom dlls are executed.
![Working with Files. An Example of Important Market Events Visualization](https://c.mql5.com/2/13/112_2.gif)
![Working with Files. An Example of Important Market Events Visualization](https://c.mql5.com/i/articles/overlay.png)
Working with Files. An Example of Important Market Events Visualization
The article deals with the outlook of using MQL4 for more productive work at FOREX markets.
![Error 146 ("Trade context busy") and How to Deal with It](https://c.mql5.com/2/17/94_1.gif)
![Error 146 ("Trade context busy") and How to Deal with It](https://c.mql5.com/i/articles/overlay.png)
Error 146 ("Trade context busy") and How to Deal with It
The article deals with conflict-free trading of several experts on one МТ 4 Client Terminal. It will be useful for those who have basic command of working with the terminal and programming in MQL 4.
![Information Storage and View](https://c.mql5.com/2/13/128_4.gif)
![Information Storage and View](https://c.mql5.com/i/articles/overlay.png)
Information Storage and View
The article deals with convenient and efficient methods of information storage and viewing. Alternatives to the terminal standard log file and the Comment() function are considered here.
![Genetic Algorithms: Mathematics](https://c.mql5.com/2/13/133_1.png)
![Genetic Algorithms: Mathematics](https://c.mql5.com/i/articles/overlay.png)
Genetic Algorithms: Mathematics
Genetic (evolutionary) algorithms are used for optimization purposes. An example of such purpose can be neuronet learning, i.e., selection of such weight values that allow reaching the minimum error. At this, the genetic algorithm is based on the random search method.
![How to Evaluate the Expert Testing Results](https://c.mql5.com/2/13/125_2.gif)
![How to Evaluate the Expert Testing Results](https://c.mql5.com/i/articles/overlay.png)
How to Evaluate the Expert Testing Results
The article gives formulas and the calculation order for data shown in the Tester report.
![Requirements Applicable to Articles Offered for Publishing at MQL4.com](https://c.mql5.com/2/17/99_6.gif)
![Requirements Applicable to Articles Offered for Publishing at MQL4.com](https://c.mql5.com/i/articles/overlay.png)
Requirements Applicable to Articles Offered for Publishing at MQL4.com
Requirements Applicable to Articles Offered for Publishing at MQL4.com
![Expert Advisor Sample](https://c.mql5.com/2/17/82_1.gif)
![Expert Advisor Sample](https://c.mql5.com/i/articles/overlay.png)
Expert Advisor Sample
The principles of MQL4-programs development are shown on sample of creating a simple Expert Advisor system based on the standard MACD indicator.
![What the Numbers in the Expert Testing Report Mean](https://c.mql5.com/2/17/81_1.gif)
![What the Numbers in the Expert Testing Report Mean](https://c.mql5.com/i/articles/overlay.png)
What the Numbers in the Expert Testing Report Mean
Article explains how to read testing reports and to interpret the obtained results properly.