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

Re: engulfingbear()



PureBytes Links

Trading Reference Links

Seems you are right Ken about using the Inactivity Stop. I also saw the post 
from Equis which supports your suggestion. I will definitely give it a try.
thanks for the tip.
Ian


>From: iamken <iamken@xxxxxxxxxxxxxxx>
>Reply-To: metastock@xxxxxxxxxxxxx
>To: metastock@xxxxxxxxxxxxx
>Subject: Re: engulfingbear()
>Date: Thu, 11 May 2000 14:59:10 -0400
>
>Ian,
>
>Good point and something that I had not noticed with the BarsSince since I 
>first
>used it in a test of sorts last week..  I ran a different test just now and 
>the
>Ref function seems to present it own set of problems.  So unless I'm doing
>something wrong, it looks like the Inactivity Stop for a "n" bar exit might
>still the best way to go with entry conditions that occur very frequently.
>
>Here's the little "test" I just tried:
>
>Enter Long:
>H>Ref(H,-1)
>
>The following doesn't exit where I want because of the frequency of the 
>Enter
>Long condition:
>Close Long:
>BarsSince(H>Ref(H,-1))=10
>
>.....nor does this:
>Close Long:
>Ref(H>Ref(H,-1) ,-10)
>
>But using the Inactivity Stop still does the trick.  Thanks for bringing 
>this
>up.
>
>Ken
>
>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)
> > > > | ?
> > > > |
> > > > | HHP
> > > > | ===================
> > > > |
> > > > | Walter Lake wrote:
> > > > | >
> > > > | > The suggestion to use
> > > > | >
> > > > | > Enter Short = engulfingbear()
> > > > | >
> > > > | > in System Tester works fine ... however
> > > > | >
> > > > | > Close Short = engulfingbear()+3
> > > > | >
> > > > | > doesn't work ... neither does the use of any form of "Ref(C,+3)"
> > >etc.
> > > > | > setting stops also doesn't appear to work.
> > > > | >
> > > > | > Everything that I've tried produces unequal length trades not a
> > >fixed
> > > > length
> > > > | > trade, i.e., 3 day, 5 day, and 10 day trades.
> > > > | >
> > > > | > The saving of the trades to file and then opening the file in 
>Excel
> > >and
> > > > the
> > > > | > production of a distribution, histogram and descriptive stats is
> > >very
> > > > easy
> > > > | > and programmable in VBA
> > > > | >
> > > > | > So any suggestions on how to program the close of the long/short 
>for
> > >the
> > > > | > "engulfingbear" event would be appreciated.
> > > > | >
> > > > | > Best regards
> > > > | >
> > > > | > Walter
> > > > | >
> > > > | > ----- Original Message -----
> > > > | > From: "Walter Lake" <wlake@xxxxxxxxx>
> > > > | > To: <metastock@xxxxxxxxxxxxx>
> > > > | > Sent: Wednesday, May 10, 2000 7:32 AM
> > > > | > Subject: Re: nasty, nasty
> > > > | >
> > > > | > | Hi Steve
> > > > | > |
> > > > | > | Oh yes .... I discovered that all of my System Tester code was 
>for
> > > > | > indicator
> > > > | > | crosses etc and nothing for specific events, i.e., Inside 
>Days,
> > >Doji,
> > > > etc.
> > > > | > |
> > > > | > | I found that I didn't have a clue on how to set up a system 
>test
> > >for
> > > > | > | "events".
> > > > | > |
> > > > | > | How would I set up a standardized run that would capture all 
>of
> > >the
> > > > | > | occurrences of the event and what happened over successive 
>trading
> > > > days (1
> > > > | > | to 3, 1 to 5 and 1 to 10 days etc.).
> > > > | > |
> > > > | > | Obviously I would want to test both longs and shorts.
> > > > | > |
> > > > | > | Equity curve, profitability, is not important only the 
>capturing
> > >of
> > > > the
> > > > | > | number of occurrences and immediate results.
> > > > | > |
> > > > | > | Any suggestions from anyone would be appreciated. VBA and XL
> > >coding
> > > > have
> > > > | > | diminished my MS code writing skills and warped my thinking 
><G>
> > > > | > |
> > > > | > | Best regards
> > > > | > |
> > > > | > | Walter
> > > > | > |
> > > > | > | ----- Original Message -----
> > > > | > | From: "Steve Karnish" <kernish@xxxxxxxxxxxx>
> > > > | > | To: <metastock@xxxxxxxxxxxxx>
> > > > | > | Sent: Tuesday, May 09, 2000 9:31 PM
> > > > | > | Subject: Re: nasty, nasty
> > > > | > |
> > > > | > |
> > > > | > | | Walter,
> > > > | > | |
> > > > | > | | Are you sure you wanna go there?
> > > > | > | |
> > > > | > | | Steve Karnish
> > > > | > | | Cedar Creek Trading
> > > > | > | | http://www.cedarcreektrading.com
> > > > | > | | ----- Original Message -----
> > > > | > | | From: Walter Lake <wlake@xxxxxxxxx>
> > > > | > | | To: <metastock@xxxxxxxxxxxxx>
> > > > | > | | Sent: Tuesday, May 09, 2000 5:45 PM
> > > > | > | | Subject: nasty, nasty
> > > > | > | |
> > > > | > | |
> > > > | > | | > Hi Steve
> > > > | > | | >
> > > > | > | | > Thanks for the list of TA goodies.
> > > > | > | | >
> > > > | > | | > Do you ... or does anyone else have System Tester code 
>written
> > >to
> > > > list
> > > > | > | the
> > > > | > | | > occurances of "nasty, nasty".
> > > > | > | | >
> > > > | > | | > I assume that you use engulfingbear() as your signal to 
>enter
> > >and
> > > > then
> > > > | > | ...
> > > > | > | | > how many days would you set before exit? I assume that you
> > >could
> > > > use
> > > > | > the
> > > > | > | | > optimizer to set different days-in-trade.
> > > > | > | | >
> > > > | > | | > Once the trades are listed in the system tester, then they 
>can
> > >be
> > > > | > "copy
> > > > | > | | and
> > > > | > | | > pasted" into Excel to plot the distribution and stats.
> > > > | > | | >
> > > > | > | | > It'll be interesting to get some data on this "bad boy".
> > > > | > | | >
> > > > | > | | > Best regards
> > > > | > | | >
> > > > | > | | > Walter
> > > > | > | | >
> > > > | > | | > ----- Original Message -----
> > > > | > | | > From: Steve Karnish
> > > > | > | | > To: metastock@xxxxxxxxxxxxx
> > > > | > | | > Sent: Tuesday, May 09, 2000 12:48 PM
> > > > | > | | > Subject: Re: (Market) A few trades I am looking at
> > > > | > | | >
> > > > | > | | >
> > > > | > | | > Jeff,
> > > > | > | | >
> > > > | > | | > Sugar is always a quirky market to trade...but, we whack 
>at it
> > > > from
> > > > | > time
> > > > | > | | to
> > > > | > | | > time.  Currently, we're waiting for a retracement to the 
>6.10
> > > > level.
> > > > | > We
> > > > | > | | > feel there is evidence gathering that will allow us to
> > >position
> > > > lower:
> > > > | > | | >
> > > > | > | | > 1.  Monday's "bearish engulfing candle"...nasty, nasty
> > > > | > | | > 2.  The curl on the 13 day moving average looks like Elvis
> > > > Presley's
> > > > | > lip
> > > > | > | | > 3.  The major trendline is at ~6.10
> > > > | > | | > 4.  The 144 day moving average is at ~6.10
> > > > |
> >
> > ________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com