The following strategy simply buys during the day and is supposed to close all the positions buy the end of the day. But in many situations it fails to do so and some positions remain open until many days later. Am I missing anything here?
CODE:
Please log in to see this code.
Size:
Color:
Please start from reading the WealthScript Programming Guide, Programming Trading Strategies > Multi-Position Strategies > Some Guidelines for Managing Multiple Positions and "MP Strategy Template" below. Hope that helps.
Size:
Color:
Thanks, found the problem.
Size:
Color:
Glad to have helped.
Size:
Color: