PureBytes Links
Trading Reference Links
|
1) First generate an indicator indicating when you started your trade (bars
since). To do this, you can write a basic signal (0=no trade and 1 is get
long, -1 is get short) then apply a formula to determine when it went
from -1 or 0 to 1 to get the buy time (there are several methods to do this,
cross()is one of them). Let's call Tbuy the number of bars since it thus
event was generated.
2) Apply Ref(C,-Tbuy) as suggested by Angel.
You can do all in one formula, but I find it easier to develop an indicator
for each step (basic signal, then another to get Tbuy and plot it on
screen). It is easier to make sure you get what you wanted. Then if you wish
to, you can embed everything into one formula. Proceding that way will
minimize debug time.
Laurent
-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Angel Ibarra
Sent: Friday, July 02, 1999 2:49 PM
To: metastock@xxxxxxxxxxxxx
Subject: Re: Metastock - how to capture closing price on buy signal?
Did you try Ref(c,+xxxx)?
Regards
Angel
Bob Hellen wrote:
> I'm a relatively new user of Metastock 6.52 and want to improve my trading
> rules using the system tester. I want to compare subsequent price
movements
> with the closing price when my system last triggered a buy signal but
can't
> find a way of capturing the closing price at that date. (it isn't as
simple
> as looking for "value when" the last occurrence of that rule occurred
> -there may have been several since I entered long). Does anyone know how I
> can do this? Ideas much appreciated.
|