|
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.
PriceRange.valueOf(String ...) consistant |
RoadRunner
|
Post subject: PriceRange.valueOf(String ...) consistant |
Post rating: 0
|
Posted: Tue 10 May, 2011, 17:52
|
|
User rating: 3
Joined: Wed 18 May, 2011, 16:25 Posts: 331 Location: SwitzerlandSwitzerland
|
For price ranges from 1..6 pips PriceRange.valueOf(String) accepts argument values: "ONE_PIP" ... "SIX_PIPS" above 6 pips the argument value has to have the syntax "7_PIPS", ...."100_PIPS".
Using either of the 2 types in the other range will produce an error, i.e. "2_PIPS" will fail, as will "SEVEN PIPS".
It would be good if you make the accepted arguments consistant throughout the whole pip range.
Thanks & best, RR.
|
|
|
|
 |
API Support
|
Post subject: Re: JFOREX-2996 PriceRange.valueOf(String ...) consistant |
Post rating: 0
|
Posted: Thu 19 May, 2011, 14:22
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Please use method PriceRange.valueOf(int pipCount). This method will return appropriate PriceRange for the passed pipCount integer value.
The method PriceRange.valueOf(String str) is used for compatibility with the old PriceRange version. There are only six predefined values: ONE_PIP, TWO_PIPS, THREE_PIPS, FOUR_PIPS, FIVE_PIPS, SIX_PIPS.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|