Category Other  Published on 23/11/2021

cTrader User ID

Description

This is a simple indicator from E7 Academy, use it if you need to get your cTrader ID. Your cTrader ID will be located at the top of the chart in lime green. Simply add this indicator to a chart or add an instance to this indicator. Happy hunting.


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

namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class E7cTraderUserID : Indicator
    {

        protected override void Initialize()
        {
            Chart.DrawStaticText("\t", "Your cTrader User ID is : " + this.Account.UserId.ToString(), VerticalAlignment.Top, HorizontalAlignment.Center, Color.Lime);
        }

        //////////////////////////////////////////////

        public override void Calculate(int index)
        {
            ///
        }
    }
}


Gwave's avatar
Gwave

Joined on 26.10.2014

  • Distribution: Free
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: E7 cTrader User ID.algo
  • Rating: 5
  • Installs: 1069
  • Modified: 04/11/2021 22:34
Comments
Log in to add a comment.
No comments found.