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

Re: [amibroker] Exit help needed



PureBytes Links

Trading Reference Links

apologies added response to wrong post

On 9/2/05, Graham <kavemanperth@xxxxxxxxx> wrote:
> and if you read all the information in the help screens about
> applystop you will no doubt have noticed this bit of help
> 
> ###############################################
> 
> For visual conformation of ApplyStop function, add the following lines
> below your ApplyStop formula in Indicator Builder:
> 
> Equity(1); // THIS EVALUATES STOPS
> 
> Plot(Sell==4,"ApplyStop Sell",colorRed,1|styleOwnScale);
> Plot(Cover==4,"ApplyStop Cover",colorGreen,1|styleOwnScale);
> 
> from equity comments
> 
> Depending on kind of the stop various values
> are written back to sell/cover array to enable you to distinguish if
> given signal was generated by regular rule or by stop.
> 
> 1 - regular exit
> 2 - max. loss
> 3 - profit target
> 4 - trailing
> 5 - n-bar stop
> 6 - ruin stop
> 
> ###############################################
> 
> 
> 
> --
> 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
> 
> On 9/2/05, neurotic self <neuroticself@xxxxxxxxx> wrote:
> > Hi Owen,
> >
> > > Thomasz, is there any hope of adding an option to ApplyStop() such
> > > that the exit occurs at Point A until some criterion is met and then
> > > switches to Point B?
> >
> > I shouldn't really reply for TJ, but it's already there. From the help:
> >
> > ApplyStop( type, mode, amount, exitatstop, volatile = False, ReEntryDelay = 0 )
> >
> > volatile -
> > decides if amount (or distance) (3rd parameter) is sampled at the
> > trade entry and remains fixed during the trade (Volatile = FALSE - old
> > behaviour) or if can vary during the trade (Volatile = TRUE)
> >
> > So you just have to set Volatile = TRUE and use an array (formula) for
> > the "amount  parameter
> >
> > hope this helps,
> > neuro
> >
> > --
> > Janeczko for President!
> >
> >
> >
> > 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 --------------------~--> 
Help tsunami villages rebuild at GlobalGiving. The real work starts now.
http://us.click.yahoo.com/njNroD/KbOLAA/cosFAA/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/