Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
BUG: Visual JForex Indicator http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=141&t=50586 |
Page 1 of 1 |
Author: | popopo [ Sat 28 Dec, 2013, 10:52 ] |
Post subject: | BUG: Visual JForex Indicator |
This issue is already reported here Something wrong with historical tester Bug Desciption : Indicator returning wrong result (affecting all indicator). Detail: This is example from my strategy.
There is logic error at calculateIndicator() long time = context.getHistory().getBar(argument_1, argument_2, OfferSide.BID, argument_3).getTime(); // Get start of candle time Object[] indicatorResult = context.getIndicators().calculateIndicator(argument_1, argument_2, offerside, "CCI", appliedPrice, params, Filter.WEEKENDS, argument_3 +1, time, 0); // argument_3 should not be there, time parameter already point to correct shift Argument_3 will double the shift value Eg. CCI[0] -> CCI[0] // get CCI with shift 0 would return cci with shift 0 , correct but useless CCI[1] -> CCI[2] // get CCI with shift 1 would return cci with shift 2 , INCORRECT CCI[n] -> CCI[N*2] // get CCI with shift N would return cci with shift N*2 FIX: Object[] indicatorResult = context.getIndicators().calculateIndicator(argument_1, argument_2, offerside, "CCI", appliedPrice, params, Filter.WEEKENDS, 1, time, 0); // without argument_3 parameter Does dukascopy already acknowledged that bug, since it's has been a month. Regards |
Author: | vadim_berezhnoj [ Mon 30 Dec, 2013, 16:59 ] |
Post subject: | Re: BUG: Visual JForex Indicator |
Greetings. Following bug will be fixed in the closest update of VJfx. Best regards, Support team. |
Page 1 of 1 |