Rank: Newbie
Groups: Registered, Registered Users Joined: 3/30/2006(UTC) Posts: 4
|
I need to do a simple spread chart with ratios
i.e
(stock1) x 3 - (stock2) x 5 -- chart
just want to chart one symbol minus the other symbol but able to multiply the prices .
Apparently i need to create an expert formula for this ?
any help will be much appreciated . i imagine this will be simple for you experts out there
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/28/2005(UTC) Posts: 276 Location: Salt Lake City, UT
|
Wouldn't that be:
[code:1:492205cbc0](Security("us;T", C)*3)-((Security("us;C", C)*5)[/code:1:492205cbc0]
Quote:Apparently i need to create an expert formula for this ?
It doesn't have to be an Expert, it can be an Indicator, which is what I am guessing you want since you posted in the Indicators area.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey neil..... keep in mind that the security function used in that manner is folder sensitive.... by that i mean, using brussell's codes, (Security("us;T", C)*3)-((Security("us;C", C)*5)) all 3 symbols must be in the same folder.... 't' , 'c' and the base security.....
if your online realtime all three will be in the same vendor folder..... if using local eod data they might not be..... in eod data case, spell out the folder path completely....
no biggie.... just expect it....h
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 3/30/2006(UTC) Posts: 4
|
thanks for all the replies , the chart seemed to work ok, although i think part of the syntax was a little incorect .
i got it working when i moved both symbols into the same folder .
cheers
:-)
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.