PanagiotisCharalampous's avatar
PanagiotisCharalampous
26 follower(s) 0 following 1006 subscription(s)
Replies

PanagiotisCharalampous
03 Oct 2019, 14:35

Hi xavier.affringue,

Yes you can add a label in the form designer as well. Exactly as you would in a typical WinForms project.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 14:18

Hi xavier.affringue,

Yuo will need to create a public function in the form, pass the price as a parameter and print the value on a label.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 12:37 ( Updated at: 21 Dec 2023, 09:21 )

Hi xavier.affringue,

See an example below

namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]
    public class NewIndicator : Indicator
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        [Output("Main")]
        public IndicatorDataSeries Result { get; set; }

        private Form1 _f1;
        private Thread _thread;

        protected override void Initialize()
        {
            _f1 = new Form1();
            _thread = new Thread(() => _f1.ShowDialog());
            _thread.SetApartmentState(ApartmentState.STA);
            _thread.Start();

        }

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


Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 12:08

Hi xavier.affringue,

It seems you just copied and pasted code expecitng it to work. To add a WinForm to your project, it is better to edit the indicator in Visual Studio and add a new form as a new class. Then initialize it and load it from the Indicator. Also, you cannot access the Symbol information from a form since this is not a property of the form but a property of the indicator. You need to pass this information as a parameter.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 10:43

Hi Be Rich

Do you change the following values to the actual ones?

            server = "server IP address";
            database = "database name";
            uid = "username";
            password = "password";

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 10:31

Hi Sergio,

Yes performance fees will be withdrawn from his/her trading account and will be deposited to yours. Spotware carries out the transfer of funds between the brokers.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 10:08

Hi 6878977,

If you do not have access to the source code, you cannot reference the indicator in your cBot.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 09:56

Hi Peter,

Can you please tell us your broker, trading account and the strategy you are following?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 08:24

Hi djxtrader,

You can find a good definition of what an OCO order is here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 08:21

Hi fathi.tarik91@gmail.com,

Thanks for posting in our forum. We would appreciate if you could send us troubleshooting information the next time this happens. It would be helpful to determine the cause of the issue. To do so, press Ctrl+Alt+Shift+T, paste a link to this discussion into the textbot that will show up and press Submit. Then, please also paste some screenshots of this behavior in this thread. It will help us visualise what you are looking at.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 08:15

Hi Sergio,

Thanks for posting in our forum. Please find the answers to your questions below

  1. Traders from any brokerage can follow you as long as their broker is a full member of cTrader Copy.
  2. Fees are paid by the followers
  3. Fees are deposited to your trading accounts as soon as they are realized.

 Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 08:13

Hi FireMyst,

Yes this is correct.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
03 Oct 2019, 08:12

Hi 6878977,

Thanks for posting in our furum. Indicator outputs are explicitely defined in cTrader Automate. See below an example from Sample Alligator


        [Output("Jaws", LineColor = "Blue")]
        public IndicatorDataSeries Jaws { get; set; }

        [Output("Teeth", LineColor = "Red")]
        public IndicatorDataSeries Teeth { get; set; }

        [Output("Lips", LineColor = "Lime")]
        public IndicatorDataSeries Lips { get; set; }

If you want to get the data 9 candles back for e.g. Lips, you just need to call Lips.Last(9).

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2019, 16:58

Hi Tatsuya,

3.6 has already been released to some brokers. It should be avalable soon to all cTrader brokers.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2019, 16:40

Hi ctid1566965,

Thanks. Can you please follow the steps below and let me know if they fix the issue?

  1. Go to C:\Users\User\AppData\Roaming\broker-cTrader\Statistic
  2. Delete the contents of the folder
  3. Restart cTrader

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2019, 16:24

Hi cadulazarini.eng,

Thanks for posting in our forum and sharing your suggestions with us. Please use the Suggestions section for your reccomendations so that we can keep everything in one place.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2019, 10:56

Hi Noppanon,

Use the PositionId property of the HistoricalTrade.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2019, 08:47

Hi collettnoel,

Thanks for posting in our forum. You can always check if there are no positions open before executing an order. See below the condition

            if (Positions.Count == 0)
            {
                // Execute your trading
            }

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2019, 08:44

Hi Fx,

You can always start from our Help Centre. If you need assistance in developing your project, you can post a Job or contact a Consultant.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
02 Oct 2019, 08:40

Hi 85percent,

To request positions, tag 57 needs to be TRADE. Yours is set to QUOTE.

Best Regards,

Panagiotis


@PanagiotisCharalampous