cTrader Moving Average Colors

by Paul Hayes in category Trend at 25/10/2019
Description

This cTrader Moving Average (MA) is a variation from the standard version that is included with the platform as default, it will show the trend colors, so you can set which color you would like to see when the indicator is showing a bullish or bearish trend.

cTrader MA Indicator with Colors

Paul Hayes
Sales & Marketing
Emailcontact@clickalgo.com
Phone: (44) 203 289 6573
Websitehttps://clickalgo.com

Twitter | Facebook | YouTube | Pinterest | LinkedIn

PS: Why not join our instant chat group on Telegram or visit our YouTube Channel

Download
165 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.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

// https://clickalgo.com/ctrader-moving-average-colors

namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class ClickAlgoIndicator : Indicator
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }


        protected override void Initialize()
        {
            Print("It is not possible to download the software from the cTDN website. Please visit clickalgo.com");
            ChartObjects.DrawText("ShowCopyright", "It is not possible to download the software from the cTDN website. Please visit:-  https://clickalgo.com/ctrader-moving-average-colors", StaticPosition.BottomCenter);
        }

        public override void Calculate(int index)
        {
            // Calculate value at specified index
            // Result[index] = ...
        }

    }
}
Comments
0