Description
This indicator displays Symbol and TF on the chart.
YouTube
Another indicators:
--free--
Upper TF Heikin-ashi Bull Bear
--paid--
MTF OHLCFP Lines Candles Before
cBot:
Auto Calculate Lots V4.0 自動ロット計算
Best Regards
using System;
using System.Text;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
namespace cAlgo
{
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AutoRescale = true, AccessRights = AccessRights.None)]
public class DisplaySymbolTF : Indicator
{
[Parameter("Color", DefaultValue = "Black")]
public string tColor { get; set; }
[Parameter("Transparency", DefaultValue = 200, MinValue = 0, MaxValue = 255)]
public int l_Transparency { get; set; }
[Parameter("VerticalAlignment", DefaultValue = VerticalAlignment.Top)]
public VerticalAlignment VerticalAlignment { get; set; }
[Parameter("HorizontalAlignment", DefaultValue = HorizontalAlignment.Center)]
public HorizontalAlignment HorizontalAlignment { get; set; }
protected override void Initialize()
{
Color _upColor = Color.FromName(tColor);
byte u_g = _upColor.G;
byte u_b = _upColor.B;
byte u_r = _upColor.R;
string timeframe = Chart.TimeFrame.ToString();
string symbolname = Chart.SymbolName;
Chart.DrawStaticText("symboltimeframe", symbolname + " " + timeframe, VerticalAlignment, HorizontalAlignment, Color.FromArgb(l_Transparency, u_r, u_g, u_b));
}
public override void Calculate(int index)
{
}
}
}

yomm0401
Joined 11.04.2020
- Type: Free
- Language: C#
- Trading Platform: cTrader Automate
- Filename: Display Symbol TF.algo
- Rating: 0
- Installs: 1201
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.
Comments
Only logged in users can post a comment
Comments not found