Schedule Automated Order Execution? [SOLVED]
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Schedule Automated Order Execution? [SOLVED]
The short answer is "no", unfortunately.Is there anyway to schedule the times that automated order execution, on a chart, is turned on and off?
The long answer is that we can programmatically disable and enable automated order execution (see toggle auto trading with the command line for an example).
But when we programmatically enable auto trading again (at the start of your time range, for instance), MultiCharts .NET still generates that 'automated trading risks' window where we have to click 'Yes' to start automated trading. Because of that limitation we cannot have a signal enable automated trading on a certain schedule.
What you can do is only submit orders during a certain time period, and not when this time period is over. Automated trading will still be enabled after that time period (so not a real solution), but then at least you won't have the strategy generating orders outside that time window.
Re: Schedule Automated Order Execution?
Hi JohnR, you could reference another article Josh wrote (thanks Josh!) which enables using different time settings on different signals if you want.
https://www.tradingcode.net/multicharts ... -strategy/
https://www.tradingcode.net/multicharts ... -strategy/