Max operation in a day/ hour etc etc

 
I want to block my EA after 2 or 3 consecutive trade, or put am max operation limit like max trade in an hour is 3 or max trade in a day is 5...or in a specific candle

How i can do it?


with something like that??

static datetime LastClosedBar =D'1980.01.1'

LastClosedBar = Time[0];

Reason: