Can cTrader show Full Scale Indicators?

Created at 07 Jan 2018, 03:18
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
NG

ngocnguyen.uon

Joined 07.01.2018

Can cTrader show Full Scale Indicators?
07 Jan 2018, 03:18


Hi, I want to make my trading chart looks like mine in MT4 here, but when I try to do it on cTrader, I cannot combine RSI and Stochastic Oscillator and RSI in one chart and the charts of RSI and SO are not in full-scaled. Can anyone help me pls? Thank you.


@ngocnguyen.uon
Replies

ngocnguyen.uon
07 Jan 2018, 16:20 ( Updated at: 21 Dec 2023, 09:20 )

Here is my chart on cTrader, RSI and Stoch windows only show the range between 70 and 30


@ngocnguyen.uon

PanagiotisCharalampous
08 Jan 2018, 11:11

Hi ngocnguyen.uon,

There is no built in way to do this but you can combine the two indicators in a custom one. See a code example below

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 NewIndicator : Indicator
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        [Output("RSI", Color = Colors.Blue)]
        public IndicatorDataSeries Result { get; set; }
        [Output("K", Color = Colors.Green)]
        public IndicatorDataSeries K { get; set; }
        [Output("D", Color = Colors.Red)]
        public IndicatorDataSeries D { get; set; }

        private RelativeStrengthIndex _rsi;
        private StochasticOscillator _stochasticOscillator;

        protected override void Initialize()
        {
            _rsi = Indicators.RelativeStrengthIndex(MarketSeries.High, 14);
            _stochasticOscillator = Indicators.StochasticOscillator(9, 3, 9, MovingAverageType.Simple);
        }

        public override void Calculate(int index)
        {
            Result[index] = _rsi.Result[index];
            K[index] = _stochasticOscillator.PercentK[index];
            D[index] = _stochasticOscillator.PercentD[index];
        }
    }
}

Let me know if this helps

Best Regards,

Panagiotis


@PanagiotisCharalampous

dreytoth@gmail.com
09 Nov 2019, 09:28 ( Updated at: 21 Dec 2023, 09:21 )

scale fix

how can i program a scal fix like in mt4?

i need an indicator to stay in the middle of the channel


@dreytoth@gmail.com

PanagiotisCharalampous
11 Nov 2019, 08:42

Hi dreytoth@gmail.com,

Thanks for posting in our forum. You can check the values before adding them to the output series and make sure they do not cross the limits. If they cross the limits then use the limit values instead.

 Result[index] = Math.Min(Math.Max(value,-350),350);

Best Regards,

Panagiotis


@PanagiotisCharalampous

caputojr
27 Mar 2024, 17:37

RE: Can cTrader show Full Scale Indicators?

PanagiotisCharalampous said: 

Hi dreytoth@gmail.com,

Thanks for posting in our forum. You can check the values before adding them to the output series and make sure they do not cross the limits. If they cross the limits then use the limit values instead.

 Result[index] = Math.Min(Math.Max(value,-350),350);

Best Regards,

Panagiotis

How can I do this to a built-in indicator like DMS? Or at least manually adjust the Y axis of the indicator?


Thanks in advance.


@caputojr