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

[amibroker] buy arrow is late



PureBytes Links

Trading Reference Links





This AFL stuff is finally starting to 
make a little sense.  I created this scan to find very short consolidations 
followed by a day where the open =close.  It worked OK, but the buy arrow 
appeared on the day AFTER open=close, and I wanted it to appear on the very 
day that open=close.    I have enclosed a chart that  shows 
what I am describing.  I would appreciate finding out how to make the buy 
arrow appear the very day that open = close.  Ron D
 
 
//This scan Buys when there are a few days of consolidation where 
the open is within 1% of the close. The buy arrow appears when an open=close day 
appears at the end of this series of short candles. 
key=abs<FONT 
size=1>(O-C)<=.001;
Buy=(O=C) AND <FONT color=#0000ff 
size=1>Ref(key,-<FONT color=#ff00ff 
size=1>1) AND <FONT color=#0000ff 
size=1>Ref(key,-<FONT color=#ff00ff 
size=1>2) AND V<=<FONT color=#0000ff 
size=1>MA(V,<FONT color=#ff00ff 
size=1>8) AND <FONT color=#0000ff 
size=1>MA(V,<FONT color=#ff00ff 
size=1>50)>=<FONT color=#ff00ff 
size=1>20000 AND C><FONT 
color=#ff00ff size=1>1 AND C<<FONT 
color=#ff00ff size=1>100;
Sell=(0<FONT 
size=1>);
PlotShapes( shapeUpArrow * Buy + 
shapeDownArrow * Sell, <FONT color=#0000ff 
size=1>IIf( Buy, colorGreen, colorRed ) 
);
<FONT face=Arial color=#000000 
size=2>






Yahoo! Groups Sponsor


  ADVERTISEMENT 









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 the Yahoo! Terms of Service.



Attachment:
DWST.JPG

Attachment: Description: "Description: JPEG image"