Login Page - Create Account

Support Board


Date/Time: Fri, 05 Jun 2026 20:13:10 +0000



How to create a stair stepped trailing line on a Renko chart

View Count: 24

[2026-06-05 15:32:37]
User558380 - Posts: 58
Hey John! Wondering if you can help me with this. I have a Renko chart (Flex-Renko-Inverse-Set) of 8-4-12 and I'm trying to figure out how to set up a stair stepped trailing stop line that is calculated as minus 40 ticks from the HIGH of the Renko bar or low of a Renko bar based on direction. Actually I'd like it to work like the Kiwi Trailing Stop but rather than basing it on ATR, I just want it to be 40 ticks. Thanks so much for your help.
[2026-06-05 16:25:52]
John - SC Support - Posts: 46529
We do not know anything about the "Kiwi Trailing Stop", as that is a User Contributed Study. You may be able to find the source code for this at the following link, in which case you can look through the code and see how it was implemented.
User Contributed Advanced Custom Study System Source Code

Without programming a custom study, you will not be able to get a "Stepped Trailing Stop", but you can get a continuous "Trailing Stop" by using the "Trade Management by Study" study along with another study that gives you the position you want based on what you stated - such as the "Spreadsheet Formula".

For example, you would enter the following for the formula in a "Spreadsheet Formula" study:
=IF(ID0.SG23 >= ID0.SG22, H - 40 * TICKSIZE, L - 40 * TICKSIZE)

In order to get the position of the stop at the High/Low of the current bar minus 40 ticks based on direction. We are not certain which way you wanted the directionality, so this just gives you an idea of how to do it.

Note that the High and Low of the Renko bars are the standard High and Low bar values, but the Open and Close are special, which is why ID0.SG22 and ID0.SG23 are used. Refer to the following:
Renko Bar Charts: Renko Open, High, Low, Close Values

Refer to the following:
Spreadsheet Formula

Attached Orders: Study Controlled Targets and Stops
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account