PureBytes Links
Trading Reference Links
|
Graham,
Per usual you are right on the money. Thanks so much for helping us
less qualified users. Joe
--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
>
> perhaps you could try
>
> buy = yourBuyCond
> short=yourShortCond
>
> buy = exrem(buy,short);
> short=exrem(short,buy);
>
>
> an alternative could be
>
> buy = yourBuyCond
> short=yourShortCond
>
> buy = buy and ref( barssince(buy)>barssince(short), -1);
> short = short and ref( barssince(buy)<barssince(short), -1);
> I think the logic is correct?
>
> On 10/24/05, joeemmett2000 <joeemmett@xxxx> wrote:
> > I am testing a system using `Long' and `Short'. I was trying to figure
> > a way to use a "Stop" that would keep me out of that position until
> > the next opposite signal. If I am `Short' on a trade and my `Stop' is
> > triggered, I will be reentered in a `Short' position depending on when
> > my `Re-Entry Delay' is set. If I am stopped out on a `Short' trade
> > I want my next trade to be on my next `Long' signal.
> >
> > Is there a way to modify the code below to do what I want?
> >
> >
ApplyStop(stopTypeLoss,stopModePercent,Optimize("maxlossstop",10,1,25,1),
> > ExitAtStop=2,False,ReEntryDelay=1);
> >
> > Thanks, Joe
> >
> >
> >
> >
> >
> >
> >
> > Please note that this group is for discussion between users only.
> >
> > To get support from AmiBroker please send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://e-wire.net.au/~eb_kavan/ab_write.htm
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|