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.

Basic Indicator Example - Calculating Bar Range
 Post subject: Basic Indicator Example - Calculating Bar Range Post rating: 0   New post Posted: Mon 18 Oct, 2010, 01:14 

User rating: 0
Joined: Thu 14 Oct, 2010, 22:52
Posts: 12
Does there exist any simple indicators that can calculate bar range and plot the result?

This would help me understand how the inputs are defined. I have made a simple example indicator that will take the current close and plot it. However, when I change the statement:

double value = inputs[0][0] (This displays the opening price for the current bar.)
double value = inputs[0][1] (This displays closing price, current tick on active bar.)

to this:

double value = inputs[0][2] (This produces an error, thought it would show the HIGH of the current bar.)

Please, if you could show me a very simple example - I could understand how the price data is structured.

I thank you in advance!


 
 Post subject: Re: Basic Indicator Example - Calculating Bar Range Post rating: 0   New post Posted: Mon 18 Oct, 2010, 13:35 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello,
Please consider the following page:
viewtopic.php?f=10&t=23964&p=29526#p29526


 

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