Replies

PanagiotisCharalampous
09 Dec 2024, 07:44

Hi there,

Can you please share your plugins code and provide exact steps on how we can reproduce this behavior?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 07:41

Hi there,

This is a known issue and it will be resolved in an upcoming update of cTrader Desktop.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 07:35

RE: RE: RE: Issue with Slow Stochastic on cTrader

ctid8719770 said: 

Hi Panagiotis,
the issue persists, do you know if it has been resolved?
Perhaps I need to update the platform manually instead of waiting for the automatic update?
Thanks!

 

ctid8719770 said: 

PanagiotisCharalampous said: 

Hi there,

It is a known issue and it will be resolved in an upcoming update.

Best regards,

Panagiotis

 

Thanks a lot!

 

Hi there,

We have not released an update yet, when we do it will be pushed automatically and you will see the relevant message on the top right corner.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 07:28

RE: RE: I can't use the Bars.ClosePrices.Last(1) line of code in the onTick method from the plugins

kouekam18alain said: 

PanagiotisCharalampous said: 

Hi there,

OnTick() is a method of a robot, not of a plugin. Same for Bars property. Here is a starting point for handling tick events and accessing bars in a plug in

using System;using cAlgo.API;using cAlgo.API.Collections;using cAlgo.API.Indicators;using cAlgo.API.Internals;namespace cAlgo.Plugins{    [Plugin(AccessRights = AccessRights.None)]    public class Test : Plugin    {        Bars _bars;         Symbol _symbol;        protected override void OnStart()        {            // To learn more about cTrader Automate visit our Help Center:            // https://help.ctrader.com/ctrader-automate           _bars = MarketData.GetBars(TimeFrame.Minute);           _symbol = Symbols.GetSymbol("EURUSD");            _symbol.Tick += _symbol_Tick;        }        private void _symbol_Tick(SymbolTickEventArgs obj)        {            Print(_bars.ClosePrices.Last(1));        }        protected override void OnStop()        {            // Handle Plugin stop here        }    }        }

Best regards,

Panagiotis

There is an error on this line :  Print(_bars.ClosePrices.Last(1));

_bars doesn't know the methods or ClosePrices.Last and therefore fails to call them.

_bars. doesn't call any method, hence the error

Can you share the exact error you receive?


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 07:14

Hi there,

In order to get a closed position's p&l, you need to get the deals using ProtoOADealListReq. The ProtoOADeal.ProtoOAClosePositionDetail will provide you with the information of the closed position and from there you can calculate the P&L of each position.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 06:57

Hi there,

Each broker has a different price feed therefore it is expected that the results will be different. You should backtest/optimize using the price feed of the broker you are planning to trade with.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 06:56

RE: RE: Backtesting report - wrong parameters values

Hlautameki said: 

PanagiotisCharalampous said: 

Hi there,

Can you please explain to us how we can reproduce the problem?

Best regards,

Panagiotis

Hi PanagiotisCharalampous

To reproduce the problem go to Algo → Backtesting → Run backtest → Generate report and then in the report you can find Parameters with wrong/empty values

Best regards

Thank you, it's a known issue and it will be fixed in the upcoming release.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 06:43

RE: RE: RE: RE: RE: RE: Cloud server not executing

vince.stans said: 

vince.stans said: 

PanagiotisCharalampous said: 

vince.stans said: 

vince.stans said: 

PanagiotisCharalampous said: 

Hi there,

We didn't have any similar reports. Did you try debugging your cBot i.e. adding logs and understand what happens after this first week? Did you try comparing by executing using your own VPS? Is there a difference in execution?

Best regards,

Panagiotis

Hi Panagiotis,

Thanks for the advise. I will add in logs and run the bots simultaneously on my own VPS and the cloud server to understand the issues. Once I spot a discrepancy I will let you know. 

I did a check with backtesting, and the bot definitely misses trades. One position from last week was not taken and closed, and another one at the end of the week was not opened. See the screenshot of the trades that were taken in the backtest, but not with my bot running. 

Unfortunately I cannot help you with such information. You need to follow my advise in my previous post. Add logs to your cBot to understand what happens in real time execution. Also compare it with execution on a VPS

Hello. I came across the same problem this morning. I think it is due to incorrect value of the MACD. See attached images. 

 

MACD is the leading indicator to close positions. At 06:00 the MACD flipped negative, meaning that the position should be closed. But the value is not printed as negative, but as a formula: -8.282095762690567E-05. At 10:00 am the MACD is printed as -0,0001373403922979577 and the position is closed. 

 

Can you look into this?

 

Thanks,

Vince 

Any ideas? Is it possible to stop the formula results but calculate the MACD as a absolute value?

Hi there,

The way the results are printed is just the scientific notation and this is used for convenience when there are too many decimals in the actual value. It does not affect how the values are used in your cBot.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 06:37

Hi there,

Thank you for reporting this issue. Unfortunately we were not able to reproduce this behavior. Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.

Best regards,

Panagiotis
 


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 06:34

Hi there,

Yes this is possible. You can find an example below

https://ctrader.com/forum/cbot-support/22549/#post-65190

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 06:29

Hi there,

This is a cTrader forum. We cannot help you with TradingView questions.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 06:26

Hi there,

You need to contact your broker regarding withdrawal requests.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
09 Dec 2024, 06:23

Hi there,

This is a known issue and it will be resolved in an upcoming update.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Dec 2024, 13:14

Hi there,

You can start using the link below. Let us know if you have any questions.

https://help.ctrader.com/ctrader-copy/becoming-a-strategy-provider/

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Dec 2024, 09:43

Hi there,

The max leverage is determined by the brokers and varies from broker to broker. You need to check yourself what leverage each broker offers.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Dec 2024, 09:39

Hi there,

No there is no such option unfortunately.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Dec 2024, 08:00

Hi there,

Your instance is set to run on the cloud. In order to backtest, you need to add a local instance.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Dec 2024, 07:58

RE: RE: Issue with XAUUSD price in openapi python response

h.y.henry.chan said: 

Hi there,

Sorry, I mixed up the symbol with asset ID, what are the differences?

PanagiotisCharalampous said: 

Hi there,

Are you sure this is for XAUUSD? The symbol id for XAUUSD on most brokers is 41. Who is your broker?

Best regards,

Panagiotis

 

EUR is an asset, USD is an asset, EURUSD is a symbol


@PanagiotisCharalampous

PanagiotisCharalampous
06 Dec 2024, 07:52

Hi there,

Can you please provide more information e.g. videos? You did not even mention the application you are using, you posted your issue in third party products.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Dec 2024, 13:59

Hi there,

We always try to keep the two applications as close as possible but there times when a feature is ready on one bot not on the other and in this case we choose to release it instead of waiting for both applications to be ready. Tools missing in each application will be released in upcoming updates.

Best regards,

Panagiotis


@PanagiotisCharalampous