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

Re: [amibroker] Re: Applystop trailing stop calculation



PureBytes Links

Trading Reference Links

It is not very well documented and I have never used trailing stop myself so can't give you a definite answer.

If I were you, I would probably find out by myself. Just run a backtest and compare the trade price of trailing stops with calculations based on the following:
Yesterday's high or close, today's open or high.

AB is evolving so fast, and some details are not very well documented. I have found myself use _TRACE() a lot to figure out how AB does a lot of calculations, expecially within CBT which I use extensively.



  ----- Original Message ----- 
  From: jlami11 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Friday, November 03, 2006 9:40 AM
  Subject: [amibroker] Re: Applystop trailing stop calculation


  Hi,

  sorry maybe i explained poorly. What i mean is how is the trailing
  stop value calculated. 

  e.g.For long trade using 3*ATR as trailing stop. Is the ATR value
  subtracted from yesterdays Close price or from todays Open price etc etc.?
  or is it done in some other way entirely?

  regards.

  --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> wrote:
  >
  > Applystops work on the High and Low prices crossing the stop value
  > 
  > 
  > -- 
  > Cheers
  > Graham
  > AB-Write >< Professional AFL Writing Service
  > Yes, I write AFL code to your requirements
  > http://www.aflwriting.com
  > 
  > 
  > 
  > On 03/11/06, jlami11 <jlami11@xxx> wrote:
  > >
  > > Thanks Graham and steve for responses to other message.
  > >
  > > I have another quesiton about the trailing stop that is used in
  > > Applystop: Is the amount of whatever trailing stop you are using
  > > applied to previous days closing price? or does it work in another
  way?
  > >
  > > Thanks any help appreciated.
  > >



   
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 11/3/2006