PureBytes Links
Trading Reference Links
|
<SPAN
class=618235614-03032003>Andy,
is it
possible you are buying and selling on the same bar? To check you could turn off
that option in settings.....
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: andy_kovacs
<andy_kovacs@xxxxxxxxxxx> [mailto:andy_kovacs@xxxxxxxxxxx]Sent:
Monday, March 03, 2003 8:51 AMTo:
amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Double buy arrows using
exrem??? Bug or (probably) user-error?Using this code,
I sometimes get two consecutive buy (or short) arrows:Buy=
condition1;Short= condition2;Sell= C<Ref(longstop,-1);
Cover = C>Ref(shortstop,-1); Buy=ExRem(Buy,
Sell);Sell=ExRem(Sell,
Buy);Short=ExRem(Short,Cover);Cover=ExRem(Cover,
Short);PlotShapes(IIf(Buy,1,IIf(Short,2,IIf(Sell,4,IIf(Cover,3,0)))),IIf(Buy
OR Cover,colorGreen,IIf(Short OR Sell,colorRed,0)),0,IIf(Buy OR
Cover,L,H));Any ideas why?In understand Buy=ExRem(Buy, Sell)
to mean I can ONLY get a buy signal after a sell has been generated. So what
happens if the next signal after a buy is a short? Is the buy just closed or
is a short opened at the same time?Also, in a non-always in system,
i.e. using cover and sell as stops, is the code marked ***
vaild?Buy=ExRem(Buy, Sell or short); ***Sell=ExRem(Sell,
Buy);Short=ExRem(Short,Cover or buy); ***Cover=ExRem(Cover,
Short);Thanks.AndySend
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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.
|