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 to know the point in the chart where mouse was clicked?
 Post subject: How to know the point in the chart where mouse was clicked? Post rating: 0   New post Posted: Thu 15 Sep, 2011, 14:55 

User rating: 0
Joined: Mon 30 May, 2011, 17:47
Posts: 5
Location: BR
Hello,

In my strategy, it is necessary to know where in the chart (price and time) the user clicked the mouse. The idea is to issue an order with calculated SL and TP when the user presses a combination of key + mouse button. For instance, CTRL + left button.
How can this be done?

thanks


 
 Post subject: Re: How to know the point in the chart where mouse was click Post rating: 0   New post Posted: Thu 15 Sep, 2011, 15:46 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The current implementation of API does not provide access to chart mouse events. However, what you can try to do, is adding a chart object from your strategy and depending on users actions with it, applying some strategy business logic, see the following examples:
https://www.dukascopy.com/wiki/index.php ... art_object
and
https://www.dukascopy.com/wiki/index.php ... ect_events
Note that strategy can only work with its own objects (the ones that it has created).


 

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