hi,

yes that is correct.

same result would be:

Sell = L < Valuewhen(Buy,L);

when you make a plot of valuewhen(Buy,L) and Ref(L,-Barssince(Buy))  you find 
they give the same result. Ref is a function that supports variable periods:

http://www.amibroker.com/guide/a_varperiods.html

regards, Ed




From: rise_t575 
Sent: Wednesday, August 04, 2010 2:51 AM
To: amibroker@yahoogroups.com 
Subject: [amibroker] Exit if L < L of Entry Bar


  
Hello,

What would be the correct code for this?

Is this one 100% correct:

Sell = L < Ref(L, - BarsSince(Buy));

Or do I have to use the the EXREM() function somewhere within the formula (I 
don't have any experience with this one)?

Thanks in advance!



Reply via email to