Replies

PanagiotisCharalampous
18 Jan 2024, 10:02

Hi there,

Use String.Replace() instead.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 07:02

Hi there,

Can you please provide us more information about this issue? What exactly happens? If you can share some screenshots, it would be helpful.

Best regards,

Panagiotis

 


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 07:00

Responded here 

https://ctrader.com/forum/announcements/1463#post-106931


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 06:59

RE: get movingaverages on histogram

ahmadtrader448 said: 

hello guys,

I calculated histograms over the higher timeframe of 15 minutes timeframe and fitted them on a lower timeframe of 5 minutes,

Is there any way to get a moving average on the higher timeframe histograms of 15 minutes on a lower timeframe of 5 minutes?

MAson15Min_hist      = Indicators.MovingAverage(15Min_hist , MAsonhistPeriod  , MAsonhistMethod);

 

 

 

 

Hi Ahmad,

What is stopping you from doing so? The code sample you have shared should have more or less work, if the data source you pass to the indicator is correct. 

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 06:39

Hi acrigney,

Can you please provide us with a more comprehensive explanation of your problem?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 06:38

RE: RE: CLI: lack of basic functionalities

ncel01 said: 

PanagiotisCharalampous said: 

Hi there,

Stop Command

cBot can be stopped by killing the CLI process. This is the command implied by the documentation

Journal File Generation / Date and Time in CLI Log

Stdout contains all the information and can be forwarded to a text file. You can also implement your own logging functionality. We do not have any further plans at the moment.

Best regards,

Panagiotis

Dear Panagiotis,

Can you please provide more details about the “stdout” you mentioned?
I cannot find this file nor I am able to find any documentation about this.

Thank you.

Hi ncel01,

stdout stands for Standard Output. In terms of C# check Console.Out


@PanagiotisCharalampous

PanagiotisCharalampous
17 Jan 2024, 06:34

RE: RE: cTrader randomly crashing

Waxy said: 

Hello Panagiotis, 

The only thing the log says is “CbotName” crashed

As for sending the code, can I share it via email? The code is private, and I cannot share it publicly.

Regards,

PanagiotisCharalampous said: 

Hi Waxy,

Can you share the cBot's code and log after the crash as well?

Best regards,

Panagiotis

 

Hi Waxy,

Yes feel free to send it to me at community@ctrader.com

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Jan 2024, 07:11

Hi there,

There is no screenshot uploaded. Can you try again?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
16 Jan 2024, 07:09

RE: RE: cTrader tick data or m bars not working!

codex_oli said: 

PanagiotisCharalampous said: 

Hi there,

Please send us some troubleshooting info and quote the link to this discussion by pasting a link to this discussion inside the text box before you submit it.

Best Regards,

Panagiotis 


 

Hi, do you have an answer for the issue?

 

The team is investigating and it will be fixed in an upcoming update


@PanagiotisCharalampous

PanagiotisCharalampous
16 Jan 2024, 07:08

Hi there,

Make sure you are using the .Net 6.0 compiler

 


@PanagiotisCharalampous

PanagiotisCharalampous
16 Jan 2024, 07:07

RE: RE: free market data

thailand300 said: 

PanagiotisCharalampous said: 

Hi there,

All price data provided by cTrader brokers is free.

Best regards,

Panagiotis

Thank you. And is it possible to transfer cTrader data for Futures 6E and 6A to Ninjatrader 8? Is there a guide available for this?

 

Hi there,

You should ask NinjaTrader about this.

Best regards,


@PanagiotisCharalampous

PanagiotisCharalampous
16 Jan 2024, 07:05

RE: String to double conversion

AndreaPereira said: 

Hi Panagiotis,

I trade on fpmarkets and here they make 100 oz for units.

Hi Andrea,

What is the lot size of your broker e.g. for IC Markets is 100 units per lot. So if you type 0.22, it will trade 22 Oz of gold.

Best regards,

Panagiotis

 

So I do not see any problem


@PanagiotisCharalampous

PanagiotisCharalampous
15 Jan 2024, 13:43

RE: Error when opening cTrader

ctid3999979 said: 

Hi

I'm getting the following error when opening cTrader. I have to Force Quit and go back to my Windows VM. I have tried reinstalling it.

Using Sonoma 14.2.1 (23C71) on M2 Max.

Hi there,

Can you please install the latest update and let us know if it resolves the issue?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Jan 2024, 13:01

Hi there,

All price data provided by cTrader brokers is free.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Jan 2024, 13:00

RE: RE: RE: RE: MarketData.GetBars hangs forever

Intetics said: 

PanagiotisCharalampous said: 

Intetics said: 

PanagiotisCharalampous said: 

Hi there,

Thanks for the information, we will investigate it

Best regards,

Panagiotis

HI PanagiotisCharalampous,

Did you guys manage to reproduce the issue?

Regards

Hi there,

Yes and we are working on a solution.

Best regards,

Panagiotis

Thanks @PanagiotisCharalampous. Is there a temporary solution/hack I could use locally while you're guys finishish a proper fix? It's just a showstopper that stops the whole work I'm doing. 

Unfortunately there isn't. It seems that some data of the specific broker is corrupted and needs to be fixed


@PanagiotisCharalampous

PanagiotisCharalampous
15 Jan 2024, 12:57

RE: String to double conversion

AndreaPereira said: 

Hi Panagiotis,

I trade gold in lots. For example 0.22 units. Thanks for the help.

 

 

Hi Andrea,

It seems you are converting your Quantity from quantity to volume in units. Hence the input is translated to lots, not to units. What symbol are you trading and what is the lot size?

Best regards,

Panagiotis

 

Hi Andrea,

What is the lot size of your broker e.g. for IC Markets is 100 units per lot. So if you type 0.22, it will trade 22 Oz of gold.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Jan 2024, 08:22

RE: advance protection

Hamidrz.babaeifar said: 

Hi

I installed the version pf MacBook c trader but the advance protection option is not exist on it and there is no even the bottom of advance option. I will be appreciated for helping me.

best regards.

Hi there,

This is not available at the moment, it will be added in an upcoming release.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Jan 2024, 08:13

RE: RE: String to double conversion

AndreaPereira said: 

Good morning, thanks, I will try to do as you say. 

14-01---ok I managed it but it gives me a problem. I put a textBox that takes a string and saves it in the Quantity variable. The latter is linked to the Button_Click_Buy function. In the execution phase I enter a value in the textbox, for example 0.10, I click the button and it opens the position without the decimal part so 10.00.
Another example: I enter 0.01 and set the variable to 1.00. What did I do wrong? Thank's my friend.

 [Parameter("Quantity (Lots)", Group = "Volume", DefaultValue = 0.20, MinValue = 0.01, Step = 0.01)]
 public double Quantity { get; set; }
 --
 --
 --
 private void TextBox_TextChanged(TextChangedEventArgs obj)
     {
         Quantity = Convert.ToDouble(obj.TextBox.Text);
     }

 

public void Button_Click_Buy(ButtonClickEventArgs obj)
    {
        var volumeInUnits = Symbol.QuantityToVolumeInUnits(Quantity);
        ExecuteMarketOrder(TradeType.Buy, SymbolName, volumeInUnits, "zero");
    }

 

PanagiotisCharalampous said: 

Hi Andrea,

You can use Convert.ToDouble() method.

Best regards,

Panagiotis

 

Hi Andrea,

It seems you are converting your Quantity from quantity to volume in units. Hence the input is translated to lots, not to units. What symbol are you trading and what is the lot size?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Jan 2024, 08:09

Hi there,

You can only do this if the strategy provider allows you to view his history.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
15 Jan 2024, 08:06

Hi Waxy,

Can you share the cBot's code and log after the crash as well?

Best regards,

Panagiotis


@PanagiotisCharalampous