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

PanagiotisCharalampous
20 Jun 2019, 10:16

Hi marshalmax9,

The next time this happens please send us some troubleshooting information. Just press Ctrl+Alt+Shift+T, paste the link to this discussion inside the textbox and press submit. Let us know as soon as you have done so to check it.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jun 2019, 10:09

Hi moezm4h,

You can find more information here.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Jun 2019, 09:59

Hi Matt,

Minor updates usually include bug fixes and performance improvements. No new features are pushed with these updates.

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 17:55

Hi Matt,

We post release notes for major updates in the community and in the What's New section of cTrader. You can see the version of cTrader on the header of the application. For minor updates there are no release notes.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 17:43 ( Updated at: 23 Jan 2024, 13:14 )

Hi Matt,

You can read about what is included in v3.5 [here].

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 17:38

Hi efxps,

Thanks for positng in our forum. OnError is called when TradeResult.IsSuccessful = false. Which means positions not opened or pending order not placed You can find the errors that can trigger OnError here

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 15:35

Hi Gwave,

Can you please try downloading FxPro cTrader from here and let me know if it fixes the problem? Else try downloading using a different browser.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 15:30

You can see the version on the header of cTrader. It depends on your broker, there is nothing you can do. 


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 15:16

Hi a.fernandez.martinez,

Probably you are using v3.3 Note that this is available only in v3.5.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 15:08

Hi a.fernandez.martinez,

Here is an example

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

namespace cAlgo.Robots
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class NewcBot : Robot
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }

        protected override void OnStart()
        {
            foreach (var watchlist in Watchlists)
            {
                foreach (var symbol in Symbols)
                    Print(watchlist.Name + " - " + symbol);
            }
        }

        protected override void OnTick()
        {
            // Put your core logic here
        }

        protected override void OnStop()
        {
            // Put your deinitialization logic here
        }
    }
}

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 14:13

Hi aloz82,

Thanks for posting in our forum. At the moment Fibonacci Arc is available only on cTrader Web. If you notice, the link you sent os from cTrader Web section.

Regarding

The second question is whether there is an option to make all the objects in the chart appear temporarily. Temporarily hide all objects in the chart. 

There is no such option I am afraid.

Best Regards,

Panagiotis 


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 14:07

Hi a.fernandez.martinez,

Can you post a code sample showing how you are using Watchlists?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 11:51

Hi Chris,

If you are not familiar with C# then I don't think it will help you in anyway to run the demo app. The whole point would be to compare your implementation with the example project. Else you will just confirm yourself that the message is correct and that you get a response from the server. In any case, based on the available information, I guess that there should be something wrong with your implementation since everything else seems correct. 

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 11:40

Hi FireMyst,

It is async, meaning that it will be executed at a later point of time, when the event is received. It is not multi-threaded thought, it is still a single thread running and when the event is received, the handler will wait for its turn to be executed. So if the while loop is blocking the thread, then no events can be received and no handlers can executed.

You say

 I have the while loop is I don't want any other code to execute until both callback actions have completed.

and indeed this is what happens. No other code is execured, including callback actions, therefore you are stuck there forever :).

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 11:13

Hi Firemyst,

It's simple. It is a sequential single threaded execution. If the while loop is reached before the callbacks are executed or the IsExecuting is set to true then you will have a deadlock. As long as the while loop is executed, nothing else can be executed until the loop is finished. So if the code enters that loop there is no way out. As is the loop is actually useless.

Best Regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 11:07

Hi Chris,

Thanks for posting in our forum. Your message seems correct. I also tried it with the example application and I had no issues, response is received. Could you try it as well?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 11:04

Hi FireMyst,

You have a while loop on example 2 as well. This is why the callback action is not called. The while loop blocks the execution. Since you have flags in the callback actions, why do you need that loop?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Jun 2019, 10:49

Hi FireMyst,

The problem is with the while loops. They block the execution of the thread. If you want to execute operations after a successful position opening I suggess to use the asynchronous callback event raised by this function.

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2019, 12:45

Hi FireMyst,

Can you please share a complete cBot code that reproduces the issue?

Best Regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Jun 2019, 12:40

Hi cysecsbin.01,

No this is not possible. cTrader Automate API is not an open source API.

Best Regards,

Panagiotis


@PanagiotisCharalampous