|
supportResistance() function |
wheelsofsteel2
|
Post subject: supportResistance() function |
Post rating: 0
|
Posted: Wed 27 Mar, 2024, 16:29
|
|
User rating: 0
Joined: Mon 31 Dec, 2018, 08:31 Posts: 5 Location: United Kingdom,
|
Hello Support, Can you provide either the code or pseudocode for the above please?
|
|
|
|
 |
wheelsofsteel2
|
Post subject: Re: supportResistance() function |
Post rating: 0
|
Posted: Mon 06 May, 2024, 11:19
|
|
User rating: 0
Joined: Mon 31 Dec, 2018, 08:31 Posts: 5 Location: United Kingdom,
|
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.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|