//+------------------------------------------------------------------+ //| Close and Reverse.mq4 | //| Copyright © 2006, Eli Hayun | //| http://www.elihayun.com | //+------------------------------------------------------------------+ #property copyright "Copyright © 2006, Eli Hayun" #property link "http://www.elihayun.com" #property show_inputs //+------------------------------------------------------------------+ //| Close the running orders and open to an opposite direction | //+------------------------------------------------------------------+ int start() { //---- string curr = Symbol(); int ot = OrdersTotal(); int ords[200], ordType[200], ordTicket[200]; double ordLots[200]; string ordComments[200]; int ix=0; for (int i=0; i