IndicatorArea problem

Created at 29 Feb 2024, 19:04
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!
AM

Amin.fx

Joined 02.08.2021

IndicatorArea problem
29 Feb 2024, 19:04


hello

What is the problem with the following code?

Nothing is displayed in my chart

The IndicatorArea command does not work anymore

 

using cAlgo.API;

namespace ChartControlsTest
{
    [Indicator(IsOverlay = false, AccessRights = AccessRights.None)]
    public class ChartControls : Indicator
    {
        [Parameter(DefaultValue = "Click Me")]
        public string Text { get; set; }

        [Parameter(DefaultValue = HorizontalAlignment.Center)]
        public HorizontalAlignment HorizontalAlignment { get; set; }

        [Parameter(DefaultValue = VerticalAlignment.Center)]
        public VerticalAlignment VerticalAlignment { get; set; }

        protected override void Initialize()
        {
            var button = new Button
            {
                Text = Text,
                HorizontalAlignment = HorizontalAlignment,
                VerticalAlignment = VerticalAlignment
            };

            button.Click += Button_Click;

            IndicatorArea.AddControl(button);
        }

        private void Button_Click(ButtonClickEventArgs obj)
        {
            obj.Button.Text = "You clicked me, thanks";
        }

        public override void Calculate(int index)
        {
        }
    }
}


@Amin.fx
Replies

PanagiotisCharalampous
01 Mar 2024, 09:10

Hi there,

Looks good to me

Best regards,

Panagiotis


@PanagiotisCharalampous

Amin.fx
01 Mar 2024, 13:52 ( Updated at: 01 Mar 2024, 13:56 )

RE: IndicatorArea problem

PanagiotisCharalampous said: 

Hi there,

Looks good to me

Best regards,

Panagiotis

 

 

When I run the indicator for the first time, nothing is displayed to me.
To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button.
This problem did not exist until a few months ago. This problem appeared with the new program update


@Amin.fx

PanagiotisCharalampous
02 Mar 2024, 07:24

RE: RE: IndicatorArea problem

Amin.fx said: 

PanagiotisCharalampous said: 

Hi there,

Looks good to me

Best regards,

Panagiotis

 

 

When I run the indicator for the first time, nothing is displayed to me.
To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button.
This problem did not exist until a few months ago. This problem appeared with the new program update

Can you record a video demonstrating these steps?


@PanagiotisCharalampous

PanagiotisCharalampous
02 Mar 2024, 07:24

RE: RE: IndicatorArea problem

Amin.fx said: 

PanagiotisCharalampous said: 

Hi there,

Looks good to me

Best regards,

Panagiotis

 

 

When I run the indicator for the first time, nothing is displayed to me.
To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button.
This problem did not exist until a few months ago. This problem appeared with the new program update

Can you record a video demonstrating these steps?


@PanagiotisCharalampous

Amin.fx
02 Mar 2024, 13:50 ( Updated at: 03 Mar 2024, 13:33 )

RE: RE: RE: IndicatorArea problem

PanagiotisCharalampous said: 

Amin.fx said: 

PanagiotisCharalampous said: 

Hi there,

Looks good to me

Best regards,

Panagiotis

 

 

When I run the indicator for the first time, nothing is displayed to me.
To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button.
This problem did not exist until a few months ago. This problem appeared with the new program update

Can you record a video demonstrating these steps?

 

 

Unfortunately, the site does not allow me to post videos or links


@Amin.fx

Amin.fx
02 Mar 2024, 14:00 ( Updated at: 03 Mar 2024, 13:33 )

RE: RE: RE: IndicatorArea problem

PanagiotisCharalampous said: 

Amin.fx said: 

PanagiotisCharalampous said: 

Hi there,

Looks good to me

Best regards,

Panagiotis

 

 

When I run the indicator for the first time, nothing is displayed to me.
To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button.
This problem did not exist until a few months ago. This problem appeared with the new program update

Can you record a video demonstrating these steps?

 

Unfortunately, the site does not allow me to post videos or links


@Amin.fx

PanagiotisCharalampous
04 Mar 2024, 06:41

RE: RE: RE: RE: IndicatorArea problem

Amin.fx said: 

PanagiotisCharalampous said: 

Amin.fx said: 

PanagiotisCharalampous said: 

Hi there,

Looks good to me

Best regards,

Panagiotis

 

 

When I run the indicator for the first time, nothing is displayed to me.
To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button.
This problem did not exist until a few months ago. This problem appeared with the new program update

Can you record a video demonstrating these steps?

 

Unfortunately, the site does not allow me to post videos or links

Hi there,

I do not think there is a problem with links but you can send us the video at community@ctrader.com

Best regards,

Panagiotis


@PanagiotisCharalampous

Amin.fx
05 Mar 2024, 14:52

RE: RE: RE: RE: RE: IndicatorArea problem

PanagiotisCharalampous said: 

Amin.fx said: 

PanagiotisCharalampous said: 

Amin.fx said: 

PanagiotisCharalampous said: 

Hi there,

Looks good to me

Best regards,

Panagiotis

 

 

When I run the indicator for the first time, nothing is displayed to me.
To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button.
This problem did not exist until a few months ago. This problem appeared with the new program update

Can you record a video demonstrating these steps?

 

Unfortunately, the site does not allow me to post videos or links

Hi there,

I do not think there is a problem with links but you can send us the video at community@ctrader.com

Best regards,

Panagiotis

 

Thanks for following up
I sent to email


@Amin.fx

PanagiotisCharalampous
06 Mar 2024, 06:41

RE: RE: RE: RE: RE: RE: IndicatorArea problem

Amin.fx said: 

PanagiotisCharalampous said: 

Amin.fx said: 

PanagiotisCharalampous said: 

Amin.fx said: 

PanagiotisCharalampous said: 

Hi there,

Looks good to me

Best regards,

Panagiotis

 

 

When I run the indicator for the first time, nothing is displayed to me.
To solve the problem, the ctrader must be closed once and opened again. Or should change the profile to show the button.
This problem did not exist until a few months ago. This problem appeared with the new program update

Can you record a video demonstrating these steps?

 

Unfortunately, the site does not allow me to post videos or links

Hi there,

I do not think there is a problem with links but you can send us the video at community@ctrader.com

Best regards,

Panagiotis

 

Thanks for following up
I sent to email

Thank you, it has been forwarded to the product team


@PanagiotisCharalampous

Amin.fx
06 Mar 2024, 15:01 ( Updated at: 06 Mar 2024, 15:02 )

RE: RE: RE: RE: RE: RE: RE: IndicatorArea problem

PanagiotisCharalampous said: 

 

Thank you, it has been forwarded to the product team

 

I installed the previous version of the program (4.1) from the help centre. In this version, there was no problem in running the indicator.
In version 4.8, running the indicator is accompanied by a lot of lag. But in version 4.1, the indicator opens very quickly and has no lag. In general, the speed of the software is much higher than version 4.8.
Are these problems that I mentioned above only related to my system? Does it mean that problems can be solved by installing a specific file?
Or is the problem with the new version?

Best regards


@Amin.fx

PanagiotisCharalampous
07 Mar 2024, 07:36

RE: RE: RE: RE: RE: RE: RE: RE: IndicatorArea problem

Amin.fx said: 

PanagiotisCharalampous said: 

 

Thank you, it has been forwarded to the product team

 

I installed the previous version of the program (4.1) from the help centre. In this version, there was no problem in running the indicator.
In version 4.8, running the indicator is accompanied by a lot of lag. But in version 4.1, the indicator opens very quickly and has no lag. In general, the speed of the software is much higher than version 4.8.
Are these problems that I mentioned above only related to my system? Does it mean that problems can be solved by installing a specific file?
Or is the problem with the new version?

Best regards

Hi Amin,

It looks like a bug in the newer version.

Best regards,

Panagiotis


@PanagiotisCharalampous