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

RE: [amibroker] Help! AFL code Sell =



PureBytes Links

Trading Reference Links

Hello Lee

>From your words; "That is, sell when the price drops below the lowest low of the last 3 days." 
My interpretation is that you require the function to sell when the low of today drops below the lowest low of the PREVIOUS 3 days, so all up we are talking about a four day period. Using the ref function you can find the lowest low of the previous 3 days as follows. (if you only really want to look back 2 days then just change the 3 to 2 in the function)

/* Created using PowerScan date: 16 Jul 2003
The Low Price is the lowest it has been for the previous 3 bars */

Sell = Ref( LLV( Low, 3 ), -1 ) > Low;


Regards,
William Peters
www.amitools.com




-----Original Message-----
From: cois9577 [mailto:leecoisman@xxxxxxxxxxx]
Sent: Wednesday July 16, 2003 2:34 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Help! AFL code Sell =


I have the following line in my automatic analysis.

Sell = Close < LLV(Low,1);

I can change The 1 to a 2 or a 3 and the result is always the same.
I get buy signals, but there is never a sell signal. I will have a
positive return for the system sometimes and at other times it will be
0.00

I also tried sell = cross (llv (low,3),low); which I think is what I
really want to do.  That is, sell when the price drops below the
lowest low of the last 3 days.

I get an out , and then an open long in all the positions on the report.
Nothing after that. The quotes are from the beginning of 1990 to the
present, so there should be enough time to generate a sell signal.

Any Ideas what I'm doing wrong?

TIA
Lee



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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/ 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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/