Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 16:39:59 +0000



[Programming Help] - Signal Once per bar on exit only

View Count: 318

[2023-07-19 21:07:23]
User104854 - Posts: 456
I'm using the spreadsheet study for trading. If a buy exit is triggered in cell 'L1' I want to it trigger only once. I use the attached orders so I'll enter a position with 4 contracts with 1 target and 1 stop, I use the Buy Exit to set a target to scale out with 2 contracts. I'm using cells J82 and J83 to set the amount at 2 but when the exit is triggered it is placing 2 sets of orders with 2 contracts each for a total of 4 which is not what I want. I only want it to trigger once and put 1 order out for 2 contracts.

If I use the 'signal only once per bar' does that apply to entries and exits? Is there a way to use this for exits only? I may enter more than once on the same bar. Let me know how I can accomplish this. It seems like it should be pretty simple.

Please advise. Thank you.

Alternatively, if there's no way around having the system place more orders than I want, if it does put out 4 orders instead of 2, is there a way to automatically cancel 2 of them?
Date Time Of Last Edit: 2023-07-19 21:40:54
[2023-07-20 06:07:36]
Sawtooth - Posts: 4120
If I use the 'signal only once per bar' does that apply to entries and exits?
This settings affects all 4 columns (K-N), but each column (K-N) independently.
IOW, you cannot set the entry columns (K,M) to trigger more than once per bar, with the exit columns (L,N) only once per bar.
Spreadsheet Systems, Alerts and Automated Trading: Alert/Signal Only Once per Bar

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

Login

Login Page - Create Account