Description
Show Symbol name and Timeframe name as a chart background.
With multiple charts open, it was a hassle to see the tab name for Symbol name, so I created this small indicator to
show the Symbol name and Timeframe as a chart background
The Font size and color are adjustable.
Let me know in comments for any updates.
using cAlgo.API;
using cAlgo.API.Internals;
namespace cAlgo
{
[Indicator(AccessRights = AccessRights.None, IsOverlay = true)]
public class AksBackgroundSymbolName : Indicator
{
[Parameter("Symbol Font Size", DefaultValue = 72)]
public int SymbolFontSize { get; set; }
[Parameter("Symbol Color", DefaultValue = "Gray")]
public Color SymbolColor { get; set; }
[Parameter("Timeframe Font Size", DefaultValue = 28)]
public int TfFontSize { get; set; }
[Parameter("Timeframe Color", DefaultValue = "Gray")]
public Color TfColor { get; set; }
[Parameter("Opacity", DefaultValue = 0.25, MaxValue = 1, MinValue = 0)]
public double Opacity { get; set; }
[Parameter("Horizontal Alignment", DefaultValue = HorizontalAlignment.Center)]
public HorizontalAlignment HorAlign { get; set; }
[Parameter("Vertical Alignment", DefaultValue = VerticalAlignment.Center)]
public VerticalAlignment VerAlign { get; set; }
protected override void Initialize()
{
TextBlock textBlock = new()
{
Text = Symbol.Name,
FontSize = SymbolFontSize,
ForegroundColor = SymbolColor,
Opacity = Opacity,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
};
TextBlock timeframe = new()
{
Text = Chart.TimeFrame.ShortName,
FontSize = TfFontSize,
ForegroundColor = TfColor,
Opacity = Opacity,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
};
Grid grid = new(2, 1);
grid.AddChild(textBlock, 0, 0);
grid.AddChild(timeframe, 1, 0);
grid.HorizontalAlignment = HorAlign;
grid.VerticalAlignment = VerAlign;
grid.IsHitTestVisible = false;
Chart.AddControl(grid);
}
public override void Calculate(int index)
{}
}
}
aksbenz
Joined on 26.09.2020
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: Aks Background Symbol Name.algo
- Rating: 5
- Installs: 873
- Modified: 17/04/2023 00:44
Comments
Good day! I simply would like to give a huge thumbs up for the good data you’ve right here on this post. I shall be coming again to your weblog for extra soon.how to become a credit card processing agent
I cherished as much as you will receive performed proper here. The caricature is attractive, your authored material stylish. nonetheless, you command get got an edginess over that you would like be handing over the following. sick definitely come further formerly once more as precisely the similar nearly a lot frequently inside of case you defend this hike.how to become a credit card processor
When I originally commented I clicked the -Notify me when new surveys are added- checkbox and now each time a comment is added I recieve four emails with the same comment. Can there be that is you’ll be able to eliminate me from that service? Thanks!sell credit card machines
Ghaziabad, which is considered to be the most modern state in India, is home to a number of different escort agencies; however, there are also escorts who are independent contractors. They really maintain accounts on web-based entertainment platforms, or they run their very own website or blog, both of which serve as channels via which you can communicate with them.
IP Extension Call Girls | dumb ways to die | Call Girls in Karol Bagh | Kaushambi Escorts | Escorts in Kavi Nagar | Lal Kuan Escorts Service |
If you interested creative Lego creations or you collect own favorite Lego series, welcome to our Lego fan blog where you find latest news on Lego and more.
Ghaziabad being perhaps the greatest modern state in India has various escort services however there are likewise escorts who work autonomously. They really do have profiles via web-based entertainment or they own their own site or blog through which you can get in touch with them.
IP Extension Call Girls | Call Girls in Karol Bagh | Kaushambi Escorts | Escorts in Kavi Nagar | Lal Kuan Escorts Service |
đź‘Ťđź‘Ť