Thursday, May 26, 2011

creating custom experts advisor

Hello dear readers. For many of you as I understood from the letters, creating custom experts is in full swing. It is natural that there are questions as he promised, this lesson will be devoted to answer them.
13.1. The question-answer
"... During the writing of the experts often need to keep changing by the current moment, in a separate file. In the description of the language these moments are not so clearly described. The big claim to say about the possibilities for preserving detail ... "
Working with files is subject to a special lesson, we will talk about it in the next release. Whether you want to say about this issue. Declaring variables in section var, we set their first value (the value of variables at the beginning of the first expert). Mon experts are implemented, there is output by an expert, but the values ��of all variables are kept. The following negligence of an expert is running, but variables may already have other values, not in brackets after the variable name in the compartment var.
"... How is it possible to make the user an indication of 3 lines? ..."
By the current moment in the creation of indicators MT with two sets of data, or any particular indicator is possible, a maximum can consist of two lines. In fact, this problem is strongly needed in case the indicator of more than two lines should scale according to a schedule of prices. If the indicator should settle down in one window with the prices of most simple way is razbitie algorithm for some user indicators.
"... Is there a possibility for MT separation of open positions from positions open arms by the expert, the one tool ..."
There is no such possibility in MT is not specifically defined. It is possible to distinguish positions, for example, about the size of the position (quantity lotov) or in steps. The trelingu transactions to identify will fail. If the roots of an issue are able to test some experts on one account for this purpose the most convenient and simple solution is to open a few demos of accounts and to start simultaneously several MT.
"... 1 Chance of an expert." Monitorit "market, or check the serial opening within a set list of trading tools. (Napr: EUR/USDM30, EUR/USDH1, USD/CHFM30, GBP/USDH1). If the state of the opening is carried out to open further opportunity to work with it. After closing the position again to continue the "observation".
2nd Just like in point 1, just after opening position odomu of tools and work to continue "monitoring" and in performance of a condition of opening another tool to open up the opportunity to continue the process of paralelno 2 positions ... "
Monitoring of each instrument is necessary perekrepljat expert. In each of them may sign up sheet at the beginning of the code.
If TotalTrades> 0 then exit;

Makes sense that if any pair of position will be open is no longer an expert can enter the market. We seem to remember that an expert, for example, EUR/USDM30 EUR/USDH1 and it is a symbol, but different programs, all of the following.
"... For me a question. I can not get the F4 button in the editor of MT to write an expert. I skachival MT from the Internet. If you can explain .."
This problem was in me before, now something is present, it is a bug MT. Perezagruzka machines perfectly helps.
"... What is not visible external variables in the indicator, how do I correctly spelled all ..."
Do not forget that in the field of external experts to define variables and indicators in her user inputs and to confuse it's not necessary.
"... Why not open the expert position if the situation came? ..."
In order SetOrder in the fourth parameter is as much as possible proskalzavanie allowed the opening of the transaction probably will not very big, and the market at the moment the test was fast.
"... How to be if you want to attach a tool some experts? ..."
It is possible to open up some plans with a tool and a plan to attach some different experts.
"... Why MT User indicator for custom manufacturing strong brakes? ..."
MT has such a problem for its decision the indicator should be monitored for the entire history of citations, for example, for the last 500 bars. The amount of bars to display the indicator can be done in an adjusted variable.
I mean, the next version will be practical, you must write, if you have questions or offers.

No comments:

Post a Comment

Powered by Blogger.