|
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 |
[TraderTim]
|
Post subject: Basic Indicator Example - Calculating Bar Range |
Post rating: 0
|
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!
|
|
|
|
 |
API Support
|
Post subject: Re: Basic Indicator Example - Calculating Bar Range |
Post rating: 0
|
Posted: Mon 18 Oct, 2010, 13:35
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|