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.
|