Any equivalent function in cAlgo similar to RefreshRates in MT4?
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!
Replies
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
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
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
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