Replies

tperalta82
16 Aug 2021, 05:56

RE:

amusleh said:

Hi,

We were able to replicate this issue, we will investigate and update you as soon as possible.

 

Thanks, my fix is working so far, but yeah for other users will be nice


@tperalta82

tperalta82
28 Jul 2021, 15:54 ( Updated at: 28 Jul 2021, 17:17 )

RE:

Interesting, which cTrader version? Have you tried on demo?

EDIT: Okay, it works if you just use the indicator as standalone, but if you include it in a bot as a custom indicator, it stops working, although i'm 100% sure it stopped working because i had this working in the past with 0 code changes

EDIT2:

Ended up with this and it works so far

public bool IsLastBar2(int index)
{
            return Bars[index].OpenTime == Bars.LastBar.OpenTime;
}

amusleh said:

Hi,

It works fine on my system, it works only if new ticks are coming and the market is open.

 


@tperalta82

tperalta82
11 Jan 2021, 20:16

RE:

Hey PanagiotisCharalampous ,

After checking the ClosePositionAsync reply you gave me, i went and checked the code, and I already had that for a while, and it still locks the UI

 

try
                                {
                                    TradeOperation tOperation = ClosePositionAsync(pos);
                                    while(tOperation.IsExecuting)
                                    {
                                        Thread.Sleep(50);
                                    }
                                    tResult = tOperation.TradeResult;
                                }
                                catch (InvalidOperationException IOX)

 

I havea full threaded implementation for the cBot, the call is outside of the ontick/onbar and runs on its own thread , sorry for the late reply btw

PanagiotisCharalampous said:

Hi tperalta82,

During peak hours, it might take some time for your order to be filled if the infrastructure (servers, LPs etc) is busy. If you want to avoid UI freezing, try using ClosePositionAsync.

Best Regards,

Panagiotis 

Join us on Telegram

 


@tperalta82

tperalta82
08 Jan 2021, 14:56

RE: RE:

Another thing i just thought of, we did some tests on demo and this did not occur, is it possible that when using demo, the LP's won't be an issue as the orders won't even go there?

 

 


@tperalta82

tperalta82
08 Jan 2021, 14:49

RE:

Hi again,

So, since we have no idea how to mitigate the possible LP issue (it's not a thing that we can just switch, or am I wrong?), do you think trying it on another broker would fix the issue?

Or what would you suggest?

Thanks in advance!

 


@tperalta82

tperalta82
08 Jan 2021, 14:15

RE:

 

Hi PanagiotisCharalampous,

By LP what do you mean? Broker? Liquidity Provider? Kind of lost here.

 

Best Regards,

Tiago

 


@tperalta82

tperalta82
08 Jan 2021, 12:15 ( Updated at: 08 Jan 2021, 12:16 )

RE:

Good morning PanagiotisCharalampous,

 

Yeah the asynchronous will fix the ui lock, as doe the server response delays, do you think if we use openapi instead of regular cbot, this can be mitigated? 

Or the behavior will be the same?

 

Best regards, 

 

 


@tperalta82

tperalta82
17 Nov 2020, 15:27

RE:

PanagiotisCharalampous said:

Hi tperalta82,

This happens due to equity to equity calculation of the positions. If the follower's account has a smaller balance that the strategy provider, then the initial position volume is rounded up. Hence when strategy modified, the equity to equity volume does not change. Try following the strategy with the same balance as the strategy provider and you will realize that it works fine.

Best Regards,

Panagiotis 

Join us on Telegram

Just tested, but it is weird, because if I open a new position, it will enter but if that's the way it works, it's fine, will not use the modify position.

 

Thanks


@tperalta82

tperalta82
17 Nov 2020, 15:09

RE:

PanagiotisCharalampous said:

Hi tperalta82,

Thanks, please leave it there and I will check.

Best Regards,

Panagiotis 

Join us on Telegram

Sure, not a problem!

 

Thanks!!


@tperalta82

tperalta82
17 Nov 2020, 14:59 ( Updated at: 21 Dec 2023, 09:22 )

RE:

PanagiotisCharalampous said:

Hi tperalta82,

Confirmed.

Best Regards,

Panagiotis 

Join us on Telegram

Okay, I Have now doubled the position:

As per the provider page:

 

But my follower:

And if you're not on the same broker, you should have hit the bug as well


@tperalta82

tperalta82
17 Nov 2020, 14:54 ( Updated at: 21 Dec 2023, 09:22 )

RE:

PanagiotisCharalampous said:

Hi tperalta82,

Thanks I am following you now.

Best Regards,

Panagiotis 

Join us on Telegram

Right now you have a 1k position as per:

And my follower:

 

Please confirm so i can modify the position!


@tperalta82

tperalta82
17 Nov 2020, 14:39 ( Updated at: 21 Dec 2023, 09:22 )

RE:

PanagiotisCharalampous said:

Hi tperalta82,

The invitation link you have sent is not valid.

Best Regards,

Panagiotis 

Join us on Telegram

https://ct.icmarkets.com/copy/strategy/15330?c=dgeBmoef&i=6863


@tperalta82

tperalta82
17 Nov 2020, 14:38 ( Updated at: 21 Dec 2023, 09:22 )

RE: RE:

tperalta82 said:

PanagiotisCharalampous said:

Hi tperalta82,

I could not reproduce such a behavior. Can you please provide more information e.g. strategy name, account numbers, brokers and screenshots demonstrating this issue?

Best Regards,

Panagiotis 

Join us on Telegram

 

We created a test strategy yesterday and deleted, but I have one for these tests that I can use:

https://ct.icmarkets.com/copy/strategy/15330?c=VeGuXGsF&i=6861 tell me when you're following it. i'm going to generate trade data manually and take screenshots

That provider is on ICMarkets, so you can follow it let's say on ... fondex demo acc or other that is not icmarkets

Provider Account Original Position: 

 

Follower Account Original Position:

 

Provider Account Modified Position (doubled):

Follower Account still has Original Value and will never update:

On Provider Page, VOlume is correct:

 


@tperalta82

tperalta82
17 Nov 2020, 14:33

RE:

PanagiotisCharalampous said:

Hi tperalta82,

I could not reproduce such a behavior. Can you please provide more information e.g. strategy name, account numbers, brokers and screenshots demonstrating this issue?

Best Regards,

Panagiotis 

Join us on Telegram

 

We created a test strategy yesterday and deleted, but I have one for these tests that I can use:

https://ct.icmarkets.com/copy/strategy/15330?c=VeGuXGsF&i=6861 tell me when you're following it. i'm going to generate trade data manually and take screenshots

That provider is on ICMarkets, so you can follow it let's say on ... fondex demo acc or other that is not icmarkets


@tperalta82

tperalta82
17 Nov 2020, 14:03

FYI

FYI:

 

The Position modification is reflected on the provider's page, just not on the followers accounts


@tperalta82

tperalta82
09 Jul 2020, 16:45

RE:

Ahh I see, thank you, will try and post results

PanagiotisCharalampous said:

Hi tperalta82,

Interesting... are you backtesting? haven't tried without backtesting though

No, you did not mention anywhere that this happens on backtesting. On backtesting this method is not supported at the moment. If you want to get more bars during backtesting, you need to start testing from an earlier date.

Best Regards,

Panagiotis 

Join us on Telegram

 


@tperalta82

tperalta82
09 Jul 2020, 16:35 ( Updated at: 21 Dec 2023, 09:22 )

RE:

Interesting... are you backtesting? haven't tried without backtesting though

PanagiotisCharalampous said:

Hi tperalta82,

Works fine for me

Best Regards,

Panagiotis 

Join us on Telegram

 


@tperalta82

tperalta82
09 Jul 2020, 15:15

RE:

Hey PanagiotisCharalampous,

 

Tried EURUSD and GBPUSD, on both 15m and 1h, on ctrader demo and icmarkets demo, same results.

 

PanagiotisCharalampous said:

Hi tperalta82,

Can you please provide the symbol, timeframe and broker?

Best Regards,

Panagiotis 

Join us on Telegram

 


@tperalta82

tperalta82
08 Jul 2020, 16:30

RE:

Thanks a lot for your reply, that was one of my first tries, doesn't work, some pairs go to 128 others 120, got one to 198.

 

After the while the strategy stops due to a timeout because of this.

I even connected VS to make proper debug with breakpoints, and no, doesn't add more bars

 

PanagiotisCharalampous said:

Hi tperalta82,

You should be calling the method until the desired amount of bars is retrieved. See below

            var bars = MarketData.GetBars(TimeFrame, SymbolName);
            while (bars.Count < 1000)
            {
                bars.LoadMoreHistory();
            }

Best Regards,

Panagiotis 

Join us on Telegram

 

 


@tperalta82