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.

Prev calculated bar
 Post subject: Prev calculated bar Post rating: 0   New post Posted: Mon 22 Aug, 2011, 11:30 

User rating: 0
Joined: Fri 19 Aug, 2011, 20:29
Posts: 45
Location: Germany,
Hi,

in order to calculate e.g. EMAs in a performant way on successive calculate() calls one would just use the previous bars ema and calculate it based on that.

Is it somehow possible to access the output of the previous bar?

Thanks


 
 Post subject: Re: Prev calculated bar Post rating: 0   New post Posted: Tue 23 Aug, 2011, 09:05 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
yoursong wrote:
Is it somehow possible to access the output of the previous bar?
Not in a direct way. Consider using output of another indicator within calculate:
https://www.dukascopy.com/wiki/index.php ... _indicator


 

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