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 can I change the time zone of an indicator programmatically?
 Post subject: How can I change the time zone of an indicator programmatically? Post rating: 0   New post Posted: Wed 09 Oct, 2019, 12:31 

User rating: 0
Joined: Tue 09 May, 2017, 23:05
Posts: 14
I have a moving average indicator which is calculated based on Close prices. But this values belong to GMT time zone's bar closes.

when I add a moving average for FOUR_HOURS, Bar closing times comes as follows, 12:00, 16:00, 20:00

But in my strategy, bar closing times comes like this; 11:00, 15:00, 19:00.

I use "Day Start Time" as EET (UTC+2) in JForex. But the indicator returns values "Day Start Time" is GMT.

How can I change the time zone of an indicator? Is that Possible? (Bar Closing Times)
Here is my code:
double HMA[] = this.indicators.hma(instrument, eHMAPeriod, OfferSide.BID, IIndicators.AppliedPrice.CLOSE, eHMA_Time_Period , Filter.WEEKENDS, eHMACandlesBefore, lastBarTime, 0);

The returning HMA values does not mach the ones in my chart. Because Day start times are different.

How can I solve this issue?
Thanks.


 

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