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

Re: [amibroker] PlotForeign - Futures Contracts - Horizontal Lines - No Data?



PureBytes Links

Trading Reference Links

I don't know anything about futures, or how AB stores their data, but you 
need the contract data in AB to be null after the expiration date. Try 
something like this:

ContractData = IIF( DateNum() > ExpirationDate, NULL, ContractData );
Plot( ContractData....

Steve

----- Original Message ----- 
From: "sslack88" <jzzpiano88@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, August 13, 2005 4:41 PM
Subject: [amibroker] PlotForeign - Futures Contracts - Horizontal Lines - No 
Data?


>I want to plot the individual futures contract data overlaid onto the
> cash index chart.  That way I can see how the futures contracts are
> tracking the index.
>
> However, when I do this, after the expiration of a particular contract
> Amibroker takes the last value and then plots a horizontal line across
> the chart.  For example, if the last date of the contract was 1/02/05
> and the value was 139.5, Amibroker would plot a horizontal line at
> 139.5 starting at 1/02/05 to the present date.
>
> Is there anyway to fix this so after the expiration date of the
> contract nothing is plotted?
>
>
>
>
>
>
> 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
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
> 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hi5tj58/M=362131.6882500.7825259.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123973554/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

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

 
Yahoo! Groups Links

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

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