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

Re: [amibroker] Plotting offset prices



PureBytes Links

Trading Reference Links

Terry wrote:

Thanks Terry, but I think it's my fault for not making myself clear - I'm trying to plot the second set of price data, in the same way that you would plot an offset moving average - i.e. 10 or 15 bars offset  behind ( or in front) of the existing OHLC , so that it doesn't crowd the onscreen indicators and prices that I'm looking at - so I'm looking to plot the second instruments current   price bars 15 bars back from the current close, not actually plot the price from 15 bars ago currently... does that make any sense ?

Best regards

Gary

Sample specifically selected "Close" so OHLC is not possible.

You can save all arrays with 4 Foreign statements and then PlotOHLC.

PlotForeign does not accept REF function.

This works:

 

SetForeign("MSFT");

    Plot(Ref(C,-15),Name(),colorViolet,styleLine|styleOwnScale);

RestorePriceArrays();

 

--

Terry

 




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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS