PureBytes Links
Trading Reference Links
|
Hello,
No ApplyStop() does "return" any value.
To generate exit signals using ApplyStop in indicator builder you have
to: define ApplyStops of your choice (1 or more).
Add Equity(1); after that and add 1 or more AlertIF statements.
Example:
ApplyStop( stopTypeLoss, stopModePercent, 6, 1 );
/// ... you may add more ApplyStops there
Equity( 1 ); // This causes that stops are evaluated and sell/cover arrays are filled
// with 2 - max loss, 3 - profit target, 4 - trailing stop
AlertIF( sell == 2, "", "Long Max Loss Stop", 0, 15, 0 );
AlertIF( cover == 2, "", "Short Max Loss Stop", 0, 15, 0 );
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Rick Parsons" <RickParsons@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, October 03, 2002 4:03 PM
Subject: RE: [amibroker] AlertIF behavior
> Tomasz,
> If we have a mechanical Buy/Sell/Short/Cover system that we develop in AFL
> in the AA window, can we place this entire system in the Indicator Builder
> and put it in a pane with plot function and Alertif based on
> Buy/Sell/Short/Cover? I have just started to try this but there is no way
> to backtest it. Are there any limitations to this?
>
> However, how does one trap the Applystop function and put it into an AlertIf
> ? From a AA backtest, the following statement seemed to work:
>
> AlertIf( ApplyStop( 0, 1, 6, 1 ),"", "Stop", 0, 15, 0 );
>
> Is this acceptable or do you see any problems with this?
>
> Thanks,
>
> Rick
>
>
> -----Original Message-----
> From: Tomasz Janeczko [mailto:amibroker@x...]
> Sent: Thursday, October 03, 2002 4:32 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] AlertIF behaviour
>
>
> Hello,
>
> By default AlertIF looks for this and one bar previous and
> reports signals when they FIRST appeared.
>
> Since your condition was true also yesterday - AmiBroker
> reports that the alert was valid since YESTERDAY
> (this is useful because you know that if you will
> act today - you will be delayed from the signal)
>
> To switch this off - to look only for current bar you should
> set LOOKBACK parameter (the last one) to zero.
>
> AlertIf( Close > (H/L)/2,"", "signal", 0, 15, 0 );
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "Frans Manders" <f.manders@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Thursday, October 03, 2002 10:16 AM
> Subject: [amibroker] AlertIF behaviour
>
>
> > Hello group,
> >
> > The last few (beta) releases I have trouble with the AlertIF function. The
> > function is triggered however the signal is dated one day in the past. A
> > signal for today is recongnized, but the message in the alert output
> window
> > is dated yesterday. See the attachtment. I checked al the setting multiple
> > times, the country settings for my computer and ran already 1000 tests.
> > Probable I missing something, or maybe somebody is experiencing the same
> > problems.
> >
> > regards,
> >
> > Frans.
> >
> >
> >
> > 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/
> >
> >
>
>
>
> 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/
>
>
>
>
> 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/
>
>
>
|