|
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 |
luo2012
|
Post subject: Record the account changes |
Post rating: 0
|
Posted: Thu 24 May, 2012, 10:07
|
|
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
|
|
|
|
 |
API Support
|
Post subject: Re: Record the account changes |
Post rating: 0
|
Posted: Mon 28 May, 2012, 10:40
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
luo2012
|
Post subject: Re: Record the account changes |
Post rating: 0
|
Posted: Wed 30 May, 2012, 16:46
|
|
User rating: 0
Joined: Fri 02 Mar, 2012, 11:30 Posts: 2 Location: China, guangzhou
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|