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

Re: engulfingbear()



PureBytes Links

Trading Reference Links

To HHP and others who have written

Thanks for your help.

I also use the binary for viewing the "event" on the chart. Your code worked
fine. I added Opt1 for the days and stepped it from 3 days to 15 days by
intervals of 2.

Since EngulfingBear() is suppose to be a topping or turn indicator the
question arises as to how many days-in-trade would be needed for the turn to
take place.

Once the 7 tests on "EngulfingBear()" have been run in System Tester...
go to reports for the 1st test -->
click the trades tab --->
right-click the highlighted line -->
Choose "save to file" --->
File will save as a ".txt" file in location

After each test is saved ... open ".txt" files with Excel
They are tab delimited
delete unnecessary columns (B, C, D, E, F and I)
sort the trade and profit columns together to get rid of the "out" rows ...
only leaving the short trades
go to Tools --> Data Analysis
run descriptive stats and histogram etc.
graph the data and results

all of the above tasks (opening and maintenance, etc.) can be run as a
looping VBA module from a control workbook (where all the code is kept) and
is very fast

consolidate the results

Am still working through the various formats for viewing the results.
Will post a summary chart later

Thanks again for your help

Best regards

Walter




----- Original Message -----
From: "HHP" <hhp@xxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Thursday, May 11, 2000 4:12 AM
Subject: Re: engulfingbear()


| Ian,
|
| Probably not the best way, but it's one way.  I was just trying to
| respond to Walter's question.
|
| In the past I have tried to create a binary indicator that kicked up to
| 1 when the trade entry condition occurred and returned to 0 on the exit
| condition, so that any secondary entry conditions were locked out during
| the trade.  I recall MStk complaining about circular references, but it
| might work with this kind of simple exit.
|
| HHP
| =================
|
| Ian Burgoyne wrote:
| >
| > HHP, is that the best way to code an exit if you want to specify holding
an
| > open trade for a specific number of days? For example if you had a set
of
| > conditions for entering long, and wanted to stay in the trade for 3 days
| > would the exit be -
| > EXIT LONG
| > ref(conditions of enter long,-3)
| >
| > I tried working with barssince in the System Tester to exit from a
position
| > after a specific number of days but this didn't work because if the
| > condition(s) was met AFTER entering the position the exit would be from
the
| > most recent occurrence of the "enter long" condition thus keeping the
trade
| > open for longer than specified.
| > regards Ian
| >
| > >From: HHP <hhp@xxxxxxxx>
| > >Reply-To: metastock@xxxxxxxxxxxxx
| > >To: metastock@xxxxxxxxxxxxx
| > >Subject: Re: engulfingbear()
| > >Date: Wed, 10 May 2000 15:51:57 -0700
| > >
| > >Ref(Engulfingbear, -3)
| > >As of the current day, there was an EngulfingBear three days previous
| > >(so exit today).
| > >
| > >HHP
| > >==============
| > >
| > >Walter Lake wrote:
| > > >
| > > > Thank you and others for your help.
| > > >
| > > > It works fine ... although I don't understand the use of "-" which I
use
| > >for
| > > > "yesterday(s)" vs "+" for tomorrow(s).
| > > >
| > > > Will post the path and instructions on how to get the XL results for
| > >those
| > > > that asked.
| > > >
| > > > Thanks again
| > > >
| > > > Walter
| > > >
| > > > ----- Original Message -----
| > > > From: "HHP" <hhp@xxxxxxxx>
| > > > To: <metastock@xxxxxxxxxxxxx>
| > > > Sent: Wednesday, May 10, 2000 3:51 PM
| > > > Subject: Re: engulfingbear()
| > > >
| > > > | Have you tried:
| > > > | Ref(Engulfingbear(), -3)
| > > > | ?
| > > > |