How to use RefreshData() ?

Created at 29 May 2015, 17:10
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!
JE

JeremyG

Joined 26.03.2015

How to use RefreshData() ?
29 May 2015, 17:10


a. Can you refresh just specific data series? Does it know which data I am pulling and some refresh those calls?

b. How do you call it, eg:

 

protected override void OnBar()
{
     RefreshData();
}

public void  RefreshData()

 

Thanks!


@JeremyG
Replies

Spotware
12 Jun 2015, 12:40

Dear Trader,

RefreshData() method updates MarketSeries, Positions, PendingOrders, History, etc. It does not refresh just specific data series. With synchronous trade operation methods the RefreshData() is called automatically. When you want to call this method manually you just insert this line to your code.

RefreshData();

 


@Spotware