Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 02:26:03 +0000



[Programming Help] - Auto Trade - Closing Trades After Hours

View Count: 1120

[2019-06-09 02:57:09]
User87521 - Posts: 81
I am not sure how to solve this problem. I have an auto trade spreadsheet that works fine and initiates/closes trades during the regular market session. (E-mini futures trades) I am trying to set an automated stop-loss via the "J10" parameter in the spreadsheet study. This will work fine during regular market hours, but does not initiate in the evening session.

If I set the chart to use the evening session then it also takes trades during those hours and I am not interested in initiating trades in the evening session. I only want to close them if they go against any position I may be carrying through the days close.

I have tried using the evening session and setting volume and # trade filters but I find the back test data to be very different than when I just use the days session.

Is there a way to take trades only in the regular session but still close trades in the evening session if the parameters dictate?

Thanks.
[2019-06-09 05:19:59]
Sawtooth - Posts: 3993
Is there a way to take trades only in the regular session but still close trades in the evening session if the parameters dictate?
Use a formula in J28 like the one at this link:
Spreadsheet Example Formulas and Usage: Disable Autotrading Outside of Regular Trading Hours
[2019-06-09 20:54:16]
User87521 - Posts: 81
Thank you very much Tom. This appears to be very helpful.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account