Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 08:00:46 +0000



How to set auto trading timing, flatten trading and disable trading for 2 sessions

View Count: 208

[2024-03-25 15:37:31]
batman_ - Posts: 190
SC,

Kindly advise how to set auto trading, disable trading and flatten trading for 2 sessions within the same intraday trading.

Session 1 begins auto trading from 0300 to 0729 flatten trading and disable trading,
Session 2 restarting auto trading from 0731 to 1300 flatten trading and disable trading.
[2024-03-25 20:20:06]
John - SC Support - Posts: 36238
What tool are you using to do your Auto Trading? Is this a Spreadsheet System for Trading or an ACSIL custom study?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-03-26 06:39:18]
batman_ - Posts: 190
Spreadsheet trading indicator.

(1) Question: How do i set restarting auto trading for the 2nd trading session from 0731 to 1300 flatten and disable trading?
From J28 i set the 1st trading session =OR(J41-INT(J41) < TIMEVALUE("03:00:00"), J41-INT(J41) > TIMEVALUE("07:29:00") )

(2) Question: How i set disabling trading for the 2nd trading session at 1300?
From J29 i set the 1st trading session =(J41-INT(J41)) > TIMEVALUE("07:29:00")
[2024-03-26 14:35:28]
John - SC Support - Posts: 36238
You have to combine these two items together in those fields and you would want to limit the timing for the flattening.

Also, the FRACTIME(J41) function does the same thing as "J41 - INT(J41)"

For example, to Flatten and Cancel at both 07:29 and at 13:00, your formula in J29 would be the following:
=OR(AND(FRACTIME($J$41) > TIMEVALUE("07:29:00"), FRACTIME($J$41) < TIMEVALUE("07:31:00")), AND(FRACTIME($J$41) > TIMEVALUE("13:00:00"), FRACTIME($J$41) < TIMEVALUE("13:02:00")))

We leave it to you to apply this to the Disable Auto Trading.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account