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.

JFOREX-1752 : get PF of an instrument before placing the order
 Post subject: JFOREX-1752 : get PF of an instrument before placing the order Post rating: 0   New post 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.


 
 Post subject: Re: JFOREX-1752 : get PF of an instrument before placing the Post rating: 0   New post Posted: Thu 13 May, 2010, 10:53 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
thanks for idea. We will improve our API with such a function.


 

Jump to:  

cron
  © 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