Auto Trading: Difference between revisions
From MultiCharts
→Cancel Expired Market Orders After X Seconds
Line 63: | Line 63: | ||
=== Cancel Expired Market Orders After X Seconds === | === Cancel Expired Market Orders After X Seconds === | ||
Market orders that were not filled within the specified time (30 seconds by default) will be canceled. | |||
<div style="background-color: #E5F6FF;">'''Example''': 30 second timeout is set;<br>12:00:00 Strategy Calculation at close of bar # 51 - place market order to buy at open of next bar;<br>12:00:01 Strategy Calculation at open of bar # 52 - market order to buy is placed at broker;<br>12:00:10 Strategy Calculation at close of bar # 52 - no market order to buy at open of next bar should be placed;<br>Default 30 second countdown | <div style="background-color: #E5F6FF;">'''Example''': Default 30 second timeout is set;<br>12:00:00 Strategy Calculation at close of bar # 51 - place market order to buy at open of next bar;<br>12:00:01 Strategy Calculation at open of bar # 52 - market order to buy is placed at broker;<br>12:00:10 Strategy Calculation at close of bar # 52 - no market order to buy at open of next bar should be placed;<br> Default 30 second countdown starts:<br>12:00:40 - market order is cancelled.</div> | ||
<br> | <br> | ||