Support Board
Date/Time: Wed, 26 Feb 2025 07:53:06 +0000
Post From: how to get the last bar of a trading session
[2021-05-06 01:53:46] |
Sawtooth - Posts: 4175 |
You can use this to flatten at certain time: Global Profit/Loss Management However, this doesn't deal with early close times. If you know the dates of the early closes, you could use a formula in either of these two studies: Trading System Based On Alert Condition (this study uses Simple Alert syntax for its formula) You'll need two instances: one for buy exits and one for sell exits. Trading System Based on Alert Condition Spreadsheet System for Trading (this study uses spreadsheet syntax for its formulas) Use cell J29, or cells J88/J89. Spreadsheet Systems, Alerts and Automated Trading: Flatten Position and Cancel Working Orders [J29] Spreadsheet Systems, Alerts and Automated Trading: Flatten Positions And Cancel Orders At Set Time (read/write) [J88] I can offer example formulas if you need. |