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.

Question about SAR indicator
 Post subject: Question about SAR indicator Post rating: 0   New post Posted: Thu 16 Oct, 2014, 00:52 

User rating: 0
Joined: Mon 30 Jun, 2014, 15:55
Posts: 4
Location: Belgium,
Dear,

By the GUI client, a new SAR value should be available just at the previous bar finished. But when I use Java Code, the value is delayed for one bar's time.
If I use shift, the value would not be same as before.
And the value of SAR is different when it change position from about to below the bar.
How to fix it?

Thanks a lot


 
 Post subject: Re: Question about SAR indicator Post rating: 0   New post Posted: Thu 16 Oct, 2014, 12:38 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Hi,

If you have difference between indicator values on chart and in java strategy, take a look on this wiki page.
More about indicator shift: https://www.dukascopy.com/wiki/#Indicato ... r_by_shift

If none of these help, I suggest to create and upload a sample strategy that replicates your issue, and/or show some screenshots, as it is not exactly clear what is your actual problem...


 

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