Replies

sonnguyenvuson
18 Feb 2025, 09:18

RE: RE: RE: Running a method in separate non blocking thread

firemyst said: 

sonnguyenvuson said: 

firemyst said: 

What's your overall goal? What are you wanting to do?

The idea is to run a trade operation on a separate thread, in this case modifying volume when a condition met, so that the main thread is not blocked. Because I need to check the condition using while loop, it will block my code until the condition is met.

Is there a reason you can't check the condition on every tick? A condition can't change on the current chart's symbol unless a tick comes through because the chart and data is only updated on every tick. 

You are right, I have not thought about that. I just need to make a signal to start checking the condition in OnTick().

Thanks a lot!


@sonnguyenvuson

sonnguyenvuson
18 Feb 2025, 08:47

RE: Running a method in separate non blocking thread

firemyst said: 

What's your overall goal? What are you wanting to do?

The idea is to run a trade operation on a separate thread, in this case modifying volume when a condition met, so that the main thread is not blocked. Because I need to check the condition using while loop, it will block my code until the condition is met.


@sonnguyenvuson

sonnguyenvuson
24 May 2024, 14:23

RE: RE: RE: Cloud trading mode Chart

PanagiotisCharalampous said: 

sonnguyenvuson said: 

PanagiotisCharalampous said: 

Hi there,

Νο, cBots executed on the cloud do not have access to the local chart.

Best regards,

Panagiotis

So can cBot still draws and accesses chart icons or lines on the cloud albeit I cannot visualize or change them on local chart?

Thank you!

Hi there,

There is no chart on the cloud so these methods are just irrelevant on the cloud.

Best regards,

Panagiotis

So I tested this with a new bot. The bot draw several lines and then on each bar print out each line name and price (Y). It works on a cloud instance. The only problem is the drawings are wiped when the bot stop. So cBots can draw and access drawings on cloud only while it's running. Just so this thread has a conclusion. Cheers!


@sonnguyenvuson

sonnguyenvuson
24 May 2024, 07:37 ( Updated at: 24 May 2024, 13:06 )

RE: Cloud trading mode Chart

PanagiotisCharalampous said: 

Hi there,

Νο, cBots executed on the cloud do not have access to the local chart.

Best regards,

Panagiotis

So can cBot still draws and accesses chart icons or lines on the cloud albeit I cannot visualize or change them on local chart?

Thank you!


@sonnguyenvuson