[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 90

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
Can you advise me, there is a csv file with data in the format 1.33027; 1.33023 and so on.
Then read this file but for some reason the data are read with a 4-digit accuracy and I need to with 5.
Read in different ways and
does not help
Can I change an order that has a magic number while trading?
No
Help who knows! I can't get this code to work:
for(i=1;i<=total;i++) // Order loop
{
if(OrderSelect(i-1,SELECT_BY_POS)==true)
{
if(OrderType()==OP_BUY && Ticket1==OrderTicket())
{
if(OrderCloseTime()==0 && SL1<Price1 && Bid-Price1>(NoLoss1*Point))
{
OrderModify(OrderTicket(),OrderOpenPrice(),Bid-(Point*(NoLoss1-3)),OrderTakeProfit(),0,Blue);
}
if ( OrderCloseTime()==0 && SL1>=Price1 && Bid - SL1 > ((NoLoss1+StepLoss1)*Point))
{
OrderModify(OrderTicket(),OrderOpenPrice(),Bid-(Point*(NoLoss1-3)),OrderTakeProfit(),0,Blue);
}
}
}
}
the point is that it should modify 1 order out of several : Ticket1, but it doesn't modify at all
Help who knows! I can't get the code to work:
+ if only 1 order with the ticket1 number needs to be changed, the cycle is not needed at all.
the ticket order is immediately selected and changed
+ if only 1 order with the ticket1 number needs to be changed, the cycle is not needed at all.
the ticket order is immediately selected and changed
Good people advise (or link to where my question was discussed) which design is better in terms of speed 1 or 2:
2.
as we are not exactly sure that in MT4 && operations are checked in order, with abort at false