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.

Alert
 Post subject: Alert Post rating: 0   New post Posted: Fri 12 Nov, 2010, 00:14 

User rating: -
Hi,

i got a question:

Is it possible to make an alert when the market touchs a self drawed line?

Thanks for reply

sherman43


 
 Post subject: Re: Alert Post rating: 0   New post Posted: Fri 12 Nov, 2010, 11:40 

User rating: 0
Joined: Mon 11 Oct, 2010, 13:42
Posts: 8
What kind of line do you mean?
A horizontal line? A vertical line? A trend line?


 
 Post subject: Re: Alert Post rating: 0   New post Posted: Thu 18 Nov, 2010, 15:15 

User rating: -
Hi,

i mean a trend line

Thanks for reply


 
 Post subject: Re: Alert Post rating: 0   New post Posted: Fri 26 Nov, 2010, 16:25 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
You can get the chart object price by specified index. To get the horizontal line object price use index 0:
chart.get("hLine").getPrice(0)


When you get the chart object price, you will be able to create an alert after market price matches chart object price.


 

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