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