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

[amibroker] Re: Tomorrow's Pivots?



PureBytes Links

Trading Reference Links

This example seems to show tomorrow's pivots w/XSHIFT.
One probably would like to cut the extensions to the earlier
dates than today... ::

P = LastValue((H + L + C) / 3);
 R1 = 2 * P - LastValue(L);
 S1 = 2 * P - LastValue(H,22);
 R2 = P + (R1 - S1); //R3 = (P -S1)+ R2;
 S2 = P - (R1 - S1); //S3 = P - (R2 - S1);

Plot(R2,"dR2",colorRed,4,Null,Null,5);
Plot(R1,"dR1",colorYellow,4,Null,Null,5);
Plot(P,"dP",colorWhite,4,Null,Null,5);
Plot(S1,"dS1",colorYellow,4,Null,Null,5);
Plot(S2,"dS2",colorRed,4,Null,Null,5);
Plot(C,"",1,64);


--- In amibroker@xxxxxxxxxxxxxxx, "Bob Jagow" <bjagow@xxxx> wrote:
>
> Didn't make it st time.
> ----------
> That's a thought, Steve.
> My existing code [pasted below] wont give tomorrow's pivots until 
tomorrow's
> 1st bar prints.
> What I need to do is plot the evolving next days pivots at the far 
right
> The next step would be to compare raw and extrapolated values.
> 
> Bob
> -----------------------------------
> TimeFrameSet(inDaily);
> P = (H + L + C) / 3;
> R1 = 2 * P - L;
> S1 = 2 * P - H;
> R2 = P + (R1 - S1); //R3 = (P -S1)+ R2;
> S2 = P - (R1 - S1); //S3 = P - (R2 - S1);
> TimeFrameRestore();
> dR2 = TimeFrameExpand( R2, inDaily ); Plot(dR2,"dR2",colorRed,4);
> dR1 = TimeFrameExpand( R1, inDaily ); Plot
(dR1,"dR1",colorYellow,4);
> dP  = TimeFrameExpand( P, inDaily );    Plot(dP,"dP",colorWhite,4);
> dS1 = TimeFrameExpand( S1, inDaily ); Plot
(dS1,"dS1",colorYellow,4);
> dS2 = TimeFrameExpand( S2, inDaily ); Plot(dS2,"dS2",colorRed,4);
> ----------
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
On Behalf
> Of Steve
> Sent: Wednesday, October 19, 2005 12:52 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Tomorrow's Pivots?
> 
> Couldn't you use something like this change the pivots dynamically 
as the
> day progresses
> And use an iif(timenum() > 160000,Plot etc etc
> to display only on days end?
> 
> DayH = TimeFrameGetPrice("H", inDaily); // yesterdays high
> DayL = TimeFrameGetPrice("L", inDaily); // low*/
> DayC = TimeFrameGetPrice("C", inDaily); // close
> DayO = TimeFrameGetPrice("O", inDaily); // current day open
> 
> ----- Original Message -----
> From: Bob Jagow <mailto:bjagow@x...>
> 
> To: amibroker@xxxxxxxxxxxxxxx <mailto:amibroker@xxxxxxxxxxxxxxx>
> Sent: Wednesday, October 19, 2005 5:17 PM
> Subject: RE: [amibroker] Tomorrow's Pivots?
> 
> I thought the details were complete, Graham.
> Why 'reverse engineer' given that the unknown data [today's H, L 
and C]
> become increasing more certain as the day session's end approaches?
> 
> Bob
> 
> 
> 
> 
> 
> 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
> 
> *         Visit your group " amibroker
> <http://groups.yahoo.com/group/amibroker> " on the web.
> 
> *         To unsubscribe from this group, send an email to:
>   amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
> 
> *         Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of
> Service <http://docs.yahoo.com/info/terms/> .
> 
>   _____
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/

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