Description
Fetches the user id and displays it on your screen.
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 userid : Indicator
{
[Parameter(DefaultValue = 0.0)]
public double Parameter { get; set; }
[Output("Main")]
public IndicatorDataSeries Result { get; set; }
protected override void Initialize()
{
Chart.DrawStaticText("text1", "Your user id is: " + this.Account.UserId.ToString(), VerticalAlignment.Center, HorizontalAlignment.Center, Color.Black);
Chart.DrawStaticText("text2", "\n\nYour user id is: " + this.Account.UserId.ToString(), VerticalAlignment.Center, HorizontalAlignment.Center, Color.White);
}
public override void Calculate(int index)
{
}
}
}
KA
Kafeldom
Joined on 09.03.2019
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: user id.algo
- Rating: 0
- Installs: 1077
- Modified: 13/10/2021 09:54
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.
No comments found.