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

Re: [amibroker] Re: Graphing beyond the data



PureBytes Links

Trading Reference Links

Hi Steve,
             Thank you for that information which is great,
I'm using ver 5.10 wonder what version your using there please ?
 
Kind regards
Paul
 

Hi - I copied and pasted the code from your post, it does plot OK for me w/o any syntax errors...
 
Steve
----- Original Message -----
From: Paul Radge
Sent: Tuesday, January 06, 2009 8:06 PM
Subject: Re: [amibroker] Re: Graphing beyond the data

Hi Tomasz,
       Many thanks for your input Sir,
I've changed the F series to the actual Calendar days Carolan uses and changed the lines to the ones you have suggested ,,i'm afraid i'm not as clever as some and need to ask you for help about a syntax error i'm getting at ds = DaysSince1900();   please.
 
kind regards
Paul
 

_SECTION_BEGIN("CarolanForwardSpiral");

f2=29;

f3=42;

f4=51;

f5=66;

f6=83;

f7=106;

f8=135;

f9=172;

f10=219;

f11=279;

f12=354;

f13=451;

ds = DaysSince1900();

sds = SelectedValue( ds );

 

Line1_X = ( ds == sds ) + 1 + F2;

Plot(Line1_X, "F2( "+WriteVal(F2,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = ( ds == sds ) + 1 + F3;

Plot(Line1_X, "F3( "+WriteVal(F3,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = ( ds == sds ) + 1 + F4;

Plot(Line1_X, "F4( "+WriteVal(F4,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = ( ds == sds ) + 1 + F5;

Plot(Line1_X, "F5( "+WriteVal(F5,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = ( ds == sds ) + 1 + F6;

Plot(Line1_X, "F6( "+WriteVal(F6,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = ( ds == sds ) + 1 + F7;

Plot(Line1_X, "F7( "+WriteVal(F7,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = ( ds == sds ) + 1 + F8;

Plot(Line1_X, "F8( "+WriteVal(F8,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = ( ds == sds ) + 1 + F9;

Plot(Line1_X, "F9( "+WriteVal(F9,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = ( ds == sds ) + 1 + F10;

Plot(Line1_X, "F10( "+WriteVal(F10,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = ( ds == sds ) + 1 + F11;

Plot(Line1_X, "F11( "+WriteVal(F11,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = ( ds == sds ) + 1 + F12;

Plot(Line1_X, "F12( "+WriteVal(F12,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = ( ds == sds ) + 1 + F13;

Plot(Line1_X, "F13( "+WriteVal(F13,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Plot(C,"close",colorBlack,styleCandle);

_SECTION_END();

----- Original Message -----
Sent: Wednesday, January 07, 2009 6:08 AM
Subject: Re: [amibroker] Re: Graphing beyond the data

Hello,
 
If you need calendar days, you need to use DaysSince1900 function instead of BarIndex().
 
So instead lines like this:
Line1_X  = Cum(1) == SelectedValue(BarIndex())+1 + F5;
 
You should be using:
 
ds = DaysSince1900();
sds = SelectedValue( ds );
 
Line1_X = ( ds == sds ) + 1 + F5
 
As you can see instead of repetitive calls to the same functions (slow) I am using
variables. This makes code much faster.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Paul Radge
Sent: Tuesday, January 06, 2009 5:09 PM
Subject: Re: [amibroker] Re: Graphing beyond the data

Pit,
     i spent sometime with wavemechanic (he's very clever) i put together a spiral ala Carolan but i'm afraid to say that the only way of measuring time was in trading days not Calendar days as per Carolan.I cross checked what i created with true Carolan theory and the error increased with the F series number.
 
sorry to be the one to bring the sad news as you can see from the code below i converted the F series into trading days to display a point and click forward Spiral.
 
All up at the end of the day it's not possible to create a point and click true Carolan visual Spiral as it's too difficult to count in calendar days,,i'll show the code i put together with Lal and Wavemechanic but please understand it does not correlate to a true Calendar Spiral

_SECTION_BEGIN("CarolanForwardSpiral");

f2=21;

f3=30;

f4=36;

f5=47;

f6=59;

f7=76;

f8=96;

f9=123;

f10=156;

f11=199;

f12=253;

f13=322;

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F2;

Plot(Line1_X, "F2( "+WriteVal(F2,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F3;

Plot(Line1_X, "F3( "+WriteVal(F3,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F4;

Plot(Line1_X, "F4( "+WriteVal(F4,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F5;

Plot(Line1_X, "F5( "+WriteVal(F5,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F6;

Plot(Line1_X, "F6( "+WriteVal(F6,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F7;

Plot(Line1_X, "F7( "+WriteVal(F7,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F8;

Plot(Line1_X, "F8( "+WriteVal(F8,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F9;

Plot(Line1_X, "F9( "+WriteVal(F9,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F10;

Plot(Line1_X, "F10( "+WriteVal(F10,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F11;

Plot(Line1_X, "F11( "+WriteVal(F11,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F12;

Plot(Line1_X, "F12( "+WriteVal(F12,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Line1_X = Cum(1) == SelectedValue(BarIndex())+1 + F13;

Plot(Line1_X, "F13( "+WriteVal(F13,1)+" )",colorBlue,styleHistogram|styleOwnScale);

Plot(C,"close",colorBlack,styleCandle);

_SECTION_END();

kind regards
Paul
 
 
----- Original Message -----
From: pitbar64
Sent: Tuesday, January 06, 2009 11:42 PM
Subject: [amibroker] Re: Graphing beyond the data



Hi

Is this possible to project Carolan windows/dates/ in the same way.

Best Regards

Pit

--- In amibroker@xxxxxxxxxps.com, "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@xxxxxxxxxps.com
> 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@xxxxxxxxxps.com
> 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@x..>
> To: <amibroker@xxxxxxxxxps.com>
> 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

*********************************




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

__,_._,___