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.

simple drawing indicator
 Post subject: simple drawing indicator Post rating: 0   Post Posted: Sun 12 May, 2013, 13:25 

User rating: 0
Joined: Thu 14 Mar, 2013, 21:17
Posts: 2
Location: PolandPoland
Hello, I'm newbie. I'm starting programing and I've a problem. I don't kwon how to draw something over or below the candle. For example: for each Candle which close is above high previous I'd like draw symbol.
Someone can tell me how to do it?
Thank in advance and sorry for my english.


 
 Post subject: Re: simple drawing indicator Post rating: 0   Post Posted: Mon 13 May, 2013, 15:42 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
https://www.dukascopy.com/wiki/#Strategy_Tutorial
https://www.dukascopy.com/wiki/#Chart_object_catalog


 
 Post subject: Re: simple drawing indicator Post rating: 0   Post Posted: Tue 28 May, 2013, 21:07 

User rating: 0
Joined: Thu 14 Mar, 2013, 21:17
Posts: 2
Location: PolandPoland
Thank you,
but I cannot find how to add text above or below arrow_symbol_down.
And I have one more problem for example:
I'd like to draw array when HIGH-LOW present candle is higher than average HIGH-LOW 20 previous candles. I'd like to add average to array but I'm doing something wrong. (my idea is in lines: 81-86, and 91)
I attach a file with my source code.

I'm sorry aboum my english.

Regards


Attachments:
myMA.java [5.72 KiB]
Downloaded 327 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: simple drawing indicator Post rating: 0   Post Posted: Wed 29 May, 2013, 11:38 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
ltklosfx wrote:
but I cannot find how to add text above or below arrow_symbol_down.
Then you need to draw chart objects from the indicator, see:
https://www.dukascopy.com/wiki/#Indicator_draws_chart_objects
However, it is easier to do it from a strategy not an indicator.
ltklosfx wrote:
I'd like to draw array when HIGH-LOW present candle is higher than average HIGH-LOW 20 previous candles. I'd like to add average to array but I'm doing something wrong. (my idea is in lines: 81-86, and 91)
What do you mean by "drawing an array"?


 

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