Assistance required

 
Could someone please help me:

What I require for my current EA is some code that will "disable" my buy and Sell conditions if: A profit or loss was made on any new days trade. I was thinking in terms of AccountProfit() made today: Thus If AccountProfit for "Today" is Zero, then go to buy or sell Conditions, However if the AccountProfit was Up or down for the day, It should not accept any trade conditions. Would someone be as kind as to provide me with the code? It would be much appreciated.