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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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