[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 491
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
вот скрипт. присоединяешь к любому графику-он закрывает все открытые ордера.
To close orders, I use the JimsCloseOrders Expert Advisor which can close any order at will - either profit or loss ones, or all of them, although I have to correct it a little - here are two lines of code
extern bool CloseOpenOrders = true;
extern bool CloseOrdersWithPlusProfit = false;
false and true should be interchanged, otherwise, if this setting is done when installing on a chart, it somehow starts to close all orders (probably due to sequence of commands executed by the program, but I'm not sure, I'm not qualified).
Ihave a question for a pro.
I want to run, for example, the Expert Advisor I mentioned above as soon as possible. However, all Expert Advisors and scripts start working as soon as the first tick has been received on the chart. If the currency pair selected for installation of the Expert Advisor turned out not to be very "active" at that moment, the losses can be significant.
Is there an opportunity to create a "common" chart for all currencies or to use the incoming ticks of any other pair? Ticks are received in the terminal almost continuously. Where can they be intercepted?
I have a question for the pros.
I want to run, for example, the Expert Advisor I mentioned above as soon as possible, but all Expert Advisors and scripts start working as soon as the first tick is received on the chart. If the currency pair selected for installation of the Expert Advisor turned out not to be very "active" at that moment, the losses can be significant.
Is there an opportunity to create a "common" chart for all currencies, or to use the incoming ticks of any other pair? Ticks are received in the terminal almost continuously. Where can I intercept them?
It is sufficient to loop the Expert Advisor. Then it will not work by ticks, but with a certain time delay (set by the user). For multicurrency options (IMHO) the best solution.
Достаточно зациклить эксперта. Тогда он будет работать не по тикам, а с определенной временной задержкой (задаваемой пользователем). Для мультивалютных вариантов (ИМХО) лучшее решение.
Obviously, it's not that complicated, but unfortunately, "we haven't been through that" and I can't do it yet. But it would be nice to see how an EA would behave with such a refinement. Thank you.
V
___________ =
high-low
If not, may someone sketch a histogram in a separate window?
V
___________ =
high-low
If not, may someone sketch a histogram in a separate window?
Требуется, как можно быстрее запустить, например, советника, о котором шла речь выше, но все советники и скрипты начинают действовать с момента поступления первого тика на график. Если же выбранная для установки советника валютная пара оказалась не очень "активной" в этот момент, то потери могут быть значительными.
Существует ли возможность создания "общего" графика для всех валют, или воспользоваться поступающим тикам любой другой пары? Тики же в терминал поступают почти непрерывно. Где их можно перехватить?
You can do a hot start in
init(){
while (true) {
//Eternal high.
}
I attach it to a currency pair - no effect. Will there be one or is there something wrong here? Please explain.
So what error does it say?