Login Page - Create Account

Support Board


Date/Time: Mon, 23 May 2022 23:13:03 +0000



Flex Renko High and Low

View Count: 2812

[2013-06-12 00:11:27]
rwilliams1 - Posts: 315
Hi, I am in the middle of having a programmer create a simple breakout alert of the previous bar high or low while using Flex Renko bars. This is accomplished by placing a pending order at either the previous bar high or the previous bar low (one or the other).

But for some reason, when using Flex Renko the pending orders will not set to the previous bar high or low when using Flex Renko. The code works fine when working with normal minute bars, so it is not a code problem. But whenever Flex Renko is used, the pending order is place at random places within the bar.

I'm hoping you can help provide some answers because this is a serious problem for me as breakout trading is my entire strategy. Placing an simple breakout alert based on a previous bar should be a fairly straightforward process. Any help you could provide is greatly appreciated!
[2013-06-12 00:50:53]
Sierra Chart Engineering - Posts: 102837
Really this is not something we are able to help with. It is only possible to help with something like this, if we were to do step-by-step debugging of a program and be exactly familiar with everything that is going on. This is just simply too vague for us to help with. There is insufficient information here.
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
[2013-06-12 00:51:41]
Sierra Chart Engineering - Posts: 102837
If it is an ACSIL trading system, here is information to do step-by-step debugging:
http://www.sierrachart.com/index.php?l=doc/doc_DebuggingDLLs.html
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
[2013-06-12 01:27:37]
rwilliams1 - Posts: 315
Hopefully I can make my question clearer. Can you tell me whether it is possible to access the high and low data of the previous flex renko bar (see attachment) that I see on the chart? Is this high or low data accessible when creating an ACSIL custom study? Can it be used to create a breakout when price retraces and crosses over it?
Date Time Of Last Edit: 2013-06-12 01:49:27
attachmentPrevious Bar Low Data.bmp - Attached On 2013-06-12 01:26:57 UTC - Size: 415.28 KB - 577 views
[2013-06-12 22:36:46]
Sierra Chart Engineering - Posts: 102837
Yes. Nothing special to do to access the High and Low any differently. So you need to examine the data that is being accessed in the base data arrays and see if it differs from what you see on the chart.

Also refer to this page to make sure you have tick by tick data:
https://www.sierrachart.com/index.php?l=doc/doc_TickbyTickDataConfiguration.php
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: 2013-06-12 22:38:02
[2013-06-13 05:01:36]
rwilliams1 - Posts: 315
Yes, but when I do a simple test using a 1 period moving average based on the highs, I end up getting a moving average which does not relate to the highs of each bar (see attachment). This is the core of the problem. In the attached screenshot you will see that the moving average high of each bar is not located on the high of each bar (red down bars). With a 1 period moving average, the moving average should always rest on the very top of each bar high and it does not. This is showing that somehow the highs and lows of each bar of the Flex Renko is not being recognized correctly. This is the the heart of the problem. There is something wrong with the high/low data.
Date Time Of Last Edit: 2013-06-13 05:23:22
attachmentFlex Renko 1 Period Moving Average based on High.bmp - Attached On 2013-06-13 04:56:24 UTC - Size: 925.83 KB - 815 views
[2013-06-14 03:03:02]
Sierra Chart Engineering - Posts: 102837
We apologize for the delay. We will get back to you on this. There may not be much that can be done though.
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
[2013-06-14 03:21:14]
rwilliams1 - Posts: 315
Thank you so much for looking into this! I will keep my fingers crossed that something can be done. Not being able to accurately program any custom studies for a popular bar type such as Renko will make the use of SC problematic; not only for myself, but also for other users. Good luck!
Date Time Of Last Edit: 2013-06-14 04:18:18
[2013-06-14 12:53:49]
Al SC Developer - Posts: 434
This is all available now, but you have to understand how Renko bars are built, stored, and displayed.

The bar arrays (OHLC), contain the real values for the underlying bar. So, if you are just using sc.High[sc.Index] or sc.Low[sc.Index] to get highs and lows, then you are getting the actual high and low ticks for the underlying Renko bar.

The Renko bar is built using the Renko algorithm, and this produces the Renko Open and Renko Close values, which are used to draw the Renko box. The wicks, if drawn, on a Renko bar use the actual High/Low values.

You have access to the Renko Open/Close via the SC_RENKO_OPEN and SC_RENKO_CLOSE arrays. For example, use sc.BaseDataIn[SC_RENKO_OPEN][sc.Index]. See http://www.sierrachart.com/index.php?l=doc/doc_ACSIL_Members.html#scBaseDataIn.

To get the prior high/low, you just need to determine if the bar was an up/down bar by comparing the Renko Open/Close, and then select the proper value. Note, the wicks are always on the opposite side (i.e. an up bar has a potential wick at lower end of bar), so you may need to look at multiple values depending what you are trying to do.
[2013-06-15 21:43:59]
Sierra Chart Engineering - Posts: 102837
For clarification, this "issue" is with Flex Renko. Not with standard Renko bars. With standard Renko bars you would not have this.


And when you work with the standard Open, High, Low, and Close values of the bar, you are working with the actual true price values of the bar. The Renko open and close are not the true price values. So really there is not a problem.
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: 2013-06-15 22:54:44
[2013-06-15 22:37:03]
Sierra Chart Engineering - Posts: 102837
The documentation has been updated to explain this here:
http://www.sierrachart.com/index.php?l=doc/doc_RenkoCharts.html#FlexRenko

See the bottom of the page.

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
[2013-06-15 23:55:06]
rwilliams1 - Posts: 315
Can you elaborate on what you meant in post #9 when you say:

"To get the prior high/low, you just need to determine if the bar was an up/down bar by comparing the Renko Open/Close, and then select the proper value. Note, the wicks are always on the opposite side (i.e. an up bar has a potential wick at lower end of bar), so you may need to look at multiple values depending what you are trying to do."

Not sure what you mean by compare the Open/Close and select the proper value (for example, what if there are no wicks on the previous bar)? Also still not sure on how you calculate the Flex Renko previous bar high/low using the underlying ohlc data and your Flex Renko algorithm. Your help and suggestions would be appreciated. Thanks again.
Date Time Of Last Edit: 2013-06-15 23:55:38
[2013-06-16 07:00:34]
rwilliams1 - Posts: 315
Fyi, thanks for all of your help. I know you're busy so you can disregard my previous post. I've found a potential workaround for the problem by simply using the previous bar Flex Renko Open data instead of trying to figure out the previous bar Flex Renko high/low. Turns out they are usually the same value. Thanks.

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

Login

Login Page - Create Account