Replies

Clark22
23 May 2024, 15:36 ( Updated at: 24 May 2024, 05:28 )

RE: RE: RE: Can I debug with VSCode?

PanagiotisCharalampous said: 

Clark22 said: 

PanagiotisCharalampous said: 

Hi Clark,

Yes you can use any .Net IDE you want.

Best regards,

Panagiotis 

Why doesn't the Attach debugger window open please? I'm following the VS example exactly, but with VSCode. 

Breakpoints set (Yes).

Building debug version (yes, confirmed).

Launch command reached according to logging when it runs. (Yes).

But the pop window doesn't show to choose and attach the debugger prior to the bot starting.
Is there another procedure to do with VSCode?

 

Cheers,

Clark

Hi Clark,

Read below how you can use Visual Code for debugging

https://code.visualstudio.com/docs/csharp/debugging#_attaching-to-a-process

Best regards,

Panagiotis

Thanks, I was able to connect to AlgoHost.exe


@Clark22

Clark22
23 May 2024, 10:47

Hi,

This seems like an old thread but, I prefer not to create a new one if one already exists.

I'm new to the platform and do also have issues with Optimisation and have some suggestions.

  • The lack of pause is surprising and very much needed in order to ad-hoc release CPU. 
  • It would ideally be using savepoints so it doesn't lose everything with a crash or forced close.
  • With the savepoints and pause features in place, it should also be possible to resume between app sessions (I see this as very much like a torrent/download app - it remembers, it keeps going).
  • The CPU usage should not be set to a default of 100% or even use 100% at all. At 100% you are no longer able to interact with the application, making it uncontrollable and unstable (and forcing you to force close it and lose everything after it's been running for hrs).

Other suggestions (Whilst I'm on the subject):

  • Spread display between the buy and sell buttons on the chart. It's displayed on the mobile app, but I see it nowhere else. It's really important.
  • The History/positions/orders pane could have the option to display many more fields (such as labels and comments) so that they can be worked with in a spreadsheet.


    Thanks for reading. I hope we can see some of these changes soon.

Cheers,

Clark


@Clark22

Clark22
22 May 2024, 08:14

RE: RE: Using files on cloud

PanagiotisCharalampous said: 

Clark22 said: 

Hi,

I'm also interested in this topic. Where can I put my files so that they get synchronized to the cloud as part of my release?

 

Cheers,

Clark

This is not possible at the moment. Only the cBot executable is synchronized to the cloud.

Oops, I was going to use them for reference data, and also for inter-bot communication/coordination/control (I assume this can't be done wth websockets). 


@Clark22

Clark22
22 May 2024, 02:22

Hi,

I'm also interested in this topic. Where can I put my files so that they get synchronized to the cloud as part of my release?

 

Cheers,

Clark


@Clark22

Clark22
21 May 2024, 13:52

Okay,

I see the precision is different: 

Logging Tick .252

Logging m1 .000

What is the expectation from the OnTimer() method and the Time object then?


@Clark22

Clark22
21 May 2024, 10:36

RE: My backTest chart is missing a day

PanagiotisCharalampous said: 

Hi there,

Can you please let us know your broker? Also try cleaning your backtesting cache in C:\Users\user\AppData\Roaming\Broker cTrader\BacktestingCache

Best regards,

Panagiotis

Hi Panagiotis,

Did you succeed in reproducing the problem?

 

Cheers,

Clark


@Clark22

Clark22
21 May 2024, 10:33

RE: Can I debug with VSCode?

PanagiotisCharalampous said: 

Hi Clark,

Yes you can use any .Net IDE you want.

Best regards,

Panagiotis 

Why doesn't the Attach debugger window open please? I'm following the VS example exactly, but with VSCode. 

Breakpoints set (Yes).

Building debug version (yes, confirmed).

Launch command reached according to logging when it runs. (Yes).

But the pop window doesn't show to choose and attach the debugger prior to the bot starting.
Is there another procedure to do with VSCode?

 

Cheers,

Clark


@Clark22

Clark22
20 May 2024, 10:29

RE: My backTest chart is missing a day

PanagiotisCharalampous said: 

Hi there,

Can you please let us know your broker? Also try cleaning your backtesting cache in C:\Users\user\AppData\Roaming\Broker cTrader\BacktestingCache

Best regards,

Panagiotis

Hi Panagiotis,

 

I cleared the cache and there is no change. I didn't expect there to be anyway. The behaviour looks like a defect.

 

Cheers,

Clark22 


@Clark22

Clark22
20 May 2024, 08:36

RE: My backTest chart is missing a day

PanagiotisCharalampous said: 

Hi there,

Can you please let us know your broker? Also try cleaning your backtesting cache in C:\Users\user\AppData\Roaming\Broker cTrader\BacktestingCache

Best regards,

Panagiotis

 

Hi,

Pepperstone demo SB account for this case.

I'll clear the cache, but it's a brand new installation so not expecting any change.

 

Cheers 

 


@Clark22

Clark22
20 May 2024, 07:36 ( Updated at: 20 May 2024, 07:43 )

RE: My backTest chart is missing a day

PanagiotisCharalampous said: 

Hi there,

It seems that historical data is missing from your broker. Talk to your broker about this.

Best regards,

Panagiotis

Further testing shows:


WHEN I set the start date for the backtest 1 day earlier (12/05/2024) 

THEN it runs through 12th in visual mode, reaches the 13th and the chart stops displaying market data, 

BUT the data is there this time and being backtested, the bot wakes up and opens positions.

 

There's a problem with the date range selection in this backtest example and with chart display. That's 2 related problems.

In the first scenario 13th - 14th - no data for 13th.

In the second scenario 12th -14th - backtest data is present but not visualized.

 

Scenario 2:


@Clark22

Clark22
20 May 2024, 07:17 ( Updated at: 20 May 2024, 07:43 )

RE: RE: My backTest chart is missing a day

Clark22 said: 

PanagiotisCharalampous said: 

Hi there,

It seems that historical data is missing from your broker. Talk to your broker about this.

Best regards,

Panagiotis

 

This screenshot is from the same chart that the bot is attached to:

 


@Clark22

Clark22
20 May 2024, 07:05

RE: My backTest chart is missing a day

PanagiotisCharalampous said: 

Hi there,

It seems that historical data is missing from your broker. Talk to your broker about this.

Best regards,

Panagiotis

Hi,

Thanks for your reply. 

The data is only missing in the backtest, not in the normal chart view, so I don't think that's the case.


@Clark22

Clark22
18 May 2024, 20:48 ( Updated at: 19 May 2024, 05:16 )

It's okay. I came to realise (with the help of CoPilot) that Symbol.PipValue is already calculated in the actual Account Currency.

So I can just do:

double stakeAsVolume = CashAmount / Symbol.PipValue;

 

Thanks.


@Clark22