|
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.
| JFOREX-1752 : get PF of an instrument before placing the order |
|
[quantisan]
|
| Post subject: JFOREX-1752 : get PF of an instrument before placing the order |
Post rating: 0
|
Posted: Wed 12 May, 2010, 19:31
|
|
User rating: 1
Joined: Fri 26 Mar, 2010, 19:19 Posts: 116 Location: Canada
|
|
how do I get getProfitLossInAccountCurrency() of an instrument before an order is placed?
I want to calculate what's the value in account currency per pip of an instrument given an amount. For example, I want to know how much in account currency is a projected stop/take profit would be for an instrument before placing the order.
Is there some built-in function for this? I'm aware of a strategy in the form that calculates this but it doesn't 100% work for non-USD account as some pairs are unavailable for my CAD account currency.
|
|
|
|
|
 |
|
API Support
|
| Post subject: Re: JFOREX-1752 : get PF of an instrument before placing the |
Post rating: 0
|
Posted: Thu 13 May, 2010, 10:53
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
Hi, thanks for idea. We will improve our API with such a function.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|