Stockholm Sweden
Posts: 20 since Apr 2012
Thanks Given: 12
Thanks Received: 2
|
Thanks, it works.
I also put in a false condition for the rest of the month, don't know if it is needed:
If DayOfMonth(date) >= 6 and DayOfMonth(date) <= 20 then cantrade = false;
Perhaps the "false" statement is enough? It makes an exception from the basic code that sas every day is Ok to trade.
|