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

PanagiotisCharalampous
07 Aug 2024, 07:06 ( Updated at: 07 Aug 2024, 07:07 )

Hi there,

Deal map is not available in cTrader for Mac at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Aug 2024, 05:35

Hi there,

Platforms just stream price feeds from liquidity providers. Hence you should talk to your broker about this.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Aug 2024, 05:32

Hi there,

It is not possible to implement this. cBots cannot block an account from trading.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
07 Aug 2024, 05:29

RE: RE: RE: RE: How can I know when the stop loss is triggered

eynt said: 

 

You can't and probably that will be the case in live environments too. It takes some time for the server to notify the client application that a position was closed.

 

Is there a way via code to “ask” the broker directly and not via cTrader properties/events?

I am not sure what do you mean…


@PanagiotisCharalampous

PanagiotisCharalampous
07 Aug 2024, 05:28

Hi ncel01,

No plans at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2024, 10:49

RE: RE: Backtesting net profit

claudiorubbiani said: 

PanagiotisCharalampous said: 

Hi there,

Can you please let us know which version of cTrader you use?

Best regards,

Panagiotis

Hi Panagiotis and thanks for your quick reply,

I use cTrader Desktop for Windows ver 4.9.2.26009 branded for ICMarkets

Kind regards,

Claudio

 

 

Hi Claudio,

This issue should have been fixed in v5.0.29. Please use the latest version instead.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2024, 08:23

You should check this matter with Pepperstone


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2024, 08:22

RE: RE: How can I know when the stop loss is triggered

eynt said: 

Hi

 

It seems the Positions.Closed event is triggered somehow late, meaning AFTER OnTick. So when I run the OnTick the cBot thinks the position is still open (and the position still appears on the Positions property).

How can I know from the OnTick that the position is already closed?

 

Thanks

You can't and probably that will be the case in live environments too. It takes some time for the server to notify the client application that a position was closed.


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2024, 06:54

Hi there,

Can you please let us know which version of cTrader you use?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2024, 06:54

Hi there,

Can you please let us know which version of cTrader you use?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2024, 05:59

Hi there,

Feel free to post your suggestions in the Suggestions section below

https://ctrader.com/forum/suggestions/

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2024, 05:56

RE: RE: RE: RE: RE: RE: Get symbol all time high/low

ncel01 said: 

PanagiotisCharalampous said: 

ncel01 said: 

PanagiotisCharalampous said: 

ncel01 said: 

PanagiotisCharalampous said: 

Hi there,

You would need to get all the bars from the server and check the high/low. Try M1 to save time.

Best regards,

Panagiotis

Hi Panagiotis,

How can that be achieved programmatically?

Symbol.AllTimeHigh would be straight forward but I believe there is no such property available. So, what can be a work around here?

Thank you.

Hi ncel01,

You can load all the bars by using Bars.LoadMoreHistory(). Then you can use Bars.HighPrices.Maximum(Bars.Count) and Bars.LowPrices.Minimum(Bars.Count) to get the respective high and low.

Best regards,

Panagiotis

Panagiotis,

Thanks.

Bars.LoadMoreHistory() does not seem to change anything, no matter the time frame.
On the other hand, it looks like max/min historical prices are only caught when using monthly bars : 

var bars = MarketData.GetBars(TimeFrame.Monthly);var maxHistorical = bars.HighPrices.Maximum(bars.Count);var minHistorical = bars.LowPrices.Minimum(bars.Count));

Hi there,

Note that Bars.LoadMoreHistory() currently works only in real time execution and you need to call it until it returns 0, so that all bars have been loaded.

Best regards,

Panagiotis

Right. I was testing it in real time but I was not aware that multiple calls would be (maybe) needed.

However, it looks like for shorter time frames it is not possible go as far back in time, even when all bars are loaded (Bars.LoadMoreHistory() = 0), leading to different results.

Hi ncel01,

It always depends on how much data is available by your broker.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2024, 05:53

Hi there,

The most probable reason is that your conditions are never met. Try debugging your strategy to check what values you are getting from the model.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2024, 05:50

RE: RE: Private link Copytrader

kaizenfx said: 

PanagiotisCharalampous said: 

Hi there,

They just need to open the link in their browser and they will be able to follow your strategy.

Best regards,

Panagiotis

Thank you for your answer, and can i add my other personnal accounts ? 

Best regards.

Yes you should be able to do this


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2024, 05:49

RE: RE: What kind of text?

karatedog said: 

firemyst said: 

You don't say what kind of text you're wanting to align.

That might be because newbies like me don't have a clue what kind of Text are out there, and coming from other programming languages the immediate practice is, it should not matter, it is Text at the end.

The documentation is lacking, badly organized and probably not maintained, I get constant warnings for obsolete methods when copying examples from the documentation.

This forum post was the single answer to my question as well, otherwise I would not even imagine that half of the properties for Text object is defined with the DrawText method and other half is defined on the base class properties. This is not just ugly, it makes the learning curve extremely steep. 

Thanks for the info!

 

Hi there,

Please let us know which examples are obsolete so that we can update them.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
06 Aug 2024, 05:41

RE: RE: RE: RE: When a bot was "unexpectedly terminated", cTrader shows the bot as still running

firemyst said: 

PanagiotisCharalampous said: 

firemyst said: 

PanagiotisCharalampous said: 

Hi firemyst,

Can we have the cBot that reproduces this problem?

Best regards,

Panagiotis

On a separate issue, I'm not receiving email notifications when someone responds to a post in the forums. Are they working?

The issue reported above happened again to me today. AGain the button won't click, I can't stop it. The only way for me to get out of this is to kill cTrader and restart. 

When I do that, I do know the “OnStop” even doesn't happen or register, because in my code when a bot instance stops, I have it write information to a text file. All the forex pairs (such as NZDUSD below) don't write anything out when this happens. So whatever terminates the process doesn't cause the “OnStop” even to fire.

 

I can't figure out exactly how to reproduce it, so am not sending through the full bot code. I do know it happens when I have 26 bot instances running under one instance of cTrader on a VPS using 4GB of memory making all sorts of trades and managing them. Maybe it gets hung when too many ticks come through and it can't handle them? Kind of like when debugging in Visual Studio and if we wait too long it kills the process to safeguard data. 

I'm trying to figure out code to send you that easily reproduces this behaviour all the time.

 

 

Hi firemyst,

If you want to receive notifications for responses, make sure you subscribe to the thread

Best regards,

Panagiotis

 

I started this post, thus I'm automatically subscribed. I should have received your response, but nothing. I didn't know until I was browsing today. That's why I was asking. I know about the subscribe feature. 

 

However, I received a notification about your most recent response, so that tells me 1) either you somehow responded differently over the weekend (being an admin and all) that cause me to not receive anything or 2) the service was down for some reason.

Thank you

Hi firemyst,

We didn't change anything neither we are aware of any issues. Make sure the email did not end in your spam folder.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Aug 2024, 12:47

Hi there,

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
05 Aug 2024, 12:46

Hi there,

This happens due to lazy loading. For the Calculate() method to be called, you need to access an Output IndicatorDataSeries. Else you will need to call the method explicitly from your cBot.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Aug 2024, 12:42

RE: RE: When a bot was "unexpectedly terminated", cTrader shows the bot as still running

firemyst said: 

PanagiotisCharalampous said: 

Hi firemyst,

Can we have the cBot that reproduces this problem?

Best regards,

Panagiotis

On a separate issue, I'm not receiving email notifications when someone responds to a post in the forums. Are they working?

The issue reported above happened again to me today. AGain the button won't click, I can't stop it. The only way for me to get out of this is to kill cTrader and restart. 

When I do that, I do know the “OnStop” even doesn't happen or register, because in my code when a bot instance stops, I have it write information to a text file. All the forex pairs (such as NZDUSD below) don't write anything out when this happens. So whatever terminates the process doesn't cause the “OnStop” even to fire.

 

I can't figure out exactly how to reproduce it, so am not sending through the full bot code. I do know it happens when I have 26 bot instances running under one instance of cTrader on a VPS using 4GB of memory making all sorts of trades and managing them. Maybe it gets hung when too many ticks come through and it can't handle them? Kind of like when debugging in Visual Studio and if we wait too long it kills the process to safeguard data. 

I'm trying to figure out code to send you that easily reproduces this behaviour all the time.

 

 

Hi firemyst,

If you want to receive notifications for responses, make sure you subscribe to the thread

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
05 Aug 2024, 12:40

Hi there,

cTrader does not allow US residents to use the application unless the broker is regulated in the US.

Best regards,

Panagiotis


@PanagiotisCharalampous