Description
The basis of many trading robots is this simple indicator!
I did not see the fractal channel indicator for cTrader in the Google search results, so I wrote it
This indicator gives many valid signals and is very useful for identifying trading ranges and bases.
The way to get signals from this indicator is very easy and there are good trading strategies based on this indicator on the internet that you can find with a simple search.
I hope you are always profitable.
Combining this indicator with other indicators can be useful
For example, candlestick pattern finder indicator
I have many indicators that can be useful for you, click to see them : AlgoCreators
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
namespace cAlgo
{
[Cloud("upper band", "lower band", Opacity = 0.090)]
[Indicator(AccessRights = AccessRights.None, IsOverlay = true)]
public class FractalChannel : Indicator
{
[Parameter("Period", Group = "Channel Seting", DefaultValue = 5)]
public int Period { get; set; }
[Output("upper band", LineColor = "#01AF50")]
public IndicatorDataSeries UpperBand { get; set; }
[Output("lower band", LineColor = "Red")]
public IndicatorDataSeries LoweBand { get; set; }
private Fractals _fractals;
protected override void Initialize()
{
_fractals = Indicators.Fractals(Period);
}
public override void Calculate(int index)
{
UpperBand[index] = double.IsNaN(_fractals.UpFractal.LastValue) ? UpperBand[index - 1] : _fractals.UpFractal.LastValue;
LoweBand[index] = double.IsNaN(_fractals.DownFractal.LastValue) ? LoweBand[index - 1] : _fractals.DownFractal.LastValue;
}
}
}
AlgoCreators
Joined on 16.01.2022
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: Fractal Channel.algo
- Rating: 5
- Installs: 552
- Modified: 31/03/2024 09:58
Note that publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section, please use the Copyright Infringement Notification form to submit a claim.
Comments
Log in to add a comment.
can you make this type of fractal available as well ? thanks