Hello, Study() function returns ARRAY that represents a visual line (if you PLOT it on the chart - it will show in the same place as actual study) and this allows to use it in conjunction with Cross and other comparision (See tutorial working with studies for more details). Strictly vertical line can't be accessed that way (null is returned).
For vertical selection of dates you should rather user BeginValue, EndValue, SelectedValue functions. Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: David Weller To: 'David Weller' ; [email protected] Sent: Sunday, February 10, 2008 11:08 AM Subject: [amibroker] Vertical Study Line Dates Vertical Study Line Dates Spent several hours on this yesterday - I must not be reading something right. Let me rephrase the question, On a horizontal study line you can read the value of the study (x-axis ) and use it to compare to other values in AFL. For a vertical line - what is the value being returned - dates, datenum, nulls, true/false? I am assuming it is a date - but it must be something else. I would like to ultimately read the y-axis (date) and display it in a low level graphics table - but right now I can't even read it, Test Code follows : Filter=1; OSSID=1070; AddColumn(Study("OD",OSSID),"OD1",formatDateTime); AddColumn(Study("OD",OSSID),"OD2"); Any steering in the right direction is appreciated I am sure I am missing some very basic point. Best Regards Dave ------------------------------------------------------------------------------ From: David Weller [mailto:[EMAIL PROTECTED] Sent: Friday, February 08, 2008 9:58 PM To: '[email protected]' Subject: Date Functions This is probably going to be easy. I am working with some low level graphics and want the difference between two vertical study lines (dates) - number of days. I realize that "currently" the low level graphincs works with numbers (not dates) but I was hoping that the daysremaining would come out to be an interger (like subtracting 2 dates in excel) or I could make it come out as an integer. There must be a trick or function as I am sure you can do this. I have the following code: Daysremaining = Study("OE",OSSID) - Study("OD",OSSID); PrintInCell(StrFormat("%g",Daysremaining),6,4); Thanks in advance Dave
