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.

Must scale up indicator args to get same results as on chart for same period (zigzag)
 Post subject: Must scale up indicator args to get same results as on chart for same period (zigzag) Post rating: 0   New post Posted: Wed 19 Sep, 2012, 05:27 

User rating: 0
Joined: Tue 23 Aug, 2011, 01:10
Posts: 7
Location: United States,
I'm getting different results between what I see on the charts for indicators (specifically the zigzag indicator) and what I'm getting via the jforex object that implements the IIndicators interface.

Below are the results I'm getting, so for example with a 4H period, I call indicators.calculateIndicator using 29 as the extDepth argument to get the same results I see on the 4H visual chart with an extDepth of 18. Maybe I'm using the API wrong somehow - I don't know?

1MIN 7->7 = 1.0
1H 71->119 = 1.67
4H: 18->29 = 1.6111
1D: 33->38 = 1.1515
1W: 17->17 = 1.0
1MONTH: 5->5 = 1.0

edit: above is for current GBP/USD charts

Attachment:
FiboTools.java [19.22 KiB]
Downloaded 303 times


 
 Post subject: Re: Must scale up indicator args to get same results as on chart for same period (zigzag) Post rating: 0   New post Posted: Wed 19 Sep, 2012, 14:30 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#Indicator_usage_checklist


 

Jump to:  

  © 1998-2025 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