|
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.
| Remaining amount after partial close |
|
carlosfx
|
| Post subject: Remaining amount after partial close |
Post rating: 0
|
Posted: Mon 29 Apr, 2013, 08:51
|
|
User rating: 0
Joined: Thu 30 Jun, 2011, 20:11 Posts: 41 Location: Spain,
|
|
Hi,
I wrote an strategy in which I use the size of the order to calculate risk.
As I use the method getAmount() it works, but if the order is partially closed, it still returns the initial amount instead of the remaining amount.
I use a for loop for all the filled orders, and then use the method getAmount(). Am I doing something wrong?
On one old thread (2011) I found that getAmount should return the remaining amount instead of the original amount.
Thanks,
Carlos
|
|
|
|
|
 |
|
API Support
|
| Post subject: Re: Remaining amount after partial close |
Post rating: 0
|
Posted: Mon 29 Apr, 2013, 10:33
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
Please provide an example strategy which replicates the problem.
|
|
|
|
|
 |
|
carlosfx
|
| Post subject: Re: Remaining amount after partial close |
Post rating: 0
|
Posted: Mon 29 Apr, 2013, 11:14
|
|
User rating: 0
Joined: Thu 30 Jun, 2011, 20:11 Posts: 41 Location: Spain,
|
|
I don't understand. It works now. Yesterday night it was giving the original size.
Any reason?
Thanks
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|