It is already built into the plot function:
SYNTAX Plot( array, name, color/barcolor, style = styleLine, minvalue = {empty}, maxvalue = {empty}, XShift = 0 )
Vinay Gakkhar. wrote:
Dear Barry,

Thanks for your guidance.

I perhaps did not word my query correctly. I do not want the result for one bar forward or backward, I want to plot the existing result to be plotted one bar ahead of its usual place. And I also want to know how to plot it more than one bar, say 5 bars, ahead of its usual place.

Best regards,

Vinay


On Thu, 06 Nov 2008 09:51:34 +0530, Barry Scarborough <[EMAIL PROTECTED]> wrote:

You can use Ref to move it forward or backward. But it is dangerous
to move it forward and will not work correctly on the last bar. Try
Plot( Ref(CP1, 1), "CP1"...., Then try Plot( Ref(CP1, -1), "CP1"....,
and see which you like better.

Barry

 --- In [email protected], "Vinay Gakkhar." <[EMAIL PROTECTED]>
wrote:
I want to shift the result of the following to the next bar instead
of the
current bar. What should I add?

Plot( CP1, "CP1", ParamColor("Color", colorRed ), styleDots |
ParamStyle("Style") | GetPriceStyle() );


And if I want to see if after 5 bars, what should I add?

Thanks.

Vinay





------------------------------------

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




Reply via email to