Thanks very much for taking the trouble to help me out. I will sit with the suggestions you have been kind enough to provide in the next couple of days and hopefully will be able to figure this out.
Regards
Rakesh
On 10/9/06, brian.z123 <[EMAIL PROTECTED]> wrote:
Hello Rakesh,
I agree with Tomasz's post.
I have worked with similar issues without problems (unless I don't
understand your question completely or there is more to your project
than you have explained).
I have used a slightly different approach which you might find
useful although the outcome is exactly the same as Tomasz's.
I also refer to your previous post:
>I am looking for a solution to control the last data point thats
>used for computing an indicator such as a moving average similar to
>the manner in which data points are selected for plotting line
>studies such as trendlines and pitchforks et all. Is it possible to
>restrict the data that is referred to by AB for such computations
>upto a particular date? If so how can this be achieved? How can AB
>be made to remember the date selected for each issue?
/*Plots partial arrays displaying only the bars from the selected
value on*/
/*Double click any bar to chose the selected value (start of plot)*/
/*Double click in space to the right of the graph to remove selected
value and restore the full array plot*/
/*Useful for overlaying derivatives of an array over the original
especially if the price style is line*/
/*Interchange the order of Null and the derived array in formula SC
to display only values to the left of the selected bar*/
/*The same outcome can be obtained in an overlay by replacing Null
with C in formula SC. The Close will be plotted but is hidden under
the original Close*/
//*For some uses < BeginValue may need to be changed to <=
adjC = Ref(C,-1) * 1.01;//Adjusted Close is an array derived from
the Close and is for example use only
SVD = IIf(DateNum() < BeginValue(DateNum()), Null, adjC);//Selected
Value Date ignores data before selected date
Plot(SVD, "AdjustedClose",colorBlue, styleLine);
Brand new users make sure you unwrap the code in line 2 and 4 back
to the previous comment (Yahoo messages wraps long code).
IIF is a beautiful little function isn't it!
Happy plotting.
BrianB2.
--- In [email protected], "Rakesh Sahgal" <[EMAIL PROTECTED]>
wrote:
>
> I had approached AB support for help in resolving problem of
limiting the
> data used by AB for computations. Marcin was kind enough to help
me and
> provided me with the following code using ParamDate:
>
> limit = DateNum() <= ParamDate("date", Date() );
> myClose = IIf( Limit, Close,Null);
>
> The limited question that I asked him was solved admirably well by
the above
> code. Now I have run into another brickwall. The usage of null
whacks the
> plot out of shape from the date next/subsequent to the selected
date. I have
> tried to see examples of code posted that use Null but have not
been able to
> make sense out of it. Is there any solution to this?
>
> If not, how do i accomplish the twin objectives of (a) limiting
the data
> used for computation to a selected/cut-off date and (b) ensure the
accuracy
> of the plot using data till the selected date, BEYOND/SUBSEQUENT
to the
> selected/cut-off date.
>
> I will be most grateful for any help in solving this problem.
>
>
> TIA for any help.
>
>
> Rakesh
>
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 other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
__._,_.___
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 other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
| Software support | Small business finance | Business finance online |
| Business finance training | Business finance course |
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
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
__,_._,___
