View Single Post
  #1 (permalink)  
Old 02-13-2006, 02:55 AM
mj10 mj10 is offline
Member
 
Join Date: Oct 2005
Posts: 39
mj10 is on a distinguished road
Unhappy Expert Question and Expert

I been writing this EA
Code:
//+------------------------------------------------------------------+
//|                                                      Eurobuy.mq4 |
//|                                         http://www.forex-tsd.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, Metaqoute.com"
#property link      ""
void deinit() {
   Comment("");
}
int start()
  {

   if ((Close[0]>=Close[3]) && (Close[3]<=Open[2]))
   OrderSend(Symbol(),OP_BUY,0.1,Ask,2,Ask-30*Point,Ask+6*Point,"eurobuying",0,0,Blue);
   
    return(0);
  }
the problem i am having is there any way i can close this EA when ever it gain 1pip or in profit and closes position
i been thinking very long and tryed many things but nothing if u can help
EA is for 30 min time frame
AND ONLY FOR EURO/USD

Last edited by mj10; 02-13-2006 at 03:47 AM.
Reply With Quote