Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 864
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
So do you need to define a holiday or a ban on trading?
Trade was allowed on the 27th.
if it is a weekend, then you need a news parser - to identify holidays/weekends.
It doesn't matter what the reason is for not trading on a particular symbol, you just need to see that it's not trading. And sorry, I'm not yet mature enough to understand the parser. What is it, and how is it spelled out in the code?
Hello!
Thanks again toAlexey Viktorov for the tip on the quotes - everything works. This Monday we have a situation - Germans have traded, while Englishmen have a day off. It turned out that in condition for euro position opening old values of pound were used. Hence the request: advise how to set check in the code that both symbols are traded on this day?
Thank you.
Source https://www.mql5.com/ru/articles/481
Source https://www.mql5.com/ru/articles/481
I don't know what to say here. Thank you, but I think this is completely off-topic. And why"if the score turns out to be real, terminate the EA immediately!"? I suppose I'm missing something.
I don't know what to say here. Thank you, of course, but I think this is completely off-topic. And why"if the score turns out to be real, terminate the EA immediately!"?
This is an example of the code from the article. The article covers an experimental code, not for trading, but the functions are the same. It's an old article, but it's a good one for beginners.
The output you're looking for cannot be calculated by the code. The trade was open, but the British did not trade and did not have normal quotes. Try to set "normality" for quotes and check if they are there. For example the spread, the tick volatility, the frequency of price updates, or whatever does not suit you. A flight of fancy.
I don't know what to say here. Thanks of course, but I think this is completely beside the point.
The easiest way to find out about the output is from the properties of the account, there will be restrictions on the account, IMHO of course. That's why I gave the code block above as an example
And in national outputs there may be character restrictions. In fact, check out the article, there's one there too:
It doesn't matter what the reason is for not trading on a particular symbol, you just need to see that it's not trading. And I'm sorry, I'm not yet mature enough to understand the parser. What is it, and how is it written in the code?
What does "no trading" mean? ?
trading is allowed - trade as much as you like)
Parser means that you have to download a file with news, then parse it - and determine the holiday-weekend.
Trade is allowed - trade as much as you like)
Trade is allowed, but there is no trading - it's a holiday.
But I think I've found a solution:
and then the position didn't open on the 27th.
Seems like a good solution to me. If anyone sees any pitfalls, I would be grateful to know. Thank you all.
Trading is allowed but there is no trading - they are on holiday.
i don't know how it is if trading is allowed to take place
(even on a holiday and a weekend).
looked at the news at the brokers - didn't see anyone restricting the pound on the 27th
I don't see how, if trading is allowed, then trading takes place
(even on a holiday and a weekend)
looked at the news at the brokers - didn't see anyone restricting the pound on the 27th
Actually I was not interested in the pound but in the FTSE100 index. I simplified it this way: as long as the euro, let it be the pound))). So there is no index data on the 27th.