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.

How to get spread inside onBar()
 Post subject: How to get spread inside onBar() Post rating: 0   New post Posted: Sun 15 Sep, 2013, 22:30 
User avatar

User rating: 0
Joined: Mon 11 Mar, 2013, 00:00
Posts: 47
Location: Colombia, manizales
Hello,

I want to get spread in onBar(), if someone can help me I would appreciate it.

Thanks,


 
 Post subject: Re: How to get spread inside onBar() Post rating: 1   New post Posted: Sun 15 Sep, 2013, 23:41 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi juandata:

double lastBarSpread = askBar.getClose() - bidBar.getClose();

Trade well

JL


 
 Post subject: Re: How to get spread inside onBar() Post rating: 0   New post Posted: Mon 16 Sep, 2013, 03:02 
User avatar

User rating: 0
Joined: Mon 11 Mar, 2013, 00:00
Posts: 47
Location: Colombia, manizales
Thank you so much! :D


 

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