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

RE: [amibroker] Difficulty with BarsSince()...



PureBytes Links

Trading Reference Links







Keith

Maybe you could try pushing the Buy signal
to zero with something like

IIF(barsSince(Sell=1)<=3,
Buy=0, your buy signal);

I am no expert, still learning myself

Graham

 

<span
>-----Original Message-----
From: Keith Bennett
[mailto:kbennett@xxxx] 
Sent: Monday, 28 October 2002 6:22
PM
To: amibroker@xxxxx
Subject: [amibroker] Difficulty
with BarsSince()...

<font size=3
face="Times New Roman"> 

<font size=2
face="Courier New">Hi,<font
size=2 face="Courier New">

Could someone please help me with this problem:

Buy = Cross(x,y);
Sell = Cross(y,x);
Short = Sell; Cover = Buy;

In order to survive whipsaws I want to reject Sell
signals which 
occur within three bars of a Buy, and Buy signals
which occur within 
three bars of a Sell.

I am trying to use Barssince(Sell,3) etc. but I
still have all the 
Buy/Sell signals, or none at all :-(

Keith (B)





<font size=2
face="Courier New">Post AmiQuote-related
messages ONLY to: amiquote@xxxxxxxxxxxxxxx <font size=2
face="Courier New">
(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 Yahoo!
Terms of Service.