Help to code EA to play day by day

 

Hi,

I want to play day by day using " numberoflosspostoday" or your function "DayOfYear", in order to stop my EA if it loses some pips or trades by day. And I can control the loss possible in the settings.Then it restart the next day...

I have try to put the function" numberoflosspostoday" and "DayOfYear" in my EA (CCIFIO3), but when i compil they are many errors. I am beginner in MQL4 programmation and i don't know what to do.

Anyone can help me to code this in my EA freely ???

For more information about " numberoflosspostoday"or your function "DayOfYear" see topic "code metatrader help wanted".

Thanks.

Files:
ccifi03_1_1.mq4  10 kb