Hi Thomas,

OK, so I changed it to the simpler code below .. but the problem still
exists. I did wonder whether perhaps it had something to do with decimal
places ??  As the most recent alert seemed to trigger when the price hit
210.xx even though the Boll.Band was at 210.545:

Buy = RSIa ( Close, 14 ) < 25 AND BarsSince( Low >= BBandBot( Close, 30,
3 ) ) >= 1;
Sell = RSIa (Close, 14) > 75 AND BarsSince( High >= BBandTop( Close, 30,
3 ) ) >= 1;

Thomas Z. wrote:

>Hi,
>
>i have not checked your code detailed but what i see is that you use future
>quotes in your ref function: Ref( LLV( RSIa( Close, 14 ), 1)
>
>- - - - - - - - - - - - - - - - -
>Best Regards
>
>Thomas
>http://www.tradingbasis.com
>- - - - - - - - - - - - - - - - -
>
>
>-----Original Message-----
>From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
>Of Richard Jay
>Sent: Tuesday, May 30, 2006 1:14 PM
>To: [email protected]
>Subject: [amibroker] What is wrong with this code ??
>
>Would anyone with RT Forex data care to take a look at this ??
>
>I keep on getting Buy/Sell signals generated even though the price is
>nowhere near the Bollinger Bands. Here's the formula, plotted on 30min
>charts EUR/USD and GBP/USD:
>
>Buy = Ref( LLV( RSIa( Close, 14 ), 1 ), 0 ) < 25 AND BarsSince( Low >=
>BBandBot( Close, 30, 3 ) ) >= 1;
>Sell = Ref( HHV( RSIa( Close, 14 ), 1 ), 0 ) > 75 AND BarsSince( High >=
>BBandTop( Close, 30, 3 ) ) >= 1;
>
>

>




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS




Reply via email to