RE
Topics
23 Jan 2021, 04:12
852
2
21 Dec 2017, 16:55
2007
5
Replies
rewtrading
22 Dec 2017, 00:37
RE:
rewtrading said:
I have converted a mql file to calgo. The build has no errors, when I run the indicator in is not on main chart window. What code do I need to make sure it is on main chart window
using cAlgo.API; using cAlgo.API.Internals; using cAlgo.API.Indicators; using cAlgo.Indicators; using System; namespace cAlgo { [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class supersignal : Indicator { [Parameter(DefaultValue = 0.0)] public double Parameter { get; set; } [Output("Main")] public IndicatorDataSeries Result { get; set; } protected override void Initialize() { // Initialize and create nested indicators } public override void Calculate(int index) { // Calculate value at specified index // Result[index] = ... } } }
@rewtrading
rewtrading
22 Dec 2017, 12:16
I used an online converter.
Thank you for your help
@rewtrading