|
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.
visual testing chart period set |
[Zbisek]
|
Post subject: visual testing chart period set |
Post rating: 0
|
Posted: Thu 10 Feb, 2011, 22:46
|
|
User rating: 0
Joined: Wed 05 Jan, 2011, 20:06 Posts: 2
|
Hello!
My strategy trades on onbar events which i filter by a period given by input parameter, like this:
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException { if (!period.equals(myPeriod)) return; //also filter the instrument //do something }
I wish to set the period of the visual backtester chart like
context.getChart().setPeriod(myPeriod);
but the IChart has only getPeriod() and setInstrument method. The context.getChart() works in visual backtesting, i use it to add indicators which i use in the strategy automatically.
Is there any other way to set the period of the visual backtesting chart? And if not could you add a setPeriod method to the IChart interface in some future release.
Thank you.
|
|
|
|
 |
API Support
|
Post subject: Re: visual testing chart period set |
Post rating: 0
|
Posted: Wed 16 Feb, 2011, 08:33
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Hi, This is not possible at the moment but we will consider adding this.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|