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@xxxxxxxxx>
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
<*> 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/
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
|