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 on 11.04.2020
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: Display Symbol TF.algo
- Rating: 5
- Installs: 1502
- Modified: 13/10/2021 09:55
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.
thank you