PureBytes Links
Trading Reference Links
|
Hello,
Try this:
sell=valuewhen(buy,CLOSE + 2 * ATR(20));
Anthony
Mark B wrote:
> 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
>
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT
>
> 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 the Yahoo! Terms of Service.
|