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

[amibroker] Re: Is there a good way to shift one series but not another?


  • Date: Thu, 24 Dec 2009 07:14:32 -0000
  • From: "Mike" <sfclimbers@xxxxxxxxx>
  • Subject: [amibroker] Re: Is there a good way to shift one series but not another?

PureBytes Links

Trading Reference Links

I believe that you can get what you are after by using a forward Ref instead of the traditional backward Ref.

e.g.
Plot(Close, "Price", colorGreen);
Plot(Ref(Close, 5), "Price2", colorRed);

The second plot will effectively be pushed backwards by 5 bars since it plots its values 5 bars earlier. The second plot will flatline at its last value for the duration of the 'n' bars shifted (e.g. 5 in the above example). But, you could probably clean that up to put in NULL values for the tail end.

Mike

--- In amibroker@xxxxxxxxxxxxxxx, Potato Soup <potatosoupz@xxx> wrote:
>
> I have a price series (close) and another series in the same pane. I want to shift the 2nd series "n" bars back in time. I don't want to base the 2nd series on a shift, I want the 2nd series to go all the way to the end, and then be shifted back "n" bars. Is this doable?
>




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

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

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