Any equivalent function in cAlgo similar to RefreshRates in MT4?

Created at 19 Nov 2013, 19:31
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!
WE

weesoh

Joined 19.11.2013

Any equivalent function in cAlgo similar to RefreshRates in MT4?
19 Nov 2013, 19:31


In MT4, there is a function called RefreshRates which is very useful.  I cannot find a similar function in cAlgo.  Does anyone have any clue?  Thanks!

 


@weesoh
Replies

Spotware
02 Dec 2013, 12:37

Currently there is no such method, but rates are refreshed during any synchronous operation (synchronous trading methods, receiving new symbol, receiving new series).

Could you describe certain situation where you would like to use RefreshRates method?


@Spotware

weesoh
21 Dec 2013, 19:48

RE:

Spotware said:

Currently there is no such method, but rates are refreshed during any synchronous operation (synchronous trading methods, receiving new symbol, receiving new series).

Could you describe certain situation where you would like to use RefreshRates method?

Some algorithms that run on every tick may miss a tick if they haven't finished their computations before the new tick arrives.  It will be good if the final trade decision can be based on the latest price but unfortunately there is no way that we can do this in cAlgo.

 


@weesoh

Spotware
23 Dec 2013, 10:23

We decided to add such function in future releases. Stay tuned.


@Spotware

weesoh
12 Mar 2014, 19:09

RE: Any equivalent function in cAlgo similar to RefreshRates in MT4?

Spotware said:

We decided to add such function in future releases. Stay tuned.

 

Hi,

Is there any update on when this feature could be added?

Thanks!

 


@weesoh

Spotware
13 Mar 2014, 10:47

We cannot provide a time estimate for release at the moment.


@Spotware

Andre
14 Apr 2014, 19:53

RE:

Spotware said:

We cannot provide a time estimate for release at the moment.

Is there a workaround, to update current prices (Bid and Ask from current Symbol) whithout left method "OnTick" (if using endless loop in OnTick)?

 

Yous said, that on synchronous operation (synchronous trading methods, receiving new symbol, receiving new series) price are updated. Can you give a example how i can update prices with such synchronous methods. Which method you mean with "receiving new symbol"? I try this ("Symbol symbol = MarketData.GetSymbol("USDJPY");"), but it does not work.

 

Thanks a lot


@Andre

Spotware
15 Apr 2014, 09:38

Is there a workaround, to update current prices (Bid and Ask from current Symbol) whithout left method "OnTick" (if using endless loop in OnTick)?

There is no any workaround. Please wait until we introduce RefreshData() method.


@Spotware

Spotware
03 Jul 2014, 11:49

RefreshData() method has been added to the API

http://www.spotware.com/about/news-updates/ctrader-and-calgo-updates---july-2014/637


@Spotware