Category Other  Published on 02/12/2019

Chart Switch

Description

This indicator uses the cTrader Automate API chart controls to allow you quickly switch the chart timeframe or symbol, it supports up to 20 symbols and 10 timeframes.

Free Download: https://www.algodeveloper.com/product/chart-switch/

If you have any questions or issue with our product please contact us via our site live chat or if we were offline leave a message, if you post a comment here we will not get any notification and we will not be able to help you.

 


using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo
{
    [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class Blank : Indicator
    {
        protected override void Initialize()
        {
            ChartObjects.DrawText("AlgoDeveloper", "Please download this indicator from AlgoDeveloper.com", StaticPosition.Center, Colors.Red);
        }

        public override void Calculate(int index)
        {
            // Calculate value at specified index
            // Result[index] = ...
        }
    }
}


afhacker's avatar
afhacker

Joined on 15.10.2015

  • Distribution: Free
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: Blank.algo
  • Rating: 0
  • Installs: 1824
  • Modified: 13/10/2021 09:54
Comments
Log in to add a comment.
afhacker's avatar
afhacker · 4 years ago

[Sharpie],

Please read the documentation, you have to set maximum width/height.

Play a little bit with parameters.