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.

Draw vertical line on each begin of the week or month
 Post subject: Draw vertical line on each begin of the week or month Post rating: 0   New post Posted: Thu 08 Oct, 2015, 13:16 
User avatar

User rating: 0
Joined: Fri 04 Sep, 2015, 12:28
Posts: 4
Location: BelgiumBelgium
Hello,

How can I draw a vertical line on the beginning of the week or month, depending on the timeframe of each chart?
Should I use a Strategy?

in the onBar method, only the future bar will call this method? Not all bars in the chart?


 
 Post subject: Re: Draw vertical line on each begin of the week or month Post rating: 0   New post Posted: Tue 13 Oct, 2015, 09:58 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You can use custom indicator that will add TimeMarkerChartObject to chart on corresponding bars.
See example in JForex Wiki: https://www.dukascopy.com/wiki/#Indicat ... rt_objects


 

Jump to:  

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