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.

Indicator : line level
 Post subject: Indicator : line level Post rating: 0   New post Posted: Wed 03 Nov, 2010, 22:58 

User rating: 0
Joined: Sat 30 Oct, 2010, 19:54
Posts: 2
Hello,

I would like to display some line levels on my chart, like RSI 70% and 30% line levels.
Could you please post the code to do this, If you can post the RSI indicator java file, it would be great!

Thanks in advance,


 
 Post subject: Re: Indicator : line level Post rating: 0   New post Posted: Wed 10 Nov, 2010, 12:11 

User rating: 0
Joined: Tue 27 Jul, 2010, 20:57
Posts: 49
AFAIK 70/30 are already included with the standard RSI.

But a generic quick hack goes like so: pick a "horizontal line" from the "drawings"-icon and place it into the indicator at level desired..


 
 Post subject: Re: Indicator : line level Post rating: 0   New post Posted: Wed 10 Nov, 2010, 21:50 

User rating: 0
Joined: Sat 30 Oct, 2010, 19:54
Posts: 2
Thanks for your reply astro orbitor!

Oh! I'm afraid I have to draw it by myself, old school method! what a pity I can't take a look at the indicator file RSI.java. I'm pretty sure it's not that complicated.

Anyway, thanks again for your help!


 
 Post subject: Re: Indicator : line level Post rating: 0   New post Posted: Wed 10 Nov, 2010, 23:29 

User rating: 0
Joined: Tue 27 Jul, 2010, 20:57
Posts: 49
No - it's not particularly complicated, I've done this already; that is, there is at least another method to draw level lines - through a custom indicator. Simply you have to loop through a built in indicator and decorate it with level lines..
I have attached a picture of an indicator which is a combination of three indicators and with custom level lines (this is coded, not manually).


Attachments:
Capture.PNG [14.96 KiB]
Downloaded 602 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.
 

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