Dukascopy
 
 
Wiki JStore Search Login

Displaying Time Frame and Instrument in header for reference
 Post subject: Displaying Time Frame and Instrument in header for reference Post rating: 0   New post Posted: Thu 01 Jun, 2017, 10:06 

User rating: 1
Joined: Wed 19 Feb, 2014, 10:42
Posts: 16
Location: NetherlandsNetherlands
Hi guys,

I keep running into some issue and not sure how to solve it.
The idea is that i want to display the current chart period and instrument name in some
sort of header, like the OHLC but rather standalone as indicator.

Problem is we have the standard timeframe periods as well as the custom ones. I like to use the Tickcharts as well as rangebars but also 'normal' charts.

Is there any way to display something like INSTRUMENTNAME, PERIOD(INTERVAL) so if i currently have the tickchart(150) set for GBPJPY it would display like GBPJPY TICK(250)?

Would be nice to have it available since when printing the charts its not included and when i'm studying
the charts i need to look it up which TF it was.

Any pointers or available code snippets?

Thanks in advance,
Phil


 
 Post subject: Re: Displaying Time Frame and Instrument in header for reference Post rating: 0   New post Posted: Fri 07 Jul, 2017, 19:02 

User rating: 0
Joined: Tue 15 Sep, 2015, 20:14
Posts: 4
Location: Poland,
Hi,
OHLC works only with Strategies...

Try: https://www.dukascopy.com/wiki/en/devel ... ohlc-index


 
 Post subject: Re: Displaying Time Frame and Instrument in header for reference Post rating: 0   New post Posted: Fri 14 Jul, 2017, 07:13 

User rating: 1
Joined: Wed 19 Feb, 2014, 10:42
Posts: 16
Location: NetherlandsNetherlands
Thanks.

I have solved it by using a strategy which takes the instrument and timeframe and puts
it in the left upper corner. Upon start of the strategy it loops through all opened charts and sets this ´caption´
and after this it stops the strategy.

Just need to remember to run the strategy once after flipping timeframes but at least its done.

Thanks for thinking along.


 

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