Post subject: JFOREX-3431 Chart filter in Standalone API
Post rating: 0
Posted: Sat 07 Jan, 2012, 13:07
User rating: 0
Joined: Fri 30 Dec, 2011, 22:12 Posts: 4 Location: BE
Hello,
The history used to compute indicator values in a strategy seems to reset now and then.
Attached is an example. The blue line is an sma indicator added to the chart. The green line is the value of that same sma in onTick. They should be equal but there's a small difference. I haven't really looked in to that. The red lines are that sma+2 deviations computed with the stdev indicator. i.e. they're 'selfmade' bollingerbands. As you can see, at some point, the sma in onTick makes a jump and the stDev gets really small.
I included the code used to generate that graph. It should be run on EURUSD M15.
This is very basic functionality so I'm assuming I'm doing something wrong. What could be the problem?
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
Beau
Post subject: Re: Strange indicator values in strategy
Post rating: 0
Posted: Sat 07 Jan, 2012, 19:06
User rating: 0
Joined: Fri 30 Dec, 2011, 22:12 Posts: 4 Location: BE
I found the problem. I'm not filtering flats. The chart does this by default? Can I turn it off for the chart? I'm using the standalone API.
Thanks! Beau
API Support
Post subject: Re: JFOREX-3431 Chart filter in Standalone API