Category Trend  Published on 27/02/2021

cTrader US Dollar Index SMA

Description

Download this US Dollar Index indicator for the cTrader trading platform, The US Dollar Index is an average value of rate fluctuations of six major currencies (EUR, CAD, GBP, JPY, CHF, and SEK) against the U.S. dollar. The US Dollar index was invented in 1973 with an initial value of 100. In 1999 it was modified in order to keep track of the euro, which had just been introduced.

This customized version incorporates 2 Simple Moving Average indicators.

 

Contactinstant chat group
Websitehttps://clickalgo.com

ClickAlgo

Twitter | Facebook | YouTube | Pinterest | LinkedIn

 


using cAlgo.API;
using System.Windows.Forms;

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

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


        protected override void Initialize()
        {
            var ret = MessageBox.Show("It is not possible to download the software from the cTDN website. Would you like to visit us at ClickAlgo.com where you can download it?", "Downloading...", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

            if (ret == DialogResult.Yes)
            {
                System.Diagnostics.Process.Start("https://clickalgo.com/ctrader-usd-index");
            }
        }

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

    }
}


ClickAlgo's avatar
ClickAlgo

Joined on 05.02.2015

  • Distribution: Free
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: ClickAlgo Indicator.algo
  • Rating: 5
  • Installs: 1735
Comments
Log in to add a comment.
DI
dima-nikitin-70 · 4 years ago

наподобие us dollar index,можно ли написать индикаторы BRENT/XAG  и  XAU/XAG ?