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

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



PureBytes Links

Trading Reference Links

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! 



------------------------ 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/