Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Linear regression with standard deviation
 Post subject: Linear regression with standard deviation Post rating: 0   New post Posted: Tue 11 Jan, 2011, 15:46 

User rating: 0
Joined: Tue 21 Dec, 2010, 18:59
Posts: 1
I plot an indicator on a data streaming package as such:

Linear regression 30(bars) closed with standard deviation 1
Linear regression 30(bars) closed with standard deviation 2
Linear regression 30(bars) closed with standard deviation 3

This in turns produces lines as on the attached word document.

I would like to be able to plot or be able to retrieve data from the
charts in order to execute trades based on the results.
Is this possible?
Thanks,


Attachments:
linearRwithStandDev.doc [111.5 KiB]
Downloaded 461 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Linear regression with standard deviation Post rating: 0   New post Posted: Wed 19 Jan, 2011, 09:50 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Yes, it's possible, you can call linearReg methods from a custom strategy and use the results accordingly.
Have a look at the following JForex Wiki article: https://www.dukascopy.com/wiki/index.php ... Indicators


 
 Post subject: Re: Linear regression with standard deviation Post rating: 0   New post Posted: Wed 15 Jun, 2011, 15:31 

User rating: -
Hi Jaface,

Great work with the indicator. Any chance that you could humour a beginner and give me a hint as to how you coded the linear regression channel?

Thanks in advance!


 

Jump to:  

  © 1998-2025 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