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

PanagiotisCharalampous
19 Oct 2024, 08:42

Hi there,

Unfortunately there is no way a cBot to block you from trading.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Oct 2024, 05:09

Hi there,

Unfortunately there is no such information available in the API at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Oct 2024, 05:07

Hi there,

If the demo account's price feed is different to the live one, you should expect that the results will be different as well. Check with your broker.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Oct 2024, 05:04

Hi there,

Your question is not clear. Can you please elaborate?

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Oct 2024, 05:02

RE: RE: RE: Historical Bid/Ask prices for pair are not synced by timestamp

csafx1 said: 

PanagiotisCharalampous said: 

csafx1 said: 

I am using the Open API to get historical tick data (ProtoOAGetTickDataReq). It doesn't allow me to obtain the Bid / Ask prices together, and so I populate a Bid and Ask table with the respective returned data for each call. Some of the price points match on symbol and unix timestamp,  but many other do not. In reconciling the Bid and Ask prices, what is the process (outside of a actual match on symbol and timestamp), in resolving the other price data. Is there an approximate formula used or something else?

Hi there,

Bid and ask prices are independent from each other. Sometimes are updated together but most of the times they are updated separately.

Best regards,

Panagiotis

Thank you for the prompt response and clarification. So in an effort to facilitate back testing with the historical tick data in Open Api, similar to the OnTick event in cautomate, is it safe to say the cbot OnTick event simply raises the OnTick event with an SymbolTickEventArgs obj as soon as it has both an Ask and Bid price?

No, OnTick is raised whenever any of the two prices is updated.


@PanagiotisCharalampous

PanagiotisCharalampous
19 Oct 2024, 04:59

Hi there,

You can find your cBot log in the instance information

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
19 Oct 2024, 04:52

Hi there,

You could use an indicator to easily achieve this.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Oct 2024, 10:41

RE: RE: Stop Loss Calculation

rosscortb said: 

firemyst said: 

Depends on what you want.

You're getting the LastValue, which is value as of the moment it's taken in the current bar. As you know, values for the current bar can change depending on what the price does. 

So at the beginning of the bar for example, the top band could be one value, but then if price really skyrockets and the band expands, the top band could end up being another value by the close of the bar.

If that's what you want, fine.

Perhaps what you want is the value of the previous bar when price closed? With Bollinger Bands, that shouldn't change. So instead of getting the .LastValue, you need to get .Last(1).

 

@firemyst
Thanks for your reply.

This never really worked me, been struggling with this for a while. When back testing I would expect to see a stop loss line or Take profit line above or below the bands. No matter what pip level I set the variable to just stays the same.

It seems that you are using absolute prices as stop losses. You need to convert them to pips.


@PanagiotisCharalampous

PanagiotisCharalampous
18 Oct 2024, 09:31

RE: RE: ChartArea Max X value

(Panagiotis - any plans to include a line label property as a standard feature? Would be nice)

No specific plans at the moment


@PanagiotisCharalampous

PanagiotisCharalampous
18 Oct 2024, 07:12

Hi there,

Missing features will be added in future releases of the application.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Oct 2024, 06:04

Hi there,

We have received the information and the issue will be investigated soon.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Oct 2024, 05:58

RE: Historical Bid/Ask prices for pair are not synced by timestamp

csafx1 said: 

I am using the Open API to get historical tick data (ProtoOAGetTickDataReq). It doesn't allow me to obtain the Bid / Ask prices together, and so I populate a Bid and Ask table with the respective returned data for each call. Some of the price points match on symbol and unix timestamp,  but many other do not. In reconciling the Bid and Ask prices, what is the process (outside of a actual match on symbol and timestamp), in resolving the other price data. Is there an approximate formula used or something else?

Hi there,

Bid and ask prices are independent from each other. Sometimes are updated together but most of the times they are updated separately.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Oct 2024, 05:52

Hi there,

This tool is only available in cTrader Web.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Oct 2024, 05:50

Hi there,

You can use a combination of Chart.FirstVisibleBarIndex + Chart.MaxVisibleBars to get the last index on the chart.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Oct 2024, 05:36

RE: ctrader charts not loading, refer to screenshot

Robsn said: 

I have the same problem when using the internet in my workplace. Charts not loading. Maybe its because use of “public network” or unsafe network. I dont know. Need help with that as well.

Thanks! 

  

 

Hi there,

This is usually a network issue.  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
18 Oct 2024, 05:33

RE: RE: OnException for an an error in Initialize of an Indicator appears to run after all the history Calculate calls

martins said: 

PanagiotisCharalampous said: 

Hi there,

The OnException method was designed to inform developer that something is wrong in the algo. It is not supposed to be used in the execution flow of the algo. The order of execution of the OnException is not guaranteed and can be changed later. If you want to handle exceptions in predicted way you should use try catch {} blocks explicitly and do not rely on the OnException handler.

Best regards,

Panagiotis

Fair enough, for Indicators possibly, although if a Robot relies on them they need the same fault tolerance. 
Does it work differently for Robots - reading this https://help.ctrader.com/ctrader-algo/fault-tolerance/ it presents OnException as if it can take the place of individual error handling: “you can also customise how your algos react to certain exceptions, or overwrite the default fault tolerance behaviors entirely. To do so, use the OnException() method. It acts as the dedicated handler for any unhandled exceptions.”

Hi there,

Fault tolerance and correct exception handling is not the same thing. Fault tolerance means that the cBot/Indicator will continue running even if an unforeseen exception is thrown. It's there to help you from unpredicted exceptions. It's just a last resort handler in case an exception has not been explicitly handled by the programmer. Nevertheless this does not mean you do not need to handle properly exceptions you can foresee in your code. So do not rely on OnException() method for error handling.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
18 Oct 2024, 05:25

RE: RE: Copy trading don't work!!!

Da_ct said: 

PanagiotisCharalampous said: 

Hi there,

Your post does not provide enough evidence that something is wrong. Please provide more explicit information that shows there is an issue. Provide evidence of what commission you have received and explain what you should have gotten instead using calculations.

Best regards,

Panagiotis

Is this information not enough?  I'm not talking about commissions, I'm talking about profits that are not counted in the accounts that follow my strategy! I should send you the screenshots of the percentages that my followers make but rightly they will be different since they didn't follow me at the same time. So what other information do you want?
could it depend on the country? from the lever I use? by the volume of the lots? I just want to understand why

Hi there,

If you refer to the following accounts performance, results are not guaranteed and may vary compared to those of the strategy provider due to the following reasons:

  1. Differences between Your positions' entry and closing prices and those of the strategy provider.
  2. Differences in the size of Your positions compared to those of the strategy provider.
  3. Variations in the commissions You pay to Your broker compared to those of the strategy provider.
  4. The possibility that Your broker does not offer the same trading symbols used in the strategy.
  5. Insufficient margin in Your account to copy some of the orders executed in the strategy.
  6. Differences in the stop out levels, which might cause Your account to be stopped out, while the strategy provider continues to trade.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Oct 2024, 09:40

Hi there,

Your post does not provide enough evidence that something is wrong. Please provide more explicit information that shows there is an issue. Provide evidence of what commission you have received and explain what you should have gotten instead using calculations.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Oct 2024, 09:37

Hi there,

The OnException method was designed to inform developer that something is wrong in the algo. It is not supposed to be used in the execution flow of the algo. The order of execution of the OnException is not guaranteed and can be changed later. If you want to handle exceptions in predicted way you should use try catch {} blocks explicitly and do not rely on the OnException handler.

Best regards,

Panagiotis


@PanagiotisCharalampous

PanagiotisCharalampous
17 Oct 2024, 07:53

Hi there,

Did you check the obvious? That the account id is correct?

Best regards,

Panagiotis


@PanagiotisCharalampous