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

[amibroker] Multiple Independent Trades in 1 stock .. Possible?



PureBytes Links

Trading Reference Links

Hi,

I'd like to know two things.
  Is this possible in Amibroker?
  HOW do I code it?

What I want to do:

I want to track several INDEPENDENT trades in 1 security which have
their own initial stop and trailing exit.

Here is my (simplified) Buy condition:
  Buy = C > 10 AND Cross(Ref(HHV(H,20),-1);

As you can see it is possible that there are several possible Cross()
during the time that  C > 10 is True.

Each 'BUY' has its own independent Stop Loss (E.g. Close minus 10%)
Each Trade has its own independent Trailing Exit (E.g. Highest High
since Buy minus 20%)


Here's the outcome I want:

I test over 2 securities.
Security A passes in January, and exits in March.
Security B passes in February and March.

There is not enough money to take the trade on B in February.
However, there is enough money to take the trade on B in March,
because trade in Security B has exited.

Can this be done?

Joel






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

 
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/