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.

Record the account changes
 Post subject: Record the account changes Post rating: 0   New post Posted: Thu 24 May, 2012, 10:07 
User avatar

User rating: 0
Joined: Fri 02 Mar, 2012, 11:30
Posts: 2
Location: China, guangzhou
the 1st thing:
How to record the account changes, for example, account profited then +1, account loss then -1. and calculation of 10 recent account changes value.
for example:
1.account profited +1
2.account profited +1
3.account profited +1
4.account loss -1
5.account profited +1
Returns: +3

1.account loss -1
2.account loss -1
3.account loss -1
4.account loss -1
5.account profited +1
Returns: -3


and there is next question:
IBar getBar(Instrument instrument,
Period period,
OfferSide side,
int shift)
throws JFException

how to use this Method to count highest price of the last 20 bars.

Or there is another way to get highest price of the last 20 bars.

Thanks


 
 Post subject: Re: Record the account changes Post rating: 0   New post Posted: Mon 28 May, 2012, 10:40 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Account changes can be recorded as shown here: https://www.dukascopy.com/wiki/#Account_Info

Highest and lowest bar values can be calculated as shown here: https://www.dukascopy.com/wiki/#Indicator_catalog/MinMax


 
 Post subject: Re: Record the account changes Post rating: 0   New post Posted: Wed 30 May, 2012, 16:46 
User avatar

User rating: 0
Joined: Fri 02 Mar, 2012, 11:30
Posts: 2
Location: China, guangzhou
API Support wrote:
Account changes can be recorded as shown here: https://www.dukascopy.com/wiki/#Account_Info

Highest and lowest bar values can be calculated as shown here: https://www.dukascopy.com/wiki/#Indicator_catalog/MinMax

it's very useful,thanks


 

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