Looking For Candlestick Tendency Indicator For MT4

Hi! I am looking for Candlestick Tendency indicator. The problem is that it’s only made for cTrader/cAlgo platform.

Does anyone have it or can suggest similar indicator?

I already searched forums and search engines.

Thanks! :slight_smile:

Indicators original source code in c#:

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo {

[Indicator (IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class CandlestickTendency : Indicator {
 
    [Parameter ()]
    public TimeFrame HighOrderTimeFrame { get; set; }
 
    [Output ("Line", PlotType = PlotType.Line, Color = Colors.Green)]
    public IndicatorDataSeries Line { get; set; }
     
    [Output ("Histogram", PlotType = PlotType.Histogram, Color = Colors.DarkGreen)]
    public IndicatorDataSeries Histogram { get; set; }
     
    [Output ("High Order Line", PlotType = PlotType.Line, Color = Colors.Red)]
    public IndicatorDataSeries HighOrderLine { get; set; }

    int index1, index2;
    MarketSeries series2;
    double value1, value2;
     
    protected override void Initialize () {
     
        value1 = value2 = 0;
        series2 = MarketData.GetSeries (HighOrderTimeFrame);
    }
     
    public bool trend1IsRising { get { return (MarketSeries.Close[index1] > MarketSeries.Open[index1 - 1]); }}
    public bool trend1IsFalling { get { return (MarketSeries.Close[index1] < MarketSeries.Open[index1 - 1]); }}
    public bool trend2IsRising { get { return (series2.Close[index2] > series2.Open[index2 - 1]); }}
    public bool trend2IsFalling { get { return (series2.Close[index2] < series2.Open[index2 - 1]); }}

    public override void Calculate (int index) {

        index1 = index;
        index2 = series2.OpenTime.GetIndexByExactTime (MarketSeries.OpenTime[index1]);

        if (trend1IsFalling)
            value1 = -1;
         
        if (trend1IsRising)
            value1 = 1;
             
        if (trend2IsFalling)
            value2 = -2;
          
        if (trend2IsRising)
            value2 = 2;
         
        Line[index] = value1;
        Histogram[index] = value1;
        HighOrderLine[index] = value2;
    }
}

}

As you would be aware you can convert MQL to Calgo code (C#)… but not the other way around unfortunately… P in the A… The C# Calgo Indicator displayed via USDJPY (Green 1 Hour - Red 4 Hour ) The GUI API in Calgo is not as advanced as Metatraders…

Below is a few MT4 Indicators (Demo or FREE) you may have already viewed…but just in case you haven’t seen them.


TiModel Indicators are generally high quality products…

I wish cTrader/Calgo had the MT4/5 Market… would add a whole new dimension…

Hope these can maybe be of help…