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

PanagiotisCharalampous
22 Apr 2024, 06:07

RE: RE: RE: cTrader backtests executes take profits often to optimistic. Seems like a bug

roul.charts said: 

PanagiotisCharalampous said: 

roul.charts said: 

I'm also wondering when a stored TP is executed.

I'm in Tick-Data Backtester / Optimizer Mode
I had my own TP logic:
tpHit = position.TradeType == TradeType.Buy ? currentPrice >= targetTpLevel : currentPrice <= targetTpLevel;

And also set the same TP at Trade Execution direct with the SL in the Trade ID.

My code is always executed faster at a TP Level then the built in TP in Backtesting. I can't imagine why. Even if I set a threshold that my code is executed later - after the TP is reached. 
My code is executed earlier then the built in TP.

My aim was to let the built in TP close the trade if i only buy 1 lot instead of running through my code…

Hi there,

It is hard to understand your problem from an abstract description. Feel free to share source code and exact steps to reproduce what you are looking at and we will have a look.

Best regards,

Panagiotis

Ok, i can't share the whole bot. It's 3000 lines of code already. But i can make an example bot to show the difference / timing of TP execution. Is the Trade TP executed OnTick or OnBar if i'm in the backtester mode?

 

If you use TP, SL or pending orders which are executed at a specific level, then you should use tick data for your backtesting. If you use bar data the results will be wrong.


@PanagiotisCharalampous

PanagiotisCharalampous
20 Apr 2024, 06:18

RE: cTrader backtests executes take profits often to optimistic. Seems like a bug

roul.charts said: 

I'm also wondering when a stored TP is executed.

I'm in Tick-Data Backtester / Optimizer Mode
I had my own TP logic:
tpHit = position.TradeType == TradeType.Buy ? currentPrice >= targetTpLevel : currentPrice <= targetTpLevel;

And also set the same TP at Trade Execution direct with the SL in the Trade ID.

My code is always executed faster at a TP Level then the built in TP in Backtesting. I can't imagine why. Even if I set a threshold that my code is executed later - after the TP is reached. 
My code is executed earlier then the built in TP.

My aim was to let the built in TP close the trade if i only buy 1 lot instead of running through my code…

Hi there,

It is hard to understand your problem from an abstract description. Feel free to share source code and exact steps to reproduce what you are looking at and we will have a look.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Apr 2024, 06:16

Hi there,

Please contact us at community@ctrader.com to check if your email address has been blacklisted.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Apr 2024, 06:15

Hi there,

Your problem is here

                while (Symbol.Spread != 0)    //the new part that i added is from here
                {
                    Thread.Sleep(1000);
                }       

If you prevent the cBot from receiving new ticks, the spread will never change.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
20 Apr 2024, 06:13

Hi there,

Unfortunately this is not possible at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Apr 2024, 13:38

Hi there,

You should use args.Reason to check if the position has been closed by a stop loss.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Apr 2024, 13:36

RE: RE: Error Exception #3B086C2C in cTrader 4.8.904.0

ajaycc3 said: 

Hi Panagiotis,

Any update on this?

 

PanagiotisCharalampous said: 

Hi there,

Can you please share with us the source code of the cBot?

Best regards,

Panagiotis

 

Hi there,

We will fix it in an upcoming release.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Apr 2024, 05:30

RE: RE: Ctrader indicators and Cbots doesn't appear in the chart

touitiaures said: 

PanagiotisCharalampous said: 

Hi there,

Please send us some troubleshooting info and quote the link to this discussion. Let us know when you have done it so that we can check.

Best Regards,

Panagiotis 


 

I already did that, but I have no link to share?

You need to share the link to the current discussion. Please resend so that we can track it.


@PanagiotisCharalampous

PanagiotisCharalampous
19 Apr 2024, 05:29

Hi there,

Your question is not clear. What do you mean when you say display?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2024, 12:12

Hi there,

Just drag your chart to the left.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2024, 11:50

RE: RE: RE: Ctrader app for FTMO and TopFX not working

Geek2France said: 

PanagiotisCharalampous said: 

VulcanTrader said: 

My app is not working after installing the Android OS update on my Pixel 8. Please advice. i don't see any update have these brokers been advised to add an update to the Play Store?

The update is only released for cTrader cross broker application at the moment. Use that one instead

Hello, when will you fix ctrader brokers version ?

Usually should we use ctrader broker version or cross-broker versions ? What are the differences ?

Hi there,

Cross broker version gets the updates first, broker versions follow. Otherwise, there are no significant differences between the applications.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2024, 11:47

Hi there,

Please send us some troubleshooting info and quote the link to this discussion. Let us know when you have done it so that we can check.

Best Regards,

Panagiotis 


 


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2024, 11:46

Hi there,

Can you please share some screenshots of what you are looking at?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2024, 11:44

Hi there,

You have a logical problem here

                            if (bottomTime < topTime)
                                Print(Bars.OpenTimes[lastIndex] + ": Bottom first");
                            
                            if (topTime > bottomTime)
                                Print(Bars.OpenTimes[lastIndex] + ": Top first");

bottomTime < topTime and topTime > bottomTime are the same thing.


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2024, 06:29

RE: RE: RE: cTrader "pip scale" constantly goes flukey, and nowhere near being correct

firemyst said: 

PanagiotisCharalampous said: 

firemyst said: 

Hello Team @Spotware / @PanagiotisCharalampous

Any further updates on a fix for this issue?

Thank you

Hi firemyst,

We had no luck reproducing this issue therefore we cannot fix it at the moment.

Best regards,

Panagiotis

It's still doing this as of today, April 17th with version 4.8.30.

Doesn't the @Spotware team want to remote desktop and/or something else to get to the bottom of it? It's OBVIOUSLY an issue since I can reproduce it and have provided several videos showing it happening and can still reproduce the issue at will.

It happens when I switch between saved templates on an indicie (like the NAS 100) with a broker that has a pip size set at 0.1 points instead of 1 point on that indicie. 

 

Hi firemyst,

We have noted your report but it is low priority since nobody else reported this. We will come back to you in case we need more information.

Best regards,


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2024, 06:25

RE: Risk Reward Tool for PC/MAC

berkinozen said: 

Hello. First of all, I find the Risk/Reward tool you've added to the web platform very useful. However, I wish this tool could be integrated into both PC and Mac desktop applications as well. If this happens, many people in my circle will transfer their accounts to cTrader. I'm eagerly looking forward to the announcement of this development.

Hi there,

It will be added soon in all the rest of the applications.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2024, 06:09

Hi there,

You should talk to your broker about this.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2024, 06:08

RE: cTrader desktop isn't displaying a full chart worth of history when higher value Renko charts are selected

firemyst said: 

So no updates on this @Spotware?

Hi firemyst,

Which broker is this?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2024, 06:07

Hi there,

No this is not possible at the moment. It might be added in a future update.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Apr 2024, 06:06

Hi there,

Can you explain why you think both are executed?

Best regards,

Panagiotis


@PanagiotisCharalampous