Hello, help me out here. The trading robot, EA, Expert Advisor are not working. I downloaded everything possible and wanted to check how it all works. I thought my deposit was too small, but my demo account is the same. I thought I had a small deposit, but the same on a demo account.
Hello, help me out here. The trading robot, EA, Expert Advisor are not working. I downloaded everything possible and wanted to check how it all works. I thought my deposit was too small, but my demo account is the same. I thought my deposit was small but the same on my demo account.
How did you know that the robot did not trade? Did you make sure that all the conditions required by the trading strategy were fulfilled in order to open the position? Or did you just placed the robot and it did not immediately open the trade?
Hello, help me out here. The trading robot, EA, Expert Advisor are not working. I downloaded everything possible and wanted to check how it all works. I thought my deposit was too small, but my demo account is the same. I thought I had a small deposit but the same on a demo account.
Please help me to write a function : close orders from a bigger lot to a smaller one (string Symbol, int type, bool hand orders, int Magic)
I.e. symbol selection, type, whether the hand orders are taken into account, magic number.
Yes, it is ready to use.
//+----------------------------------------------------------------------------+//| Автор : Ким Игорь В. aka KimIV, http://www.kimiv.ru |//+----------------------------------------------------------------------------+//| Версия : 11.12.2008 |//| Описание : Закрытие позиций в порядке сортировки по размерам лотов. |//+----------------------------------------------------------------------------+//| Параметры: |//| sy - наименование инструмента ( "" - любой символ, |//| NULL - текущий символ) |//| op - операция ( -1 - любая позиция) |//| mn - MagicNumber ( -1 - любой магик) |//| sd - Направление сортировки лотов (MODE_ASCEND - возрастание, |//| MODE_DESCEND - убывание) |//+----------------------------------------------------------------------------+void ClosePosBySortLots(string sy="", int op=-1, int mn=-1, int sd=MODE_DESCEND) {
double a[][2]; // Массив лотов и тикетовint i, k=OrdersTotal(); // Счётчик и количество ордеровint p=0; // Количество позицийif (sy=="0") sy=Symbol();
for (i=0; i<k; i++) {
if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
if ((OrderSymbol()==sy || sy=="") && (op<0 || OrderType()==op)) {
if (OrderType()==OP_BUY || OrderType()==OP_SELL) {
if (mn<0 || OrderMagicNumber()==mn) {
p++;
ArrayResize(a, p);
a[p-1][0]=OrderLots();
a[p-1][1]=OrderTicket();
}
}
}
}
}
// вдруг позиций нету, тогда и закрывать нечегоif (p>0) {
ArraySort(a, WHOLE_ARRAY, 0, sd);
for (i=0; i<p; i++) {
if (OrderSelect(a[i][1], SELECT_BY_TICKET)) {
// проверим незакрытость на всякий случай,// может какая-то позиция уже закрылась по стопу/тейкуif (OrderCloseTime()==0) ClosePosBySelect();
}
}
}
}
I draw horizontal bars. The indicator correctly, according to coordinates puts lines, but at some point, on a new bar a line is put on one, arbitrary price, consisting of many segments of different lengths, superimposed on each other. The price of setting "aliens" does not fit any condition. Where do they come from, how can they be prevented?
I draw horizontal bars. The indicator correctly, according to coordinates puts lines, but at some point, on a new bar a line is put on one, arbitrary price, consisting of many segments of different lengths, superimposed on each other. The "alien" setting price does not fit any condition. Where do they come from, how can they be prevented?
The names of the lines change and hence the multitude of lines.
In such cases it is best to include the opening time of the bar in the line name.
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.
Hello, help me out here. The trading robot, EA, Expert Advisor are not working. I downloaded everything possible and wanted to check how it all works. I thought my deposit was too small, but my demo account is the same. I thought I had a small deposit, but the same on a demo account.
Hello, help me out here. The trading robot, EA, Expert Advisor are not working. I downloaded everything possible and wanted to check how it all works. I thought my deposit was too small, but my demo account is the same. I thought my deposit was small but the same on my demo account.
How did you know that the robot did not trade? Did you make sure that all the conditions required by the trading strategy were fulfilled in order to open the position? Or did you just placed the robot and it did not immediately open the trade?
Hello, help me out here. The trading robot, EA, Expert Advisor are not working. I downloaded everything possible and wanted to check how it all works. I thought my deposit was too small, but my demo account is the same. I thought I had a small deposit but the same on a demo account.
I do not know what it says in the two tabs?
Yes, it is ready to use.
Yes, it's ready to go.
Tried to use it, for some reason it doesn't work.
Yes, there is a full-fledged ClosePosBySelect() function there, not just sending a trade order without status and result checks.
Search the site will give you a link to kim's ClosePosBySelect() function
Tried to use it, for some reason it doesn't work.
In the header of this function there is a website address, go download all the libraries,
It works just fine.
I draw horizontal bars. The indicator correctly, according to coordinates puts lines, but at some point, on a new bar a line is put on one, arbitrary price, consisting of many segments of different lengths, superimposed on each other. The price of setting "aliens" does not fit any condition. Where do they come from, how can they be prevented?
I draw horizontal bars. The indicator correctly, according to coordinates puts lines, but at some point, on a new bar a line is put on one, arbitrary price, consisting of many segments of different lengths, superimposed on each other. The "alien" setting price does not fit any condition. Where do they come from, how can they be prevented?
The names of the lines change and hence the multitude of lines.
In such cases it is best to include the opening time of the bar in the line name.