I am trying to ensure my strategy only trades a maximum of once per day. I had tried to achieve this by having an interger variable called 'tradedtoday'. When I entered into a trade i set the variable to 1. In order to enter a trade, the variable has to be 0. It resets at the begining of a new session. For some reason this doesn't work. I can't see anything worng with the code.
I was wondering if there are any built in functions that would achieve the same goal? or can anyone see an obvious problem with my intial solution?
Many thanks
Mark

Comment