Login Page - Create Account

Support Board


Date/Time: Mon, 20 May 2024 01:27:25 +0000



[Programming Help] - Sierra Support: Renko Bar Close not working

View Count: 1423

[2019-01-04 16:36:23]
rahul - Posts: 160
Hello, suppose there are 4 renko bars at:

Bar 1: 6:00:15
Bar 2: 6:00:30
Bar 3: 6:00:45
Bar 4: 6:01:05

If I use the code: (sc.GetBarHasClosedStatus(cB) == BHCS_BAR_HAS_CLOSED), then the trade happens at Bar 4. But if I don't use this code the trade happens at Bar 2.

I would like the trade to enter at Bar 2, but only after Bar has closed. If I omit the Bar Close code, then I get false entry signals as the renko bar can move between up / down till the bar is actually closed.

Please help.
[2019-01-04 18:46:41]
Sierra Chart Engineering - Posts: 104368
Allowing an order entry only when a bar has closed will mean that when the order is submitted it is going to be filled at the current price and on the current bar assuming it is a market order. There is not a way to change that if you are only evaluating closed bars.
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-01-04 20:37:34]
rahul - Posts: 160
I understand this but, why does a market order take from Bar 1 to 4 to get filled, that it why does it take nearly 50 seconds to get filled? If I don't add the bar closed code, the same order fills within a second.

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

Login

Login Page - Create Account