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

RE: how to do "buy if some function of index" is true?



PureBytes Links

Trading Reference Links

Yes, use the Online Security Function:
Something
like.......Security("Online:$SPX",C)>HHV(Security("Online:$SPX",C),20)

Page 241 of the Manual

-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx [mailto:owner-metastock@xxxxxxxxxxxxx]On
Behalf Of Jeff Haferman
Sent: Friday, November 02, 2001 9:58 PM
To: metastock@xxxxxxxxxxxxx
Subject: how to do "buy if some function of index" is true?


Let's say I have security ABC open in a window, and the SPX
open in another window.

Is it possible to write an expert (or indicator, or system test)
that will do something like (for example)

buy ABC if the SPX is at a 20 day high?