OpenD(0) question  [SOLVED]

Questions about MultiCharts and user contributed studies.
ctu1121
Posts: 135
Joined: 05 Jul 2012
Has thanked: 10 times
Been thanked: 4 times

OpenD(0) question

Postby ctu1121 » 08 Oct 2012

Hi there,
I would like to get 200 days ago open price, I wrote the following code.

Value1=openD(200);
print("Value1=",value1);

The result is as below:
Value1=-1

I am running the code in one day K bar window. Please advise why I can not receive the
correct price for 200 days ago. Is that because that day is holiday?

Thanks for your help!

Charles

SP
Posts: 465
Joined: 06 Feb 2006
Has thanked: 36 times
Been thanked: 286 times

Re: OpenD(0) question  [SOLVED]

Postby SP » 08 Oct 2012

The ...D functions are limited by the OHLCPeriodsAgo function with the array
arr0[ 4, 50 ]( -1 ) at 50. Use a daily chart as data2 and Open[200] of data2.


Return to “MultiCharts”