Support Board
Date/Time: Fri, 31 Jan 2025 15:57:00 +0000
[Programming Help] - Auto Trade Spreadsheet - Signal Only Once Per Bar
View Count: 2360
[2016-01-28 18:25:36] |
User87521 - Posts: 116 |
I recently tried to change the Signal Only on Bar Close to No to see if I could get closer to my trade entry and exits. When I did this real time I got multiple entries and exits as the stock ticked past and below the trigger. I have the Signal Only Once Per Bar set to Yes. I assume that this function means that the first signal would trigger a play and then subsequent signals would be ignored until the next bar printed. Is this how this function works or is it different? This does not show up on backtesting as you don't get the back and forth as the bars are printed.
|
[2016-01-28 19:52:31] |
Sierra Chart Engineering - Posts: 104368 |
Refer to the documentation for Signal Only Once per Bar: https://www.sierrachart.com/index.php?page=doc/doc_SystemsAlerts.php#IgnoredSignalsSignalOnlyOncePerBar It is possible to get both an entry and exit on the same bar even with that set to TRUE. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2016-01-28 19:53:08
|
[2019-05-08 18:34:30] |
User37462 - Posts: 31 |
It is possible to get both an entry and exit on the same bar even with that set to TRUE.
Could you please help me clarify this?I am making replay Spreadsheet study for trading. If Sell Entry is TRUE - the position is opened. But the Sell exit is ignored (and the trade is closed on condition cell J89). Sell Exit (Buy) | Signal ignored because 'Signal Only Once Per Bar' is enabled and a signal was already given from formula column for bar. | Cell: N3 | Bar start date-time: 2016-02-24 08:30:00 | 2019-05-08 18:08:00 But I need to exit on Sell exit is TRUE. When the Signal Only Once per Bar is set to No the Sell exit signal works fine. Many thanks |
[2019-05-09 03:11:08] |
Sierra Chart Engineering - Posts: 104368 |
The Sell Exit is becoming True at some point within the timeframe of the bar, prior to the Sell Entry becoming True. Therefore, after you have Entered your position, it is not possible to Exit within the same bar period due to setting of Signal Only Once Per Bar. It sounds like you would be fine by not setting Signal Only Once per Bar. Otherwise, you would need to find a way to not trigger the Sell Exit until after the Sell Entry has occurred (such as looking at the Position Quantity in the formula). Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2019-05-09 21:31:00] |
User37462 - Posts: 31 |
Thank you for your response. I think i can use cell J52 instead of Signals only once par bar. But for a strange reason if I add the condition J52=0 (Daily total trades=0) to the spreadsheet it trigger trade at 8:30 - but there are not met True entry conditions. 8:30 is Chart start time and session start time.(New bar at session start is On) This is during replay (Accurate Trading system backtest mode) This happens if previous day was a trade and the replay starts before 8:30. If I do not use J52=0 trade doesnt start - that is correct. (or it is OK if replay starts after 8:30) |
[2019-05-10 11:57:46] |
User37462 - Posts: 31 |
I find a solution with: Spreadsheet Systems, Alerts and Automated Trading: Daily Total Trades [J52] Disable Auto Trading (J28) cell, enter the following: =J52 >= 1 The system is Ok for me know. But out of curiosity why i had issue mentioned above? |
To post a message in this thread, you need to log in with your Sierra Chart account: