PureBytes Links
Trading Reference Links
|
Thanks Christoper,
That worked. I was looking to use that as my actual stop, but it
doesn't really matter. In reality I can apply a 10% max stop loss in
the settings of AA. What I think I will try to code is a trailing
stop based on a price just below the last pivot low of the chart and
use that to follow up the stop. I need to think about that one for
awhile though.
Thanks,
Bret
--- In amibroker@xxxxxxxxxxxxxxx, "Christoper" <turkey@xxxx> wrote:
>
> 1 - Revert back to your old Sell conditions... ie. Sell = Cross(...);
>
> 2 - Add just the Applystop *on its own line*;
>
> ...
> Applystop(2,1,10,1,True,25);
> ...
>
> Try that out.
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Quad Rate Serial Abby"
> <quad_pumped_abby@xxxx> wrote:
> >
> > I am setting some conditions for volume, etc., and buying if the close
> > is a new 52 week high. I'm trying to set a trailing stop loss at 10%
> > with a 25 bar re-entry delay to avoid wash rules. I used the following
> > applystop code:
> >
> > Sell = ApplyStop ( 2, 1, 10, 1, True, 25 );
> >
> > which is (if I'm doing this right):
> >
> > Sell = ApplyStop ( stopTypeTrailing, stopModePercent, 10% trailing
> > stop, check High-Low prices and exit intraday on price equal to stop
> > level on the same bar when stop was triggered, stop can vary during
> > the trade, 25 bars to reenter symbol );
> >
> > I get a sell arrow immediately after a buy arrow. Is this because I
> > have to set trade delays or something? Any input would be
appreciated.
> >
> > Thanks,
> >
> > Bret
------------------------ Yahoo! Groups Sponsor --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|