Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 20:38:53 +0000



exit trade at close of bar

View Count: 918

[2014-10-03 22:03:23]
jivetrader - Posts: 410
is there a way to configure an open trade to auto-close at the end of the current (or next) bar (via DOM strategy or on the fly) ?
[2014-10-04 04:09:49]
vegasfoster - Posts: 444
Can create custom trading system that simply flattens and cancels any open positions and orders at the end of each bar. Not sure off hand about the next bar though, have to think about it.
[2014-10-07 06:55:45]
jivetrader - Posts: 410
i would like to manually enter the trade and then have it auto-close at the end of the current bar on the current chart according to its current periodicity. this could be volume-based or range based, for example. any advice is appreciated. thanks
[2014-10-08 18:30:15]
vegasfoster - Posts: 444
This will simply flatten and/or cancel any open orders on bar close as desired. You need to test this thoroughly before going live and note that I have never actually used an automated trading system to send live orders, so you will need to thoroughly validate that this works correctly.
attachmentFlattenAndCancel.dll - Attached On 2014-10-08 18:29:07 UTC - Size: 13.5 KB - 470 views
attachmentFlattenAndCancel.cpp - Attached On 2014-10-08 18:29:18 UTC - Size: 1.13 KB - 497 views

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

Login

Login Page - Create Account