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.

How do I customise ARROW_SYMBOL_UP and ARROW_SYMBOL_DOWN?
 Post subject: How do I customise ARROW_SYMBOL_UP and ARROW_SYMBOL_DOWN? Post rating: 0   New post Posted: Fri 28 Jan, 2011, 11:23 

User rating: -
Hi Support,

I have the following code for drawing an arrow in an indicator:

outputParameterInfos = new OutputParameterInfo[] {new OutputParameterInfo("up", OutputParameterInfo.Type.DOUBLE,
OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_UP), new OutputParameterInfo("down", OutputParameterInfo.Type.DOUBLE,
OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_DOWN)};

I read the following from https://www.dukascopy.com/wiki/index.php?title=Indicator_API:_OutputParameterInfo :
ARROW_SYMBOL_UP - draws arrow pointing up. Symbol of the arrow can be customized
ARROW_SYMBOL_DOWN - draws arrow pointing down. Symbol of the arrows can be customized

So how can I customise this?

Thanks in advance!


 
 Post subject: Re: How do I customise ARROW_SYMBOL_UP and ARROW_SYMBOL_DOWN Post rating: 0   New post Posted: Tue 01 Feb, 2011, 10:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
You can use the OutputParameterInfo.setArrowSymbol() method in order to customize the arrow symbol.


 
 Post subject: Re: How do I customise ARROW_SYMBOL_UP and ARROW_SYMBOL_DOWN Post rating: 0   New post Posted: Fri 20 Jun, 2014, 18:55 
User avatar

User rating: 0
Joined: Wed 11 Jun, 2014, 02:23
Posts: 13
Location: CanadaCanada
API Support wrote:
Hi,
You can use the OutputParameterInfo.setArrowSymbol() method in order to customize the arrow symbol.


Can I pass unicode characters to setArrowSymbol (for example the codes of Wingdings font)?


 
 Post subject: Re: How do I customise ARROW_SYMBOL_UP and ARROW_SYMBOL_DOWN? Post rating: 1   New post Posted: Wed 25 Jun, 2014, 13:03 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Yes, for instance:
        outputParameterInfos[0].setArrowSymbol((char) 9757); 
See more available symbols:
https://www.alanwood.net/demos/wingdings.html
Note that you can use symbols from strategies as well:
https://www.dukascopy.com/wiki/#Chart_object_catalog/Symbol


 
 Post subject: Re: How do I customise ARROW_SYMBOL_UP and ARROW_SYMBOL_DOWN? Post rating: 0   New post Posted: Thu 11 Dec, 2014, 12:13 

User rating: 3
Joined: Thu 28 Jul, 2011, 19:40
Posts: 72
Location: PolandPoland
I have one more question about customize ARROW_SYMBOL_UP and ARROW_SYMBOL_DOWN.

How can I change size of such arrow (symbol)?


 
 Post subject: Re: How do I customise ARROW_SYMBOL_UP and ARROW_SYMBOL_DOWN? Post rating: 0   New post Posted: Mon 15 Dec, 2014, 12:41 

User rating: 3
Joined: Thu 28 Jul, 2011, 19:40
Posts: 72
Location: PolandPoland
Support please tell me if it is possible to change size of arrow in indicator? (when I use OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_DOWN or OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_UP).

If No please tell me what you understand by:
Quote:
Note that you can use symbols from strategies as well:
https://www.dukascopy.com/wiki/#Chart_ob ... log/Symbol


How can I use symbols form strategies in indicator? (so in this option I will be able to change size of such symbol)


 
 Post subject: Re: How do I customise ARROW_SYMBOL_UP and ARROW_SYMBOL_DOWN? Post rating: 0   New post Posted: Tue 16 Dec, 2014, 14:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
No, it is not possible to change arrow size from indicator.
A convenient option is to draw the arrows from a strategy. Strategy would calculate desired indicator values and draw chart objects based on indicator results.
Another option is to draw from indicator using IDrawingIndicator interface.


 
 Post subject: Re: How do I customise ARROW_SYMBOL_UP and ARROW_SYMBOL_DOWN? Post rating: 0   New post Posted: Wed 17 Dec, 2014, 11:52 

User rating: 3
Joined: Thu 28 Jul, 2011, 19:40
Posts: 72
Location: PolandPoland
OK thanks for your answer.

I think that in the future it will be useful if you add possibilities to change size of arrow in indicators.


 

Jump to:  

cron
  © 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