Price Action / BreakOut

by rkokerti in category Trend at 28/01/2013
Description

This is a Price Action Indicator, that helps you to identify the difference between trend / sideway market. Unlike Highest High Lowest Low indicator, here you don't need to set period. It adapts to the market, based on the logic of inside bars.

 

Buy, when price is above EMA and breaks up from the consolidation channel.

Sell, when price is below EMA and breaks down from the consolidation channel.

Download
26194 downloads
How to install
Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
Formula / Source Code
Language: C#
Trading Platform: cAlgocTrader
using System;
using cAlgo.API;
using cAlgo.API.Indicators;

namespace cAlgo.Indicators
{
    [Indicator(IsOverlay = true)]
    public class Break_Out_Channel : Indicator
    {
//-----------------------------------------------------------------     
    [Output("Up", Color = Colors.DarkCyan, PlotType = PlotType.Line, LineStyle = LineStyle.LinesDots, Thickness = 1)]
    public IndicatorDataSeries Up { get; set; }
    
    [Output("Down", Color = Colors.DarkCyan, PlotType = PlotType.Line, LineStyle = LineStyle.LinesDots, Thickness = 1)]
    public IndicatorDataSeries Down { get; set; } 

    [Output("Mid", Color = Colors.DarkViolet, PlotType = PlotType.Line, LineStyle = LineStyle.LinesDots, Thickness = 1)]
    public IndicatorDataSeries Mid { get; set; }
//----------------------------------------------------------------- 
    public override void Calculate(int index)
    {
	
	if(index < 5)
	return;

    if(MarketSeries.Close[index] < Up[index-1] & MarketSeries.Close[index] > Down[index-1])
    {
    Up[index] = Up[index-1];
    Down[index] = Down[index-1];    
    }
    else
    {
    Up[index] = MarketSeries.High[index];
    Down[index] = MarketSeries.Low[index];    
    }

	Mid[index] = (Up[index] + Down[index])/2;	
   }
}   
}
Comments

allo - April 16, 2014 @ 16:08

Hi, I don't know how to install it. It says it's a .cs file and can't open it when I try to install it once downloaded.

thanks, Sylvie

MasterBo - August 15, 2014 @ 09:21

Hi.

Can't download your indicator. I receive 404 error.  Did You removed it.

Can You help me to get Your indicator Price Action / Break Out

raphaelcarlot - August 21, 2014 @ 00:22

Hi.

Can't download your indicator. I receive 404 error.  Did You removed it.

Can You help me to get Your indicator Price Action / Break Out

 

rkokerti - August 31, 2014 @ 12:55

Hi,

I don't know why source code disappeared, but I uploaded again.

Dean - November 02, 2014 @ 10:36

It works ok for me

5