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.

Difference among 3 commands
 Post subject: Difference among 3 commands Post rating: 0   New post Posted: Wed 24 Oct, 2012, 07:47 

User rating: 0
Joined: Tue 16 Oct, 2012, 12:23
Posts: 40
Please tell me what are the differences among the following 3 commands -

- tick.getBid()
- history.getLastTick(instrument)
- history.getLastTick(instr).getBid()

I am a little confused. Thanks.


 
 Post subject: Re: Difference among 3 commands Post rating: 0   New post Posted: Wed 24 Oct, 2012, 08:10 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
try:
console.getOut().println("bid of an arbitrary tick: " +tick.getBid() + "\n last tick" + history.getLastTick(instrument) + " \n bid of last tick" + history.getLastTick(instr).getBid());


 
 Post subject: Re: Difference among 3 commands Post rating: 0   New post Posted: Wed 24 Oct, 2012, 11:37 

User rating: 0
Joined: Tue 16 Oct, 2012, 12:23
Posts: 40
Which command fetches the current market price?


 
 Post subject: Re: Difference among 3 commands Post rating: 0   New post Posted: Wed 24 Oct, 2012, 11:45 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
the last one in your list.


 

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