How can I get a pair price inside a Visual Studio project

Created at 10 Nov 2014, 16:34
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!
EM

emonnier

Joined 10.11.2014

How can I get a pair price inside a Visual Studio project
10 Nov 2014, 16:34


Hello,

I need prices updated in methods I have outside the algo in an external VS project. How can I call the last price on a pair fron outside CAlgo, or how can the outside project be warned everytime an event is fired inside the algo ?

 

Thank you


@emonnier
Replies

Spotware
11 Nov 2014, 10:01

In OnTick handler of cBot you can invoke method from external project and pass all required objects as parameters.


@Spotware

emonnier
12 Nov 2014, 13:21

I cannot reference the cbot into my VS project. does not accept .algo files. Can not unzip the .algo file either


@emonnier

Spotware
12 Nov 2014, 15:57

You can add only back reference: from cBot to your library.


@Spotware