Структуры, классы и интерфейсы - Типы данных - Основы языка - Справочник MQL5 - Справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
owl uses martingale based on previous order history (if loss, then multiply the lot by the martin coefficient...).
the previous order was closed by a stop with e.g. 0.2 lot at (Martin = 2...). then I switch off "auto-trading" in the MT4 terminal, or switch off the terminal completely and the owl stops trading.
Then when I switch on the "auto-trading" button - Then the owl switches on and opens the next lot with a volume of 0.4.
So, how to correct the code, so that when you turn off "auto-trading", turn off the terminal and then turn it on, the owl starts the next trading session with the starting lot,
specified in the settings (e.g. 0.01) rather than multiplying the last closed one in the history?
Скрипт показывает максимальную и минимальную корреляцию на выбранном отрезке истории, например за последние 10000 свечей. Таким образом можно заранее проанализировать какие пары и как коррелируют. В параметрах задаем Тф период корреляции и период анализа корреляции. Зеленым цветом выделяются пары с прямой корреляцией у которых корреляция выше...
owl uses martingale based on previous order history (if loss, then multiply the lot by the martin coefficient...).
the previous order was closed by a stop with e.g. 0.2 lot at (martin =2...) then I switch off "auto-trading" in the MT4 terminal or switch off the terminal completely and the owl stops trading.
Then when I switch on the "auto-trading" button - Then the owl switches on and opens the next lot with a volume of 0.4.
So, how to correct the code, so that when you turn off "auto-trading", turn off the terminal and then turn it on, the owl starts the next trading session with the starting lot,
specified in the settings (e.g. 0.01) rather than multiplying the last closed one in the history?
In order to add an indicator when passing another indicator handle to it (like applied_price) this other one must have only one buffer? Or is it possible to have several buffers? If there is more than one, in this case the first one takes data only from zero buffer of the second indicator?
Good afternoon. Help with the EA. According to the strategy, if a stop triggered, then the EA should add (the number of points) to the next set takeaway from the history by ID, but it does not do it for some reason.
Good afternoon. Help with the EA. According to the strategy, if a stop triggered, then the EA should add (the number of points) to the next set takeaway from the history by ID, but it does not do it for some reason.
What is wrong with the code?
it's not clear that it's "OrderMagicNumber()" and it's "stop_loss"
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi. Can you explain to a sucker how to initialise a structure array? For a normal array, it's simple
int HiddenFunc[3,2] = {1,2,3,4,5,6};
But what about the array of structures? Initialize an array with this structure, for example
struct MODE_KEY {string Key; bool Act;};
just like classes:
https://www.mql5.com/ru/docs/basis/types/classes
or arrays)
Hello.
testing owls. (the code is attached below).
owl uses martingale based on previous order history (if loss, then multiply the lot by the martin coefficient...).
the previous order was closed by a stop with e.g. 0.2 lot at (Martin = 2...). then I switch off "auto-trading" in the MT4 terminal, or switch off the terminal completely and the owl stops trading.
Then when I switch on the "auto-trading" button - Then the owl switches on and opens the next lot with a volume of 0.4.
So, how to correct the code, so that when you turn off "auto-trading", turn off the terminal and then turn it on, the owl starts the next trading session with the starting lot,
specified in the settings (e.g. 0.01) rather than multiplying the last closed one in the history?
Hello.
testing owls. (the code is attached below).
owl uses martingale based on previous order history (if loss, then multiply the lot by the martin coefficient...).
the previous order was closed by a stop with e.g. 0.2 lot at (martin =2...) then I switch off "auto-trading" in the MT4 terminal or switch off the terminal completely and the owl stops trading.
Then when I switch on the "auto-trading" button - Then the owl switches on and opens the next lot with a volume of 0.4.
So, how to correct the code, so that when you turn off "auto-trading", turn off the terminal and then turn it on, the owl starts the next trading session with the starting lot,
specified in the settings (e.g. 0.01) rather than multiplying the last closed one in the history?
You create a global variable
and then if there are no open/closed orders later "Start"
You create a global variable
and then if there are no open/closed orders later "Start".
Thank you.
I'm not good at this yet. I already have a datetime OpenTime; - should it be replaced withdatetime Start or in addition?
"If there are no open/closed orders later than "Start "Lots=Lot;" - is it not clear where to put it?
Thank you.
I'm not good at this yet. I already have datetime OpenTime; - should it be replaced withdatetime Start or in addition?
"and then if there are no open/closed orders later "Start "Lots=Lot; " - it's not at all clear where to refer to?
Describe in a nutshell what you want from this EA (the logic of its work),
I think you have a lot of unnecessary things in your code or I don't understand something.
Good afternoon. Help with the EA. According to the strategy, if a stop triggered, then the EA should add (the number of points) to the next set takeaway
from the history by ID, but it does not do it for some reason.
What is wrong with the code?
Good afternoon. Help with the EA. According to the strategy, if a stop triggered, then the EA should add (the number of points) to the next set takeaway
from the history by ID, but it does not do it for some reason.
What is wrong with the code?