PureBytes Links
Trading Reference Links
|
In indicator builder
Plot(C,"C",1,1);
Plot(Ref(C,1),"+1",4,1);
Plot(Ref(C,-1),"-1",5,1);
and you will clearly understand what the shift is.
The Ref(C,1) is the next bar Close and moves the line to the left,
the Ref(C,-1) is yesterdays Close and moves the line to the right.
Note also that the Ref(C,1) does not work for the last bar, because
the next bar Close is [stll] unknown.
A
Plot(Ref(C,21),"+1",4,1);
would be flat for the last 22 bars.
Dimitris
--- In amibroker@xxxxxxxxxxxxxxx, "ntk98_2000" <ntk98_2000@xxxx>
wrote:
>
> Thanks very much. Your are my hero. Your solution is perfect I only
> have to change one line to
> "Plot(Min(MA1,MA2),"",colorLightGrey,2);" --because I use
background
> color lightgrey--.
>
> Could you help me to clear the display expressions also. I did with
> intention not mention that my question related to Ichimoku, because
I
> am confused with the formula we have for AB, compare to what I see
on
> metastock, equitrade etc...
>
> I know that I should use plot() and ref() to do it but the
plus/minus
> sign related to English expression is confusing. I am not English
so
> that is maybe my problem. But definitely I see differences in AB
> ICHImoku, and Meta, EQUI and other source so I want to get
clarifiered
> for myself the rule of "prior to", "ahead of", "include today" in
> general befor I accuse one chart is display wrong. With intention I
> don't mention ICHIMOKU, with intention I don't want to remember or
> post code\chart I saw, in order to be neutral with the expressions
> first.
>
> I read from someone that if you use ref(C,-1) the meaning in chart
> and in calculation are different in regard to the time. Please
please
> clear my confusion by issueing example for REF() function in the
> help\instruction.
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS"
<TSOKAKIS@xxxx>
> wrote:
> >
> > Try
> > MA1=MA(C,26);
> > MA2=MA(C,52);
> > Plot(MA1,"MA1",1,1);
> > Plot(MA2,"MA2",1,1);
> > Plot(Min(MA1,MA2),"",0,2);
> > Plot(Max(MA1,MA2),"",2,2);
> > Dimitris
> > --- In amibroker@xxxxxxxxxxxxxxx, "ntk98_2000" <ntk98_2000@xxxx>
> > wrote:
> > >
> > > I am confused by following display expressions
> > > a) "shifted 25 days prior to today "
> > > b) "then shifted 25 days ahead of today"
> > >
> > > Secondly I like in to color the area between two chart lines
like
> MA
> > > (C,26) and MA(C,52) how can I do that?
> > >
> > > Thanks very much in advance.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|