Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 02:26:07 +0000



Is there a study that represents the Toby Crabel Breakout Channel

View Count: 1927

[2016-11-03 19:56:19]
The Pipe - Posts: 16
Maybe I'm missing it but is there a study based upon Toby Crabel's breakout system where it is calculated by taking the 10 period SMA of the absolute difference between the open and either the high or low, whichever difference is smaller. It represents the minimum average price movement/deviation from the open price during a period of time, and that value is used to calculate breakout thresholds for the current trading session. This can be used to plot a multi-timeframe breakout channel.

Some people call it a stretch indicator.
[2016-11-04 04:02:36]
Sierra Chart Engineering - Posts: 104368
We can relatively easy put together a study like this. So this is called the Stretch study?

You can also create it by using the Spreadsheet study:
https://www.sierrachart.com/index.php?page=doc/StudiesSystemsAlerts.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
[2016-11-04 04:29:09]
The Pipe - Posts: 16
I have the code for the mt4 version of the indicator and I have a spreadsheet that you can manually enter the OHLC details and manually plot the levels.

Here is the code for the mt4 version but it does not plot the targets like from the spreadsheet. It actually just plots the channel with two lines.

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Green
#property indicator_color2 Red
#property indicator_width1 2
#property indicator_width2 2
#property indicator_style1 STYLE_SOLID
#property indicator_style2 STYLE_SOLID

//-- External variables
extern int StPeriod = 10;

//-- Buffers
double FextMapBuffer1[];
double FextMapBuffer2[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//|------------------------------------------------------------------|
int init()
{
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0, FextMapBuffer1);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,FextMapBuffer2);
IndicatorShortName("Stretch Breakout Channel ("+ StPeriod +")");
return(0);
}

//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}

//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
// Start, limit, etc..
int start = 0;
int limit;
int counted_bars = IndicatorCounted();

// nothing else to do?
if(counted_bars < 0)
return(-1);

// do not check repeated bars
limit = Bars - 1 - counted_bars;

// Iteration
for(int pos = limit; pos >= start; pos--)
{
int dshift = iBarShift(Symbol(), PERIOD_D1, Time[pos], false);
double stretch = iCustom(Symbol(), PERIOD_D1, "Stretch", StPeriod, 0, dshift+1);
double OPEN = iOpen(Symbol(), PERIOD_D1, dshift);
FextMapBuffer1[pos] = OPEN + stretch;
FextMapBuffer2[pos] = OPEN - stretch;
}
return(0);
Private File
Attachment Deleted.
[2023-10-02 23:23:56]
Thaddeus Fulmer - Posts: 71
Is there any update on the Stretch Opening Range indicator for Sierra?

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

Login

Login Page - Create Account