So what i have been trying to accomplish is for the strategy to open a position on Friday, then also close last week Fridays position. So each Fridays "close" the strategy closes last weeks position and also opens a new position for the coming week.
The problem i am getting is that the script works as per i have noted, but only sometimes. Sometimes, it only closes the previous weeks position but does not open the new coming weeks position.
I have attached the back-test and script to view. You can see that their is a string of opening and closing trades, but then every now and again their is missing some entry orders.
I have tried 2 entries per direction but that made no differance
I assume it is something simple i am missing in my script.
Comment