Forum

How could I close my trade 12 hours later?

Hi! I've got a good EA, but If It's open a position, and when this position will go wrong later, I'd like to close it 12 hours later. How could I do this? I know, I need a for cycle. For example: for (i=0;i<OrdersTotal();i++) OrderSelect(__Ticket(0),SELECT_BY_TICKET) if (__isExist(0) &&

What is the problem with this?

I need to compare Bid prize with Moving Avarage. This is need to open a position. 1feltetelLong=1CriteriaLong. This is an INT number, and it will be =0 when a position is opened