Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Plotting Entries/Exits on highlow chart of a financial time series
Replies: 2   Last Post: Dec 20, 2010 8:59 AM

 Messages: [ Previous | Next ]
Re: Plotting Entries/Exits on highlow chart of a financial time series
Posted: Dec 20, 2010 8:59 AM

Great stuff!!
I'm using openhigh method, still works.

Thanks.

L.

"Wayne King" <wmkingty@gmail.com> wrote in message
news:ienjp4\$ha7\$1@fred.mathworks.com...
> <sTHPo.50492\$M94.21315@newsfe22.ams2>...

>> Hi,
>>
>> I've created a highlow chart of an fts and wanted to indicate where
>> entries and exits take place by putting some kind of marker next to the
>> bar at the relevant price. The entries/exits consist of a date and a
>> price
>>
>> I was using "text" , but this no longer seems to work now I'm using fts
>> (I was using vectors of data).
>>
>> Any suggestions?
>>
>> thanks.
>>
>> L.

>
> Hi, can you use fts2mat() to convert your data and times to a matrix and
> then add the symbol at the appropriate place? I'm assuming you're using
> the plot method for the financial time series object.
>
> % Using a very simple object :)
> data = [1:6]';
> dates = [today:today+5]';
> tsobjkt = fints(dates, data);
> plot(tsobjkt);
>
> datamat = fts2mat(tsobjkt,1);
> hold on;
> plot(datamat(2,1),datamat(2,2),'^','markersize',10,'markerfacecolor',[1 0
> 0]);
>
>
> Also, I'm assuming you wanted to do it from the command line. If you are
> satisfied by just marking the plot, you can use edit plot.
>
> Wayne

Date Subject Author