Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Best way to get data when position closes automatically?
 Post subject: Best way to get data when position closes automatically? Post rating: 0   Post Posted: Mon 16 Jan, 2012, 19:42 

User rating: 0
Joined: Sat 19 Nov, 2011, 01:24
Posts: 23
Location: United Kingdom,
At the moment my strategy is setup to output data to a text file, things like price and time whenever an order is filled.
I'm doing this because I'm post processing in matlab.

What I would like to know is, when a position closes, either because its hit its stop loss or whatever reason, what is the best way to capture the information of what time and price it has been closed at?

I believe a way would be to capture the data from onMessage correct?

Is there a better way or could someone show an example of how to do this?

Thank you.


 
 Post subject: Re: Best way to get data when position closes automatically? Post rating: 0   Post Posted: Tue 17 Jan, 2012, 11:19 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
pag24 wrote:
I believe a way would be to capture the data from onMessage correct?
Yes.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com