[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 673
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
I.e. I need to add a call to display information in indicator window in init()?
try writing in init()
int init()
{
Alert("I can't find your box, I'm out of here, although I was called in the init() section");
return(0);
}
Well, try writing in init()
int init()
{
Alert("I can't find your box, I'm out of here, although I was called in the init() section");
return(0);
}
Help me deal with this problem! If I have a losing trade, I need to change the lot, if not - no. I do so ......
I have to change the lot if I want to change it, but I will not. The thing is that when I change lot I already have a pending order (with other lots). I need to delete these orders and change the number of lots in them (to a new one), but the parameters remain the same !
Dear programmers,
Please answer the following question:
Can you tell me why data from a string is not correctly entered into the array?
Here's what I've got now:
http://savepic.ru/1410881.gif
Господа, не подскажете ли? Есть проблема в сортировке ордеров при включении или (наложении) отремонтированного советника на имеющиеся уже, выставленные отложки. Я тут пытался соорудить коды для поиска, распознавания и переприсвоения имеющихся номеров ордеров, чтоб советник воспринимал их как свои, но результат какой-то неопределённый. Советник при включении начинает лупить некоторые отложки в тоже место с теми же параметрами.....Может у кого есть коды или мысли по этой теме, для многих ордеров?
Thank you to those who responded.
Dear programmers,
please answer the following question:
Can you tell me why the data from the string is not correctly entered into the array?
This is what I get now:
http://savepic.ru/1410881.gif
The array size in the second dimension is not set correctly:
Array elements start with 0, and you are in these entries
want to write data to cell 3 (0, 1, 2), although the second dimension is set with two (only the indices 0, 1 can be used).Solution: Either enlarge the array in the second dimension
or rewrite the indexes when writing the values
Gentlemen, can you advise? I have a problem with sorting orders when I enable or (superimpose) a repaired EA on already placed pending orders. I have tried to build codes to search for and re-assign available order numbers so that the EA recognizes them as its own ones, but the result is indefinite. When I enable it, the EA starts to place some pending orders in the same place with the same parameters..... - Does anybody have any codes or suggestions on this topic for many orders?
Thank you for your feedback.
It depends on how the EA defines "owl - alien", if by magic number then there is nothing you can do with already placed pending orders as this parameter cannot be changed for an already placed order.
If it stores tickets, let us assume, in global variables, then it is already easier, the tickets already existing can be "added to the base". So this is the main question for you at this stage. How does it determine?
It depends on how the EA defines "owl - alien". If it is set by magic number then there is nothing to do with already placed pending orders, as this parameter cannot be changed for an already placed order.
Yes, and if there is a grid of different pending orders, with holes formed because some pending orders were triggered, some moved, etc. They need to be recognised, renumbered and filled by a "new" Expert Advisor. Of course, we can do it manually, but... Then why bother with MTS? For one order, we can at least get it from N.Morzhov:
int poisk;
if(poisk==0)
{ int k;
for(k=0; k<OrderTotal();k++)
{ if(OrderSelect(k,SELECT_BY_POS,MODE_TRADES)==false)break;
if(OrderSymbol()!=Symbol()||OrderMagicNumber()!=Magic)cjntinue
ticket_buy1=OrderTicket();
poisk=1; }}
but how to deal with a set of orders?
Who knows when the mql5 tutorial is scheduled to come out?
https://www.mql5.com/ru/forum/491