I asked NT support for help with this and they said what I'm trying to do isn't supported. So, I thought I would ask you all to see if anyone has an answer
When enabling my strategy I want to test for open positions in my account and close them without disabling the strategy. I'm using the following code which closes the open positions but it also disables the strategy.
If it is because of the close command, you might try just using a normal sell on the next bar or similar.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following user says Thank You to Big Mike for this post:
yes the close command apparently disables the strategy same as pressing the close button on the chart trader closes the strategy. A normal sell or buy don't work as the positions are account positions not strategy positions. At least that's my suspicion because they don't work for sure. I've also tried synchronizing the strategy and account positions on startup of the strategy and can't get that working either.