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 access historical data with different period than indicator chart period?
 Post subject: How to access historical data with different period than indicator chart period? Post rating: 0   New post Posted: Tue 18 Aug, 2020, 06:33 

User rating: 0
Joined: Fri 17 Jul, 2020, 09:10
Posts: 5
Location: United Arab Emirates, Dubai
Hi
I'm developing an indicator which needs to know each day start price. I know I have context.getHistory() to access historical data but it only works with the current chart period.
For example if I'm in H1 I can not get Daily price(history.getBar(...) returns Null).
Is there any solution or workaround for this?


 
 Post subject: Re: How to access historical data with different period than indicator chart period? Post rating: 0   New post Posted: Thu 03 Sep, 2020, 16:38 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Greetings.

Strategy can create custom data feed and get historical values from it.
https://www.dukascopy.com/wiki/en/devel ... ents/feeds
https://www.dukascopy.com/wiki/en/devel ... story-bars

Regards.


 

Jump to:  

  © 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