pls help needed on this e-mail

 

I want this EA to be trading between 6p.m to 11pm( GMT) but i dont know how to write the code and where to fit the code i would be grateful if someone can help me on this. Below is the code.Thanks

//+------------------------------------------------------------------+
//| easycare.mq4 |
//| |
//+------------------------------------------------------------------+
#property copyright "keylove"
#property link "fm.idowu@hotmail.com"

extern double lt=0.1;
extern int rsiper=9;
extern int rsiur=50;
extern int rsiitbuy=70;
extern int rsiitsell=30;
extern int cciit=14;

int start()
{

easycare();
easyPips();

return(0);
}
int buy,sell,i;
int easycare()
{
buy=0;sell=0;
for(int i=0;i<OrdersTotal();i++)
{
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
if(OrderType()==OP_BUY ){buy=1;}
if(OrderType()==OP_SELL ){sell=1;}
}

double cci=iCCI(NULL,0,cciit,PRICE_TYPICAL,0);

double rsic=iRSI(NULL,0,rsiper,PRICE_CLOSE,1);
double rsil=iRSI(NULL,0,rsiper,PRICE_CLOSE,2);
double rsil2=iRSI(NULL,0,rsiper,PRICE_CLOSE,3);




if( rsic>rsiur&&rsic<rsiitbuy&&rsic<rsil&&rsil>rsil2&&cci>-100&&cci<+100 && buy==0)
{
OrderSend(Symbol(),OP_BUY,lt,Ask,3,0,0,"femi",0,0,Red);
}
/******************************************************************************************************************************************/
if(rsic<rsiur&&rsic>rsiitsell&&rsic>rsil&&rsil<rsil2&&cci<+100&&cci>-100 && sell==0)
{
OrderSend(Symbol(),OP_SELL,lt,Bid,3,0,0,"femi",0,0,Red);
}
/******************************************************************************************************************************************/
}

int easyPips()
{
double rsi=iRSI(NULL,0,rsiper,PRICE_CLOSE,1);
double cci=iCCI(0,0,cciit,PRICE_TYPICAL,0);


for( i=1; i<=OrdersTotal(); i++)
{


if (OrderSelect(i-1,SELECT_BY_POS)==true)
{
if(OrderType()==OP_BUY && OrderProfit()>0 && cci>=+100 &&OrderSymbol()==Symbol())
{
OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet);

}
}




if (OrderSelect(i-1,SELECT_BY_POS)==true)
{
if(OrderType()==OP_BUY && OrderProfit()>0&& rsi>=rsiitbuy &&OrderSymbol()==Symbol())
{
OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet);

}
}

/**********************************************************************************************************************************/


if (OrderSelect(i-1,SELECT_BY_POS)==true)
{
if(OrderType()==OP_SELL && OrderProfit()>0 && cci<=-100 &&OrderSymbol()==Symbol())
{
OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet);

}
}


if (OrderSelect(i-1,SELECT_BY_POS)==true)
{
if(OrderType()==OP_SELL &&OrderProfit()>0&& rsi<=rsiitsell &&OrderSymbol()==Symbol())
{
OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet);

}
}


}



}

 
 
Just replace
int start()
{
to
int start()
{
if(Hour()<18||Hour()==23) return(0);
 
Roger:
Just replace

[...]

if(Hour()<18||Hour()==23) return(0);

... Only if his broker is on GMT. Otherwise there needs to be some translation between broker time and GMT. Potentially becomes very complex if the solution needs to work in backtesting as well as going forwards.