paladin800: Thank you very much. Your tip made it work! I was guided by the article How to use the Standard Library trade classes when writing an EA and there in the section "1.6 CPositionInfo Class" there is myposition.Type(), which should probably be corrected.
В этой статье вы научитесь получать торговые сигналы, необходимые для работы торговой системы. Приведены примеры формирования 20 торговых сигналов в виде отдельных пользовательских функций, которые можно использовать в написании экспертов. Для вашего удобства все функции из статьи собраны в один включаемый mqh-файл, который легко подключается к будущему эксперту.
In the article How to use Standard Library trade classes when writing an EA, section "1.2 Class CSymbolInfo" for msymbol.Ask() it says "Used to get the current Ask price for a set symbol." Maybe something in the article needs to be corrected or I have a mistake somewhere?
In the article How to use Standard Library trading classes when writing an EA, section "1.2 Class CSymbolInfo" for msymbol.Ask() it says "Used to get the current Ask price for a set symbol." Maybe something in the article needs to be corrected or I have a mistake somewhere?
Thanks, it works. Maybe to insert RefreshRates in the class before ask (bid) price definition, otherwise a newbie may understand the wording "Used to get current price..." by analogy with how in MQL4 the current Ask is without refresh of quotes, or add refresh before price definition in the article, or in the example it should be written directly in the article.
paladin800: Thank you, it works. Maybe to insert RefreshRates in class before defining ask (bid) price, otherwise a newbie may understand the wording "Used to get current price..." by analogy with how in MQL4 the current Ask is located without refresh of quotes.
Thank you very much. Your tip made it work! I was guided by the article How to use the Standard Library trade classes when writing an EA and there in the section "1.6 CPositionInfo Class" there is myposition.Type(), which should probably be corrected.
Has anyone managed to get trading signals from MQL5???
Did this:
Result:
In the article How to use Standard Library trade classes when writing an EA, section "1.2 Class CSymbolInfo" for msymbol.Ask() it says "Used to get the current Ask price for a set symbol." Maybe something in the article needs to be corrected or I have a mistake somewhere?
Did this:
Result:
In the article How to use Standard Library trading classes when writing an EA, section "1.2 Class CSymbolInfo" for msymbol.Ask() it says "Used to get the current Ask price for a set symbol." Maybe something in the article needs to be corrected or I have a mistake somewhere?
Make it like this:
Make it so:
Thank you, it works. Maybe to insert RefreshRates in class before defining ask (bid) price, otherwise a newbie may understand the wording "Used to get current price..." by analogy with how in MQL4 the current Ask is located without refresh of quotes.
No.
mysymbolinfo.Name(_Symbol);Then it's not automatic!
Method: mysymbol.RefreshRates()
Description: Used to refresh quotes. When a new symbol is set, it is called automatically.
Then it turns out that it is not automatic!
It appears to be automatic, but only when a new character is set.
Then you should write - when you change the character