Thanks, but no... I really need to somehow add to the data set (OHLC) for days (say 5) into the future, so that all indicators then "look" into the future.
Example: We can use any timescale, so let's use 1 hour. It is now 9:30 am and I predict the market will do this based on it's previous close: 9:30 = up 10%, 10:30 = flat, 11:30 = down 5%, 12:30 = down 10%, 1:30 = down 15%. Any thoughts ? --- In [email protected], 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. > > > > > > > > > > > > > >
