template
template
31 Jan 2016, 14:34
I have 2 questions.
I created many templates and after a while I dont know what is what when 4-5 charts are running with different templates. . Is there any way to mark templates so when I apply it it shows name on chart ?
Second. How can I delete custom indicators from scrolling list , not from chart? I downloaded many and the list is just too long .
Replies
Jiri
31 Jan 2016, 17:14
Use this code instead.
using cAlgo.API; namespace cAlgo { [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class Note : Indicator { [Parameter("Note", DefaultValue = "Template name")] public string Text { get; set; } protected override void Initialize() { ChartObjects.DrawText("note", Text, StaticPosition.TopRight, Colors.Gray); } public override void Calculate(int index) { return; } } }
@Jiri
tdezo
04 Feb 2016, 13:22
( Updated at: 21 Dec 2023, 09:20 )
RE: RE:
thanks tmc , appreciate your help.
Is there any way to mark templates so when I apply it it shows name on chart ?
You can make simple indicator which would show a text on the chart. Then you can put it into each template and save it.
using cAlgo.API; namespace cAlgo { [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class Note : Indicator { [Parameter("Note", DefaultValue = "Template name")] public string Text { get; set; } protected override void Initialize() { ChartObjects.DrawText("note", Text, StaticPosition.TopRight, Colors.Gray); } public override void Calculate(int index) { return; } } }
How can I delete custom indicators from scrolling list , not from chart? I downloaded many and the list is just too long .
There are 2 options.
- Delete it from cAlgo platform.
- Delete cAlgo from Indicators folder. %userprofile%\Documents\cAlgo\Sources\Indicators
@tdezo
Jiri
31 Jan 2016, 17:10 ( Updated at: 21 Dec 2023, 09:20 )
RE:
You can make simple indicator which would show a text on the chart. Then you can put it into each template and save it.
There are 2 options.
@Jiri