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

[amibroker] How to gather BUY and SELL Information



PureBytes Links

Trading Reference Links



I'm having trouble figuring out how to get info from the first BUY and
then when it becomes a SELL. I want to use a combination of BUY
criterias and not just a CROSS. Below is a simple example

BUY = CCI(9) > 0 and V > MA(V,16) and C > 5 and C < 20 and C >
MA(C,50); SELL = C < MA(C,50); 

Buy  = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);

With this BUY and SELL rule there will be many BUY conditions before a
SELL occurs if it an upwards slope. 

How does the BACKTESTER code figure this out and I would like to
implement it in my code so I can get values of the first BUY & SELL
like Opening price, Closing Price, Volume ect .

Any help would be appreciated.

Thanks

Marty





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