category Trend  at 04/01/2023

Show Spread on the chart


This code simply displays the current spread on the chart.

You can change its position or color.

My current unit is Points (0.1 pips).

- Visit to see my other robots.

- Visit to download my other robots file.


using System;
using cAlgo.API;

namespace cAlgo.Indicators
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class Spread : Indicator
        public override void Calculate(int index)
            Chart.DrawStaticText(" ", Math.Round(Symbol.Spread/Symbol.TickSize).ToString(), VerticalAlignment.Bottom, HorizontalAlignment.Right, Color.DarkBlue);


Joined 30.10.2021

  • Type: free
  • Language: C#
  • Trading Platform: cTrader Automate
  • Filename: Spread.algo
  • Rating: 0
  • Downloads: 793
Only logged in users can post a comment
Comments not found