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

Re: [amibroker] Buy = Cover - how to eliminate false signal?



PureBytes Links

Trading Reference Links

Hello,

Just REMOVE this line:
buy = cover;

and replace it with correct condition.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Beachie" <beachie41@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, September 13, 2004 9:40 PM
Subject: [amibroker] Buy = Cover - how to eliminate false signal?


> 
> Hi,
> what I'm trying to do is to initiate a "Buy" when a Short has been closed by "Cover".
> The code assigned to "Cover" on itself is simple & occurs frequently:
>   Cover = H > Ref(H,-2)AND L > Ref(L,-2);
> 
> The "Buy = Cover" generates Buys for *all* instance of Cover. What I want is a Buy only to 
> occur if the last instance of  Cover was to close a Short, not just when "H > Ref(H,-2)AND 
> L > Ref(L,-2)" is true
> Thnaks! 
> 
> 
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/