Dukascopy
 
 
Wiki JStore Search Login

Range bar charts based strategy not working
 Post subject: Range bar charts based strategy not working Post rating: 0   New post Posted: Sat 18 Feb, 2012, 05:06 

User rating: -
Hi,

First of all I would like to thank you for your support.Now a days I am trying to make strategies based on range bar charts.
But I am getting lot of technical problems like..

in void subscribeToRangeBarFeed(Instrument instrument, OfferSide offerSide, PriceRange priceRange, IRangeBarFeedListener listener);

It says it can not be resolved. (I cannot subscribe to rangebarfeed...)
Otherwise many times it says the compiler is not supporting.etc...

IRangeBar rangeBar = history.getRangeBar(Instrument.EURUSD, OfferSide.BID, PriceRange.valueOf(2), 0);
List<IRangeBar> rangeBars = history.getRangeBars(Instrument.EURUSD, OfferSide.BID, PriceRange.valueOf(2), 10, rangeBar.getTime(), 0);
for (IRangeBar rb : rangeBars) {
console.getOut().println(rb);
}

It cannot even resolve Irangebar....I am getting thus bunch of more errors even after importing corresponding packages...
I have also tried the jforex wiki sample strategy but it is also giving the same errors.


 
 Post subject: Re: Range bar charts based strategy not working Post rating: 0   New post Posted: Thu 23 Feb, 2012, 14:14 

User rating: 0
Joined: Tue 11 Oct, 2011, 20:13
Posts: 64
Location: India,
I have the same problem.
Trying to use this strategy:
RangeBarsTrade
viewtopic.php?f=7&t=45454
changed
import com.dukascopy.api.bar.IRangeBar;
import com.dukascopy.api.listener.IRangeBarFeedListener;
to
import com.dukascopy.api.feed.*;

I can compile and run the program, but it is not doing anything.
console.getOut().println("start"); - This message is coming and after that nothing.
I tried with more instruments, no result.


 

Jump to:  

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