Hello,
I study this sources
https://www.TS.com/support/bo ... _Guide.pdf
http://www.tssupport.com/support/tutorials/
but cant get an answer and dont know where to ask!
How can get the first value of a bar? I have two inputs
inputs: DataSeries1( Close of data1 ), DataSeries2( Close of data2 ) ;
This dont work: startValue1 = DataSeries1[1];
How can get the first value of a bar?
Re: easy language, sorry few simple questions
I don't completely understand what you are trying to do, but the first value of a bar is the open.Hello,
I study this sources
https://www.TS.com/support/bo ... _Guide.pdf
http://www.tssupport.com/support/tutorials/
but cant get an answer and dont know where to ask!
How can get the first value of a bar? I have two inputs
inputs: DataSeries1( Close of data1 ), DataSeries2( Close of data2 ) ;
This dont work: startValue1 = DataSeries1[1];
So if you have defined the variable "startvalue1" then
Code: Select all
startValue1 = Open;
Use
Code: Select all
Plot1(startValue1);
Chris
Thanks for the reply, sorry for my bad explanation!
I need the absolute first bar of a dataseries.
With my example I get the closes of two symbols (every close of each BAR)
But I need now to know how can I grab the values of the first bar.
Can you help, would be very nice!
In easyLanguage-refguide I found only this:
For example, the following expression is referencing the closing price from 2 bars ago: But how to grab the first bar and not only a few bars ago?
I need the absolute first bar of a dataseries.
With my example I get the closes of two symbols (every close of each BAR)
Code: Select all
inputs: DataSeries1( Close of data1 ), DataSeries2( Close of data2 ) ;
Can you help, would be very nice!
In easyLanguage-refguide I found only this:
For example, the following expression is referencing the closing price from 2 bars ago:
Code: Select all
Close[2]
This should help:
This will store the Open, High, Low and Close of the very first bar on your chart in the four variables.
Chris
Code: Select all
Variables:
FirstBarOpen (0),
FirstBarHigh (0),
FirstBarLow (0),
FirstBarClose (0);
If CurrentBar = 1 then begin
FirstBarOpen = Open;
FirstBarHigh = High;
FirstBarLow = Low;
FirstBarClose = Close;
end;
Chris