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

Re: [amibroker] Referencing buy attributes to sell



PureBytes Links

Trading Reference Links

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/ 
> 
> 
>