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.

Options in indicators
 Post subject: Options in indicators Post rating: 0   New post Posted: Tue 07 Sep, 2010, 13:17 

User rating: 0
Joined: Wed 26 May, 2010, 18:57
Posts: 11
It's possible to use historical data in indicators? Or Ask and Bid Volume?
I see this options in Strategy but indicator does not have these options.
Any idea?

Second question: if I want to use two strategies in the same time and both of them use historical data (use getOrdersHistory method) then this method throw JFException. How can I solve this problem?


 
 Post subject: Re: Options in indicators Post rating: 0   New post Posted: Wed 08 Sep, 2010, 16:01 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Quote:
It's possible to use historical data in indicators? Or Ask and Bid Volume?

No it's not possible to use historical data, but if you define as an input for your indicator InputParameterInfo.PRICE, then you will be able to get Volume.
Quote:
if I want to use two strategies in the same time and both of them use historical data (use getOrdersHistory method) then this method throw JFException. How can I solve this problem?
Please describe, what kind of problem do you want to solve?


 
 Post subject: Re: Options in indicators Post rating: 0   New post Posted: Thu 09 Sep, 2010, 10:17 

User rating: 0
Joined: Wed 26 May, 2010, 18:57
Posts: 11
Support wrote:
No it's not possible to use historical data, but if you define as an input for your indicator InputParameterInfo.PRICE, then you will be able to get Volume.

OK, but in InputParameterInfo.PRICE I have only summary volume. Its possible to take ask and bid volume in indicator? If I understand correctly input array is update on every tick?
Support wrote:
Quote:
if I want to use two strategies in the same time and both of them use historical data (use getOrdersHistory method) then this method throw JFException. How can I solve this problem?
Please describe, what kind of problem do you want to solve?

I want to use two different strategies in the same time, and both of them use historical data (getOrdersHistory method).
thanks ;)


 
 Post subject: Re: Options in indicators Post rating: 0   New post Posted: Fri 10 Sep, 2010, 12:49 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Quote:
Its possible to take ask and bid volume in indicator?
The accessible volume in an indicator depends from the OfferSide (ASK/BID) that you are using when calling the method.
Quote:
If I understand correctly input array is update on every tick?
Yes
Quote:
I want to use two different strategies in the same time, and both of them use historical data (getOrdersHistory method).
There won't be any problems. You can do this.


 

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