You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
In other words, when we have a chance, we look at the equity. If it has exceeded the previous level, then:
Maybe it would be better to go to step 6? I like it better :)
I have not heard anything, but maybe this will be more interesting.
My Expert Advisor is still version 1.1 (it's time to quit it and get another version, the more so because Yuri is not boring me), put the calculation of 3 pairs EURUSD EURCHF EURJPY. Moreover, EURJPY went down 100 points all day.
I have considered the same unlucky situation, namely on 15/03/05, since 00 o'clock and 24 hours.
Took depo 1000, BL 1000, BeginPrice -current. If you look at the table _view, you will see in the comment field, at the end of the file - trying to open positions and lack of funds. This is exactly what Yuri said about the small deposit. I have started to output the funds involved at the moment of order opening into the _resources table at the end so that you can see it. Yes, I build the provided chart itself using data from the _resources table.
I.e. when there is an opportunity, we look at equity. If it has exceeded the previous level, then:
.
In other words, when we have a chance, we look at equity. If it has exceeded the previous level, then:
Before you insult, read carefully what you yourself have written:
That is, when there is an opportunity, we look at equity. If it has exceeded the previous level, then:
1. Stop all advisors from working.
.......
When there is an opportunity to look at equity again and change the settings, we look at it and if the previous level is exceeded, we proceed to step 1. If it is not exceeded yet, we proceed to step 5
5.Start the EA with new settings.
And so:
1. Expert Advisors work.
2. check equity.
3. if the previous equity is exceeded, stop the Expert Advisors and change their settings.
4. If it is not exceeded, launch the existing Expert Advisors with new settings. What settings? What do we change for Magic and beginPrice? Then it turns out that we have to change the settings regardless of the change in equity.
I.e. when there is an opportunity, we look at equity. If it has exceeded the previous level, then:
.
Maybe it would be better to go to step 6? I like it better :)
I looked at the change of BeginPrice, well, if you set a different value from the current price at the very beginning. I will make the following general recommendation - in the code of advisor, at the very beginning (init()), it is desirable to insert a check for the obtained difference between the BeginPrice-current price (something like a "foolproof" protection). If this value exceeds 50 points, then throw out the Message, at least to confirm that the man did not make a mistake (not a typo) and knowingly goes for such a difference. The point is that the size of the initial lot and the initial transaction depends on the initial BeginPrice. And if a person accidentally sets a difference of 100p, then about 0.5 lots will be opened initially, depending on which way BeginPrice is pulled. Well, just in case, I think it would not hurt to make such a check.
Here is what I get, if I increase BeginPrice by (-80 pips) in the currency pair EURUSD, and in this group, there are also currency pairs EURCHF and EURJPY and their BeginPrice = current. The Expert Advisor immediately buys 0. 4 lots on EURUSD and then hedges its purchase by selling 0. 2 lots for EURCHF and another 0.1 lot for EURJPY. Distribution of lots by sales is not clear to me. It seems to me that he will sell 0.2 lots at the pair standing first after EURUSD and the remaining volume - at the second one standing next to EURUSD. Well, if you rely on the fact that "God willing", it's all the same. But if I slightly regulate the process and try to sell 0.2 lots at EURJPY, how can I do it without changing the Expert Advisor's code?
So, I have a question to Yuri or MQL Admins, or maybe somebody can give me a link: What does the sequence of processing of EAs located on different currency pairs depend on, if we assume that the "tick" comes simultaneously, say, on EURCHF and EURJPY. Is there some kind of order in which EAs trigger? I think that either the quotes will come in some sort of sorting by currency pairs (and something will stand first) or the triggering will be performed according to the order in which the Expert Advisors run on these currency pairs. Well, I would like to hear the truth from the experts.
I am attaching a tiny file (see comment at the tail). Maybe, it will make my question clearer. At the beginning I did not sort pairs myself, believing that everyone is equal in one currency pair, but later it became clear that it is important and I have made a forced sorting of currency pairs in my program. That's why I'm asking mql what conditions "some are more equal than others"?
The fact that EIRUSD (in the file) is now the first position in sorting is not important, because the BeginPrice for it has been postponed and the first movement will happen exactly at EURUSD (everything is normal and clear there), but what currency pair should I use next?
Sincerely, Fed
P.S. Yes, everything I say here may not be true, I am wrong more often than others. That's why I'm chatting on this forum, to get Yuri to correct me.
I looked at the change of BeginPrice, well, if you set a different value from the current price at the very beginning. I will make the following general recommendation - in the code of advisor, at the very beginning (init()), it is desirable to insert a check for the obtained difference between the BeginPrice-current price (something like a "foolproof" protection). If this value exceeds 50 points, then throw out the Message, at least to confirm that the man did not make a mistake (not a typo) and knowingly goes for such a difference. The point is that the size of the initial lot and the initial transaction depends on the initial BeginPrice. And if a person accidentally sets a difference of 100p, then about 0.5 lots will be opened initially, depending on which way BeginPrice is pulled. Well, just in case, I think it would not hurt to make such a check.
Here is what I get, if I increase BeginPrice by (-80 pips) in the currency pair EURUSD, and in this group, there are also currency pairs EURCHF and EURJPY and their BeginPrice = current. The Expert Advisor immediately buys 0. 4 lots on EURUSD and then hedges its purchase by selling 0. 2 lots for EURCHF and another 0.1 lot for EURJPY. Distribution of lots by sales is not clear to me. It seems to me that he will sell 0.2 lots at the pair standing first after EURUSD and the remaining volume - at the second one standing next to EURUSD. Well, if you rely on the fact that "God willing", it's all the same. But if I slightly regulate the process and try to sell 0.2 lots at EURJPY, how can I do it without changing the Expert Advisor's code?
So, I have a question to Yuri or MQL Admins, or maybe somebody can give me a link: What does the sequence of processing of EAs located on different currency pairs depend on, if we assume that the "tick" comes simultaneously, say, on EURCHF and EURJPY. Is there some kind of order in which EAs trigger? I think that either the quotes will come in some sort of sorting by currency pairs (and something will stand first) or the triggering will be performed according to the order in which the Expert Advisors run on these currency pairs. Well, I would like to hear the truth from the experts.
I attached a tiny file (see comment at the tail). Maybe, it will make my question clearer. At the beginning I did not sort pairs myself, believing that everyone is equal in one currency pair, but later it became clear that it is important and I have made a forced sorting of currency pairs in my program. That's why I'm asking mql what conditions "some are more equal than others"?
The fact that EIRUSD (in the file) is now the first position in the sorting is not important, because the BeginPrice for it has been postponed and the first movement will happen exactly at EURUSD (everything is normal and clear there), but what currency pair should I use next?
Sincerely, Fed
P.S. Yes, everything I say here may not be true, I am wrong more often than others. That's why I'm chatting on this forum, to get Yuri to correct me.
The initial Fair Value is always equal to the beginPrice value. After the price has changed, the Expert Advisors act as follows:
For now I'll try this version, and after the holidays (in July) I will change the code and look closely to Swaper (if Mr. Reshetov will not show me something newer).
Regards, Fed.
I just keep looking at version 1.1 and everything I write applies to it. To be honest - I like it. And it is possible to play on it, and it seems to me that you can get by with not so huge a deposit, if you calculate everything competently and understand the reaction of the settings well, and if you change the EA or observe its work a little bit.
I have very good results in less than two weeks with my modest depo of 3000.