Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
supportResistance() function http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=58745 |
Page 1 of 1 |
Author: | wheelsofsteel2 [ Wed 27 Mar, 2024, 16:29 ] |
Post subject: | supportResistance() function |
Hello Support, Can you provide either the code or pseudocode for the above please? |
Author: | wheelsofsteel2 [ Mon 06 May, 2024, 11:19 ] |
Post subject: | Re: supportResistance() function |
Hello, Calling the function as : double[] SR = indicators.supportResistance(instrument, pMainPeriod, OfferSide.BID, SRThreshold); where pMainPeriod = 15mins and SRThreshold = 5. When backtesting I get an error: "23:57:33 Strategy tester: com.dukascopy.api.JFException: Not enough data to calculate value due to long lookforward @ BOStratUSDCHFvol1.MA_PlayUSDCHFvol1.onTick(MA_PlayUSDCHFvol1.java:231)" Presumably, it's to do with not preloading the mktdata? For backtesting, what do I need to do to resolve please? Thanks in advance. |
Page 1 of 1 |