Hi guys
did anyone of you experienced a strange thing like the one below
OrderMagicNumber() returns negative value
and which is strange is that it repeats the same negative value across the history - anyone experienced something like that before?
here is an example of such things:
below is the code how to view tickets which have negative Magic Numbers
ps: I even tried to place this info in the start function of the indicator and EA - the same thing happens
Thank you in Advance
Hi eronyx,
Try this :
double dMagic=0; int Total=OrdersHistoryTotal(); for(int Index=0;Index<Total;Index++) { if (OrderSelect(Index, SELECT_BY_POS, MODE_HISTORY) == true ) //if (OrderMagicNumber()<0) { dMagic = OrderMagicNumber(); Print("OrderMagicNumber()<0"+OrderMagicNumber()+"xx"+OrderTicket()+"xx"+dMagic); } }
Hi eronyx,
Try this :
Hi onewithzachy - thank you for suggestion but the same thing happens - they are selected and is negative the MagicNumber
it is being selected all ok - the same thing happens - it is just strange - as far as I know non of the EAs on my MT4 has negative MagicNumbers
another strange thins is that they all are of the same size if talking about the integer - so it looks there is something wrong in the memory - either the int (MagicNumber) became another type of data, but Values of int type must be within the range from -2 147 483 648 to 2 147 483 647 - so I do not think this is the case.
from another looking it looks everything works fine - the only issue I think is that I had an EA which placed negative MagicNumbers for some trades - because from thousand of trades there are only 14 trades with such MagincNumbers and they are bing selected ok and are real trades
thanx for your input onewithzachy
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys
did anyone of you experienced a strange thing like the one below
OrderMagicNumber() returns negative value
and which is strange is that it repeats the same negative value across the history - anyone experienced something like that before?
here is an example of such things:
below is the code how to view tickets which have negative Magic Numbers
ps: I even tried to place this info in the start function of the indicator and EA - the same thing happens
Thank you in Advance