Login Page - Create Account

Support Board


Date/Time: Tue, 04 Mar 2025 10:20:00 +0000



Post From: Using Multiple Spreadsheet in automated trading for 2 strategies

[2021-11-30 20:53:48]
Sawtooth - Posts: 4179
If each strategy is relatively simple, you could use a group of Formula Columns for one strategy and another group for the second strategy.
In the first group, put the entry signal for that group in its own Formula Column, and the same for the second group.
Then, in K3/M3, reference each strategy's signal column in an IF statement that includes a time window for each, like this:
=IF(AND(FRACTIME($J$41)>=TIME(09,30,00),FRACTIME($J$41)<TIME(10,30,00)),O3,IF(AND(FRACTIME($J$41)>=TIME(10,30,00),FRACTIME($J$41)<TIME(16,00,00)),U3,0))
where O3 is strategy 1 entry signal, and U3 is strategy 2 entry signal.
If you are using L3/N3 for exits, you would have to replicate this for those signals.

If each strategy is complex and needs more columns, or has other complex references that would conflict, you could use two instances of the Spreadsheet System for Trading study, each with its unique name.
You could then control when it trades with a formula in each one's J28 cell.