[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Vertical Study Line Dates



PureBytes Links

Trading Reference Links

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 -----
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:wellerdr@xxxxxxx]
Sent: Friday, February 08, 2008 9:58 PM
To: 'amibroker@xxxxxxxxxxxxxxx'
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

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___