Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Chart Pattern usage on strategy test chart and with indicators http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=77&t=57186 |
Page 1 of 1 |
Author: | Bruciew [ Tue 29 Oct, 2019, 01:23 ] | ||
Post subject: | Chart Pattern usage on strategy test chart and with indicators | ||
I want to use patterns (triangles, wedges) on test charts and within a strategy. Are there any examples that show how this can be done? I am finding the data returned very confusing. As background, I am using this code to add a triangle pattern to a chart within a back test: @Override I have added the OhlcInformer to the chart, but the data displayed for the pattern is rather weird (as shown here): When calculating the triangle pattern, I use the following code: private static AppliedPrice[] inputTypes = new AppliedPrice[] { AppliedPrice.CLOSE }; There are three objects in the returned values array. Each item in the array is a PatternIndicatorOutput object which contains null. This doesn't change for any bar on the chart in or around the displayed pattern that I hover over. I'm not sure what should be displayed and how to use the data that is returned. Any help would be appreciated.
|
Author: | MattieBranson [ Tue 03 Dec, 2019, 14:54 ] |
Post subject: | Re: Chart Pattern usage on strategy test chart and with indicators |
Thanks for sharing it with us. |
Page 1 of 1 |