Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
How can I change the time zone of an indicator programmatically? http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=57170 |
Page 1 of 1 |
Author: | NonikNone [ Wed 09 Oct, 2019, 12:31 ] |
Post subject: | How can I change the time zone of an indicator programmatically? |
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. |
Page 1 of 1 |