|
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.
Calculate indicator value ignoring filters(weekends, holidays) |
Leonid1
|
Post subject: Calculate indicator value ignoring filters(weekends, holidays) |
Post rating: 0
|
Posted: Wed 12 Oct, 2016, 11:14
|
|
User rating: 0
Joined: Sun 09 Mar, 2014, 23:09 Posts: 4 Location: Latvia, Riga
|
Hello.
How to calculate MACD indicator values ignoring filtered data? That command returns MACD values correctly when filters are disabled, but when filters are on, return values are not correct according to chart data. mcd1=indicators.macd(gSymbol, Period.ONE_HOUR, OfferSide.BID, IIndicators.AppliedPrice.CLOSE, 12, 26, 9, 1);
Thank you
|
|
|
|
 |
API Support
|
Post subject: Re: Calculate indicator value ignoring filters(weekends, holidays) |
Post rating: 0
|
Posted: Thu 13 Oct, 2016, 10:51
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Here is a universal strategy to compare chart vs API calculation. 1) open the required chart 2) add required indicator 3) run the strategy (set corresponding instrument in the parameters)
Attachments: |
IndChartVsApi.java [16.31 KiB]
Downloaded 131 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|