Dukascopy
 
 
Wiki JStore Search Login

supportResistance() function
 Post subject: supportResistance() function Post rating: 0   New post Posted: Wed 27 Mar, 2024, 16:29 

User rating: 0
Joined: Mon 31 Dec, 2018, 08:31
Posts: 4
Location: United Kingdom,
Hello Support,
Can you provide either the code or pseudocode for the above please?


 
 Post subject: Re: supportResistance() function Post rating: 0   New post Posted: Mon 06 May, 2024, 11:19 

User rating: 0
Joined: Mon 31 Dec, 2018, 08:31
Posts: 4
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.


 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com