|
DDSJFX-167 Range Bars in Strategy |
[SquareRoot]
|
Post subject: DDSJFX-167 Range Bars in Strategy |
Post rating: 0
|
Posted: Sun 09 Jan, 2011, 21:36
|
|
User rating: 0
Joined: Tue 15 Sep, 2009, 00:44 Posts: 20
|
How do I specify a period for a bar range? I can't find any reference to this in the API?
example: period == Period.10_PIPS;
|
|
|
|
![](images/spacer.gif) |
API Support
|
Post subject: Re: Range Bars in Strategy |
Post rating: 0
|
Posted: Mon 10 Jan, 2011, 08:58
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
![](images/spacer.gif) |
RoadRunner
|
Post subject: Re: Range Bars in Strategy |
Post rating: 0
|
Posted: Mon 10 Jan, 2011, 13:52
|
|
User rating: 3
Joined: Wed 18 May, 2011, 16:25 Posts: 331 Location: SwitzerlandSwitzerland
|
Dear support,
are range bars already supported in indicators? I did have a look at the current wiki-pages and at the the API 2.6.30 documentation, but could not however find examples on how to use range bars using the API.
Could you please point me to a specific example on how to use a PriceRange in indicators?
Thanks a lot, RR.
|
|
|
|
![](images/spacer.gif) |
[SquareRoot]
|
Post subject: Re: Range Bars in Strategy |
Post rating: 0
|
Posted: Mon 10 Jan, 2011, 18:59
|
|
User rating: 0
Joined: Tue 15 Sep, 2009, 00:44 Posts: 20
|
Support wrote: Hi, Please take a look at the following JForex Wiki page: https://www.dukascopy.com/wiki/index.php ... Indicators Please do not hesitate to contact us if you require any further information. .. sorry but I can't find anything on how to specify a bar range in pips in the wiki. Can you be more specific as to the location of this infomation or just provide an example
|
|
|
|
![](images/spacer.gif) |
MoneyMechanics
|
Post subject: Re: Range Bars in Strategy |
Post rating: 0
|
Posted: Mon 10 Jan, 2011, 20:55
|
|
User rating: 0
Joined: Thu 16 Jun, 2011, 21:37 Posts: 98 Location: SwitzerlandSwitzerland
|
is there a chance that we will see range bars being sent to onBar so that operations can be executed based on them?
I too can't find any information on the wiki site which has been linked.
Thanks, jForexUser
|
|
|
|
![](images/spacer.gif) |
API Support
|
Post subject: Re: Range Bars in Strategy |
Post rating: 0
|
Posted: Tue 11 Jan, 2011, 16:09
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Currently it is not possible to use range bars from a strategy.
|
|
|
|
![](images/spacer.gif) |
RoadRunner
|
Post subject: Re: Range Bars in Strategy |
Post rating: 0
|
Posted: Wed 12 Jan, 2011, 12:27
|
|
User rating: 3
Joined: Wed 18 May, 2011, 16:25 Posts: 331 Location: SwitzerlandSwitzerland
|
it would be great, if PriceRanges would be based on the Period object, so they could be used in indicators like any other period and they also would call onBar.
|
|
|
|
![](images/spacer.gif) |
SFXbernhard
|
Post subject: Re: Range Bars in Strategy |
Post rating: 0
|
Posted: Tue 08 Feb, 2011, 22:35
|
|
User rating: 21
Joined: Thu 19 May, 2011, 20:50 Posts: 413 Location: Germany, Munich
|
Yes, please support range bars to be accessed as a Period. It would help a lot. Has anybody programmed a work around so far?
|
|
|
|
![](images/spacer.gif) |
MoneyMechanics
|
Post subject: Re: Range Bars in Strategy |
Post rating: 0
|
Posted: Tue 15 Feb, 2011, 11:04
|
|
User rating: 0
Joined: Thu 16 Jun, 2011, 21:37 Posts: 98 Location: SwitzerlandSwitzerland
|
I guess no one has, but it would be great to see this officially supported by Dukascopy.
Is there any chance of getting range bars working for XAU/USD in JForex?
|
|
|
|
![](images/spacer.gif) |
RoadRunner
|
Post subject: Re: Range Bars in Strategy |
Post rating: 0
|
Posted: Tue 15 Feb, 2011, 15:37
|
|
User rating: 3
Joined: Wed 18 May, 2011, 16:25 Posts: 331 Location: SwitzerlandSwitzerland
|
|
|
|
![](images/spacer.gif) |
[Frank]
|
Post subject: Re: DDSJFX-167 Range Bars in Strategy |
Post rating: 0
|
Posted: Tue 22 Mar, 2011, 01:40
|
|
User rating: 0
Joined: Thu 02 Sep, 2010, 05:01 Posts: 49
|
Hi Support, I noted in the Api Doc the class "PriceRange". Could you post a complete example that shows the use of PriceRange inside a strategy ? I found the following code on Jforex WIKI: public void onStart(final IContext context) throws JFException { context.subscribeToRangeBarFeed(Instrument.EURUSD, OfferSide.BID, PriceRange.valueOf(1), new IRangeBarFeedListener() { public void onBar(Instrument instrument, OfferSide offerSide, PriceRange priceRange,IRangeBar bar) { console.getOut().println("On Range Bar " + instrument + " " + " " + offerSide + " " + priceRange + " " + bar); } } ); } Could you explain how to use indicators with PriceRange, (for example how calculate EMA of PriceRange bars) ? Best regards, Frank
|
|
|
|
![](images/spacer.gif) |
|
Pages: [
1
]
|
|
|
|
|