Try this ... it works with 5min RT data. Plot( IIf(LastValue(TimeNum()) == TimeNum() AND LastValue(DateNum()) == DateNum() ,C,Null), "CLOSE", colorRed, styleHistogram, 0, 0, 1 );
Integrated with Howard's example it should do the job for you. The same concept can also be applied to forward projecting things like probabilty cones etc. --- In [email protected], "Vinay Gakkhar." <vgakk...@...> wrote: > > Dear Howard, > > Can you please make little modification in it so that pivot points for the > past bars do not show, and only one set of pivot points based on the latest > bar show? > > Thanks, > > Vinay > > On Wed, 22 Apr 2009 18:00:49 +0530, Howard B <howardba...@...> wrote: > > > Greetings -- > > > > The code below calculates pivot points based on the latest bar, and plots > > them one bar ahead. Is this what you are hoping to do? > > > > > > > > // PivotPoints.afl > > // > > // Traditional pivot points. > > // Thought by some to indicate levels of support > > // and resistance. > > //R2 = P + (H - L) = P + (R1 - S1) > > //R1 = (P x 2) - L > > //P = (H + L + C) / 3 > > //S1 = (P x 2) - H > > //S2 = P - (H - L) = P - (R1 - S1) > > P = (H + L + C) / 3; > > R1 = (P * 2) - L; > > S1 = (P * 2) - H; > > R2 = P + (R1 - S1); // P + (H - L) > > S2 = P - (R1 - S1); // P - (H - L) > > Plot(C,"C",colorBlack,styleCandle); > > // Displace the plot of the pivot points one bar > > // to the right. > > // Pivot points are based on the current bar, > > // but are thought to provide indication of > > // support and resistance for the next bar. > > // > > Displace=1; > > Plot(R2,"R2",colorRed,styleLine,0,0,Displace); > > Plot(R1,"R1",colorPink,styleLine,0,0,Displace); > > Plot(P,"P",colorBlue,styleLine,0,0,Displace); > > Plot(S1,"S1",colorPaleGreen,styleLine,0,0,Displace); > > Plot(S2,"S2",colorGreen,styleLine,0,0,Displace); > > //Figure 8.5 Pivot Points > > > > > > Thanks, > > Howard > > > > > > > > On Tue, Apr 21, 2009 at 6:15 AM, gmorlosky <gmorlo...@...> wrote: > > > >> > >> > >> After reading the thread mentioned below, I'm thinnking this is very > >> hard > >> to do, and XSHIFT is not the answer ??? > >> > >> I would just like to tell any symbol data set that it should extend into > >> the future based on whatever formula I give it for as many days as I > >> state, > >> and then all my Explores are run against that data. > >> > >> Basically I'm trying to look at the S&P futures before the market opens > >> and > >> then, based on that direction, see what my indicators "would" alert me > >> to. > >> > >> Any thoughts > >> > >> > >> --- In [email protected] <amibroker%40yahoogroups.com>, "Mike" > >> <sfclimbers@> wrote: > >> > > >> > There was a thread in this forum about how to do it for charting. That > >> might be a good starting point for you... > >> > > >> > http://finance.groups.yahoo.com/group/amibroker/message/133704 > >> > > >> > Mike > >> > > >> > --- In [email protected] <amibroker%40yahoogroups.com>, > >> "gmorlosky" <gmorlosky@> wrote: > >> > > > >> > > Can I somehow have AmiBroker project the price into the future > >> (maybe 1 > >> to 5 days) based on, let's say, the slope of the close for the last 5 > >> days ? > >> > > Then I could run my Explore against this data and have my alerts > >> based > >> on what might happen tomorrow or next week. > >> > > I guess this would be good also for doing negative slope for a > >> expected > >> bad week ahead. > >> > > > >> > > >> > >> > >> >
