PureBytes Links
Trading Reference Links
|
TJ,
The reason I introduced the complexity of using Stephane's dll in response
to Mark's question was for the case where stoplosses, profit targets, and
trailing stops are interdependent on the initial buyprice, which needs to be
constant throughout the trade in order to invoke the proper stop signal.
This goes back to our emails we (you and Anthony and I) had way back in
March of this year. Our problem was solved when Stephane wrote his
RemBuy.dll code and uploaded it onto the files section of the Yahoo groups
site. As I understand it, unless the AB coding has changed since then, AFL
cannot handle these types of stoplosses without invoking script. If Mark is
not interested in this complexity, then your ApplyStop approach is perfectly
fine. Am I right about all of this?
Al V.
----- Original Message -----
From: "Tomasz Janeczko" <amibroker@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, September 29, 2002 11:39 AM
Subject: Re: [amibroker] Referencing buy attributes to sell
> Mark,
>
> The solution is one line:
>
> ApplyStop( stopTypeProfit, stopAmountPoints, 2 * ATR( 20 ), TRUE );
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "Mark B" <mark@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Sunday, September 29, 2002 11:32 AM
> Subject: [amibroker] Referencing buy attributes to sell
>
>
> > Hi All from a new AmiBroker user. I just love it so far, I've made more
> > progress in backtesting in the last week in Ami than in MetaStock in the
> > last few months.
> >
> > Anyway, a question.
> >
> > What I want to do is base sell conditions based on conditions at time of
> > buying. I might want to use a profit target based exit which depends on
a
> > price calculated on the day the buy condition is generated. An example
would
> > be I want to sell when the equity reaches the value of CLOSE + 2 *
ATR(20)
> > on the day the buy signal is generated. Any ideas how I can achieve this
in
> > AFL?
> >
> > I have more similar questions, but let's cover one at a time :)
> >
> > Cheers,
> >
> > Mark
> >
> >
> >
> >
> > 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/
>
|