PureBytes Links
Trading Reference Links
|
Chuck,
Yes I have a buy signal taking only the first one buy as I mentioned in
the last post and I have a normal trailing stop sell.
Then after the buy/sell I have the 2 applystops then the equity(2) last.
I do not have any ExRem statements which is new to me and maybe I
could use that for something! not sure yet.
> Buy = cross(N,0);
I'll give that a go too thanks.
Cheers Glenn
--- In amibroker@xxxxxxxxxxxxxxx, "Chuck Rademacher"
<chuck_rademacher@x> wrote:
> Do you have an Equity(1) or ExRem statement somewhere after your
Buy? Your
> original example showed it, but you didn't mention it in your last post.
> Do you have a sell signal, or just the two stops?
>
> A "cross" might be better as in the following example:
>
> Buy = cross(N,0);
>
> That will give you just one buy signal. Although the code you have
should
> just give you one as well.
> -----Original Message-----
> From: Glenn [mailto:glennokb@x...]
> Sent: Tuesday, July 15, 2003 6:36 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Help with SetTradeDelays please!
>
>
> Chuck,
>
> Thanks I have tried that but for some reason on all the stocks it picks
> up, each of the last 3 days have a buy signal on them.
>
> Should only be a single signal as I have the code:
>
> Buy=N AND Ref(N,-1)==0;
>
> BTW, N= the entry code. I only take the first signal not any follow
ups.
>
> Cheers Glenn
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Chuck Rademacher"
> <chuck_rademacher@x> wrote:
> > I think that I was just reading more into what you said than what
you
> meant.
> >
> > It should work as you intend if you set the delay = one. That will
> give
> > you a signal after the close today to buy at the open tomorrow.
Your
> stops
> > will be based on your buy price.
> >
> > Part of the confusion comes from where you say "How do I setup
this
> scan
> > with no delay for the entry. ie: to alert me to buy at tommorrows
> open?"
> >
> > Buying at tomorrow's open is actually a delay of one, not zero.
> > -----Original Message-----
> > From: Glenn [mailto:glennokb@x...]
> > Sent: Tuesday, July 15, 2003 6:12 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] Re: Help with SetTradeDelays please!
> >
> >
> > Chuck,
> >
> > Thanks for your reply.
> >
> > Guess I didn't explain to well. Here goes...
> >
> > At the CLOSE of today I do a scan.
> >
> > If any stocks come up I'll buy them at tomorrows OPEN.
> >
> > I want this OPEN price to be used in calculating the profit exit or
> > initial
> > stop. These stops may occur weeks from when I buy it.
> >
> > The problem I noticed is the DAY that the profit and initial stop is
> > calculated.
> >
> > Cheers Glenn.
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Chuck Rademacher"
> > <chuck_rademacher@x> wrote:
> > > You're confusing me, too, on several points.
> > >
> > > 1. If you want to buy tomorrow's open based on what you
know
> today
> > > (O,H,L,C), you should use a delay of one (1) day.
> > >
> > > 2. I do not understand why you would sell it at the open on the
> same
> > day
> > > that you bought it at the open. Why not just give money to
your
> > broker and
> > > not bother with the trade?
> > >
> > >
> > > -----Original Message-----
> > > From: Glenn [mailto:glennokb@x...]
> > > Sent: Tuesday, July 15, 2003 5:46 AM
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Subject: [amibroker] Help with SetTradeDelays please!
> > >
> > >
> > > Hi,
> > >
> > > I have setup a scan in the AA for my EOD system and the
delays
> are
> > > confusing me.
> > >
> > > How do I setup this scan with no delay for the entry. ie: to
alert
> me
> > to
> > > buy at tommorrows open and here's the tricky bit, I want the
sell
> > signal
> > > to use the open of the day I actually bought it.
> > >
> > > I want this for calculating the profit exit and the initial stop
> ie:
> > NOT
> > > the
> > > open of the day that the I was alerted.
> > >
> > > I am using this following the buy/sell code:
> > >
> > > --------------------8<-----------------------
> > >
> > > ApplyStop( stopTypeProfit, stopModePercent, 25, False,
False);
> > >
> > > ApplyStop( stopTypeLoss, stopModePercent, 20, False, False);
> > >
> > > PositionSize=5000;
> > >
> > > SetTradeDelays( 0, 0, 0, 0 );
> > >
> > > Equity(1);
> > >
> > > --------------------8<-----------------------
> > >
> > > Probably something really simple but it escapes me :(
> > >
> > > Do I need to run 2 scans one for the buy (as above) and a 2nd
> with
> > > SetTradeDelays( 1, 0, 0, 0 ); ?
> > >
> > >
> > > TIA
> > >
> > > Cheers Glenn
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to:
> amiquote@xxxxxxxxxxxxxxx
> > (Web page:
http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Save up to 80% on top-quality inkjet cartridges & refill kits at Myinks.com
Free shipping on orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5702
http://us.click.yahoo.com/YrYXfA/AyWGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|