PureBytes Links
Trading Reference Links
|
Tomasz,
I have been hoping that plotting into the future would become a
functional possiblity for a long time. I reviewed your example and
want to clarify what I consider "plotting into the future"
1. Plotting into the future does not change or "shift" any of the
graphed data that appears on the chart on or before the last bar
((Last Value, (BarIndex()).
The best example is Line Array. If I am plotting into the future x0
and y0 should remain the same while x1 and y1 are adjusted for the
periods that extend into the blank portion of the chart.
I tested your example by doing the following:
Changed "25" to "35"
MClose=IIf(BarIndex()>LastValue(BarIndex())-35,-1e10,Ref(Close,25));
Plot( me52,"S1", IIf( Avg26_9 >
me52,colorOrange,colorBlueGrey),styleCloud,Null,Null,35);
Doing this shifts the current graphed data to the right.
Am I doing something incorrectly?
Thanks,
David K.
--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@xxx>
wrote:
>
> Hello,
>
> As an example here is the formula that plots Ichimoku cloud
projected in the future
>
> me26=(HHV(High,26)+LLV(Low,26))/2;
> me9=(HHV(High,9)+LLV(Low,9))/2;
> me52=(HHV(High,52)+LLV(Low,52))/2;
> Avg26_9=(me26+me9)/2;
> MClose=IIf(BarIndex()>LastValue(BarIndex())-25,-1e10,Ref
(Close,25));
>
> Colorhist=IIf(Avg26_9>me52,colorLightOrange ,colorPaleBlue);
>
> Plot(me26,"M26",colorRed, styleThick);
> Plot(me9,"M9",colorBlue,styleThick);
> Plot(MClose,"H26",colorGreen,styleThick);
> Plot(C,"C",-1,styleCandle);
> H=Avg26_9;
> L=me52;
> Plot( me52,"S1",
> IIf( Avg26_9 >
me52,colorOrange,colorBlueGrey),styleCloud,Null,Null,25);
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: Tomasz Janeczko
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Monday, January 05, 2009 8:38 PM
> Subject: Re: [amibroker] Graphing beyond the data
>
>
> No I did not miss the point.
>
> The supported way to EXTEND indicators is to calculate them as
usual and
> plot using XShift. In this approach you are using LAST X bars of
array
> as "future" bars. Then to actually display these future bars at
correct place
> you use XShift.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: wavemechanic
> To: AmiBroker, User
> Sent: Monday, January 05, 2009 7:40 PM
> Subject: Re: [amibroker] Graphing beyond the data
>
>
> TJ,
>
> I think you missed the point. The problem is one of extension
not shifting which Plot() cannot handle. Extending indicators, as
Robert and many of us want to do, is necessary to identify future
values for a variety of studies, including Hurst channel projections,
cycles, etc. Here are TradeStation examples showing the extension of
the analysis (not a shift) into the future.
>
> Bill
>
>
>
>
>
>
>
>
>
>
>
> ----- Original Message -----
> From: Tomasz Janeczko
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Monday, January 05, 2009 10:10 AM
> Subject: Re: [amibroker] Graphing beyond the data
>
>
> Hello,
>
> You can do that using XShift parameter of Plot() function
> http://www.amibroker.com/f?plot
>
> For coding example, see DispMA (displaced moving average)
> that is shipped with AmiBroker
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "Robert" <disqplay0@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, January 05, 2009 3:25 PM
> Subject: [amibroker] Graphing beyond the data
>
>
> >I have been working on an indicator that would look into the
futur if
> > the trend continues or if it reverses. It will graph to the
last day
> > of data but I am presently looking at a five day look
ahead. Is there
> > a way to graph the pridicted price beyond the last data
point? If so
> > a shove in the right direction would help. Not really sure
how to do
> > this but would like to learn, thanks in advance for any
support you
> > can give to this question.
> >
> > Disq
> >
> >
> >
> > ------------------------------------
> >
> > **** IMPORTANT ****
> > This group is for the discussion between users only.
> > This is *NOT* technical support channel.
> >
> > *********************
> > TO GET TECHNICAL 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
> >
> > *********************************
> > Yahoo! Groups Links
> >
> >
> >
>
> ------------------------------------
>
> **** IMPORTANT ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> *********************
> TO GET TECHNICAL 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
>
> *********************************
> Yahoo! Groups Links
>
>
>
>
>
> --------------------------------------------------------------------
------
>
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.176 / Virus Database: 270.10.2/1876 - Release
Date: 1/5/2009 9:44 AM
>
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL 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
*********************************
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:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|