It has been more than 1-2 years that I have not used Amibroker to back test
some new ideas.  It's time to re-learn it. :>

 

Thanks.

 

Clement

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Tomasz Janeczko
Sent: Wednesday, May 23, 2007 7:18 PM
To: [email protected]
Subject: Re: [amibroker] How to write a simple stop/exit?

 

Hello,

 

You don't need to write this as Sell condition.

 

Set Maximum loss stop in the settings to 1 dollar or use ApplyStop

http://www.amibroker.com/f?applystop


Best regards,
Tomasz Janeczko
amibroker.com

----- Original Message ----- 

From: Clement Chin <mailto:[EMAIL PROTECTED]>  

To: [email protected] 

Sent: Wednesday, May 23, 2007 12:53 PM

Subject: [amibroker] How to write a simple stop/exit?

 

Hi,

 

I use 60-minute chart to entry and exit. I would like to buy with
condition01 on previous bar. I sell at Close on current entry bar or the
current Low is lower than prior low or a maximum of $1 loss. Please advise.

 

Buy        = ref(Condition01,-1);

Sell         = L<ref(L,-1) or ????

 

TIA.

 

Clement

 

 

__________ NOD32 2277 (20070518) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com

<<image001.jpg>>

<<image002.jpg>>

Reply via email to