PureBytes Links
Trading Reference Links
|
This is what it looked like. Is this what was intended? Not too sure how
you would vary this if already in the trade. Results were:
Total net profit 11512.29 Open position value -4826.81
Percent gain/loss 1151.23 Annual percent gain/loss 634.74
Initial investment 1000.00 Interest earned 0.00
Current position Long Date position entered 3/7/00
Buy/Hold profit 14879.02 Days in test 662
Buy/Hold pct gain/loss 1487.90 Annual B/H pct gain/loss 820.37
Total closed trades 25 Commissions paid 0.00
Avg profit per trade 653.56 Avg Win/Avg Loss ratio N/A
Total long trades 25 Total short trades 0
Winning long trades 25 Winning short trades 0
Total winning trades 25 Total losing trades 0
Amount of winning trades 16339.09 Amount of losing trades 0.00
Average win 653.56 Average loss N/A
Largest win 2769.17 Largest loss 0.00
Average length of win 13.08 Average length of loss N/A
Longest winning trade 28 Longest losing trade 0
Most consecutive wins 25 Most consecutive losses 0
Total bars out 145 Average length out 5.58
Longest out period 77
System close drawdown 0.00 Profit/Loss index 100.00
System open drawdown -88.15 Reward/Risk index 99.24
Max open trade drawdown -7730.13 Buy/Hold index -55.07
What about short side?
dr
-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Glen Wallace
Sent: Sunday, April 30, 2000 7:09 PM
To: MetaStock listserver
Subject: Re: System Tester - buy price
Richard:
I'm assuming you need to define "BuyPrice" for your sell signal. How about:
{Enter long}
{System Tester options are set to enter on the Close}
BuyTrigger:=(MOV(C,10,E) - MOV(C,30,E)) / MOV(C,30,E);
BuyTrigger > 0.05
{Close long}
BuyTrigger:=(MOV(C,10,E) - MOV(C,30,E)) / MOV(C,30,E);
BuyPrice:= If(PREV <= 0,
{Then did you go long today?}
If(BuyTrigger > 0.05, CLOSE, 0),
{Else did you exit today?}
If(Close >= PREV*(1+BuyTrigger), -PREV,
PREV));
BuyPrice < 0
In this formula, BuyPrice is the close on the date BuyTrigger exceeds your
threshold. If you are in a trade and have just received a sell signal,
BuyPrice is redefined as a negative, and System Tester is told to close your
long position. If you are not currently in a trade, BuyPrice is assigned a
zero value and System Tester is told to watch for a new long entry.
If you need to define "BuyPrice" for further manipulation in your entry
conditions, that will be a little more involved and we can look at that
separately.
Hope this helps.
----- Original Message -----
From: Richard Bone
To: metastock@xxxxxxxxxxxxx
Sent: Friday, April 28, 2000 1:55 AM
Subject: System Tester - buy price
I'm trying to get a reference to the buy price ... and other function values
at the time of the buy.
For example:
Enter Long:
BuyPrice:=C;
BuyTrigger:=(MOV(C,10,E) - MOV(C,30,E)) / MOV(C,30,E);
BuyTrigger > 0.05 { Enter Long if 10pd EMA 5% greater than 30pd EMA }
Close Long:
C { current } >= BuyPrice * (1 + BuyTrigger) { Set target sell based on
Buy }
Problems I find are that the Enter Long condition may or may not remain for
the duration of the trade. For example, Enter Long condition may hold today
and tomorrow but then the stock can fall for 2 weeks until it rises to above
the buy price. Of course, if we know that the stock will only rise then its
not so hard.
So, has anyone developed a formula or technique that will do this?
I have used the Stops | Profit Target but it only accepts fixed Points and
Percentages ... not a function of Buy or attributes at the time.
Richard Bone
Attachment Converted: "f:\eudora\attach\BuyPrice system test.gif"
|