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.

Can/does jforex platform cache calculate method's results?
 Post subject: Can/does jforex platform cache calculate method's results? Post rating: 0   New post Posted: Wed 13 Apr, 2011, 07:54 

User rating: -
Hello Everyone

I am trying to move from MT4 to jforex, but something is confusing me.

It seems to me that the jforex platform requests the same results from my custom indicator's calculate method over and over. It requests the last (say) ~105 results every time a new tick comes in! Of course, if the indicator is processing intensive, then the unnecessary calculations slow down the whole platform.

Is there a way to avoid this? Or am I misunderstanding something? Any help would be greatly appreciated.

Thanks in advance


 
 Post subject: Re: Can/does jforex platform cache calculate method's result Post rating: 0   New post Posted: Fri 15 Apr, 2011, 15:32 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
If your custom indicator has an unstable period more candles will be used in calculations every time these calculations are performed (See IndicatorInfo for more details:
https://www.dukascopy.com/client/javadoc ... ,%20int%29).
Also, the following link may be helpful: viewtopic.php?p=4920#p4920


 
 Post subject: Re: Can/does jforex platform cache calculate method's result Post rating: 0   New post Posted: Mon 18 Apr, 2011, 10:19 

User rating: -
Thank you for your reply. My indicator does not have an unstable period, and it has a constant short look-back. However, the problem mysteriously disappeared after my post. calculate is now called only for the last couple of candles. If it was a platform fix, then thank you!


 

Jump to:  

cron
  © 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