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.

Suggested approach to get current BID price in indicator?
 Post subject: Suggested approach to get current BID price in indicator? Post rating: 0   New post Posted: Thu 01 Dec, 2011, 03:15 
User avatar

User rating: 8
Joined: Tue 25 Oct, 2011, 23:02
Posts: 74
Location: Australia, Melbourne
Dear Support,

How do you recommend getting the current tick BID (or ASK) price in an indicator?
I would like you use the current price in my calculate method to determine a few things.
I am currently using a double input feed and calculating an SMA(1) on close price to simulate the tick BID price, but this is pretty unsatisfactory.

Any suggestion / example?

regards
f451


 
 Post subject: Re: Suggested approach to get current BID price in indicator Post rating: 0   New post Posted: Thu 01 Dec, 2011, 08:30 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Consider the following example:
https://www.dukascopy.com/wiki/index.php ... _Indicator
here the last BID price is inputs[0][inputs[0].length - 1].
You can also set the OfferSide of the input array, see:
https://www.dukascopy.com/wiki/index.php ... ple_inputs


 

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