Refresh chart

Created at 26 Mar 2020, 19:46
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
MR

mrha1000

Joined 04.10.2017

Refresh chart
26 Mar 2020, 19:46


Hello friends

I want to write a code in my indicator to refresh the chart 5 seconds after the new candlestick opens.

please guide me


@mrha1000
Replies

PanagiotisCharalampous
27 Mar 2020, 07:58

Hi mrha1000,

You can use the Timer.TimerTick() to execute code at specific intervals.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

mrha1000
27 Mar 2020, 10:54

RE:

PanagiotisCharalampous said:

Hi mrha1000,

You can use the Timer.TimerTick() to execute code at specific intervals.

Best Regards,

Panagiotis 

Join us on Telegram

 

Thankful
What command should I use to refresh the chart?


@mrha1000

PanagiotisCharalampous
27 Mar 2020, 11:01

Hi mrha1000,

There is no command to refresh the chart. You have to write a method that recalculates all the values of the indicator.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

mrha1000
27 Mar 2020, 16:17

RE:

PanagiotisCharalampous said:

Hi mrha1000,

There is no command to refresh the chart. You have to write a method that recalculates all the values of the indicator.

Best Regards,

Panagiotis 

Join us on Telegram

Yes Yes

I realized now

Thankyou


@mrha1000