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.

Custom "primitives" on charts?
 Post subject: Custom "primitives" on charts? Post rating: 0   New post Posted: Sun 06 Jun, 2010, 13:33 

User rating: -
I'd like to have fib retracement lines only extend to a specified place (it's second point) rather than all the way to the right because the chart becomes way too cluttered as you move to the right when you have a couple of fibs on it.

I thought I could do it by creating a strategy, then listening to mouse clicks (or keys as I've seen in some other post) and drawing from there but then I realized I would have to draw multiple IChartObject of type LINE, which probably would end up showing individually in Workspace. And that'd a lot of entries just for 3 retracements, so I'd be merely moving clutter from one place to another...

Is there a better way to draw custom "primitives" or re-implement existing ones?


 
 Post subject: Re: Custom "primitives" on charts? Post rating: 0   New post Posted: Wed 09 Jun, 2010, 08:38 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
The FibonachiPivot indicator source is available here https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=6&t=8379
It's better to implement your logic in the indicator. Here you will find some useful information on indicators API https://www.dukascopy.com/swiss/english/forex/jforex/tutorial/indicator_interfaces/


 

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