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.

OutputParameterInfo.DrawingStyle.CANDLES or any other method
 Post subject: OutputParameterInfo.DrawingStyle.CANDLES or any other method Post rating: 0   New post Posted: Tue 28 Apr, 2015, 18:18 
User avatar

User rating: 0
Joined: Tue 10 Mar, 2015, 00:17
Posts: 6
Location: Poland,
Hi,

I would like to know if there is any way (without writing my own graphical functions) to output candles with indicator (below chart window).
OutputParameterInfo.DrawingStyle.CANDLES
in connection with
OutputParameterInfo.Type.CANDLE
seems not working.

Regards,
K.


 
 Post subject: Re: OutputParameterInfo.DrawingStyle.CANDLES or any other method Post rating: 0   New post Posted: Thu 30 Apr, 2015, 13:09 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Here is an example


Attachments:
Indicator.java [3.86 KiB]
Downloaded 58 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: OutputParameterInfo.DrawingStyle.CANDLES or any other method Post rating: 0   New post Posted: Thu 30 Apr, 2015, 17:30 
User avatar

User rating: 0
Joined: Tue 10 Mar, 2015, 00:17
Posts: 6
Location: Poland,
Thank you very much for solution.

I made a few changes: candles are drawn below chart, and show different TF (ie. chart is 4H and indicator shows daily candles). BUT i also want to see Moving Average of those candles. So I need second output (double drawn as line).How cit can be achieved with regard to the fact that the outputs are defined as IBar ?


 
 Post subject: Re: OutputParameterInfo.DrawingStyle.CANDLES or any other method Post rating: 0   New post Posted: Tue 05 May, 2015, 10:06 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You need to add second OutputParameterInfo with type LINE to outputParameterInfos.


 
 Post subject: Re: OutputParameterInfo.DrawingStyle.CANDLES or any other method Post rating: 0   New post Posted: Tue 05 May, 2015, 23:23 
User avatar

User rating: 0
Joined: Tue 10 Mar, 2015, 00:17
Posts: 6
Location: Poland,
Thank you for answering.

My problem wasn't with outputparameterinfo, I had a problem with setOutputParameter which I was able to solve on my own.


 

Jump to:  

  © 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