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

[amibroker] Re: Sell IF Today Open > Entry Price



PureBytes Links

Trading Reference Links


First of all, Thank you at all for the help.

This formula doesn't works.
--------Formula 1----------
Buy= Cross(O , Ref(O,-1));
EntryPrice=ValueWhen(Buy,O);
Sell=Cross(O , Ref(EntryPrice,-1));
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
---------------------------


This formula instead seems to work but it is wrong:
--------Formula 2--------------
Buy= O > Ref(O,-1);
EntryPrice=ValueWhen(Buy,O);
Sell=O > Ref(EntryPrice,-1);
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
------------------------------

sell signal is wrong.

here is my simply test on AAPL 10 quotation 

2/16/2005 88.15
2/15/2005 86.66
2/14/2005 82.73
2/11/2005 79.86
2/10/2005 78.72
2/9/2005  81.04
2/8/2005  79.07
2/7/2005  78.93
2/4/2005  77.87
2/3/2005  79.10

Long 2/3/2005  79.1   2/8/2005   79.07 --> *Wrong, ex price is < 
entry price*
Long 2/9/2005  81.04  2/14/2005  82.73
Long 2/15/2005 86.66  2/16/2005	 88.15 

Thank you in advance

---
Giuseppe





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/