Hi im looking for a help from coders

 

im new to mql4.And i started to create an EA based on some customer indicators. What i am looking for is a sloution for below scenario.

I use X pips goal per day.lets take it is as 10.and i trade it on in london session(that wrks fine in the code).the issue is the pip goal for a day.lets say the first trade had a loose 6 pips.then EA should set the takeprofit for 10+previuos pip loss which means 16 . like wise when EA hit the PIPgoal per day then it should not trade anymore for the day and wait for the next day london session.

EA is attached:

focus on this line also -

dailyProfitInPips += OrderProfit()/OrderLots()/MarketInfo(OrderSymbol(),MODE_TICKVALUE);

this line wrks only when trade close based on the indicators signal.how i execute this line when TP or SL get hits

Files:
nellercea.mq4  13 kb
 

Visit http://www.businessclubworldwide.com/ for service detail.

Reason: