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

[amibroker] Re: Prevent second entry while holding a position



PureBytes Links

Trading Reference Links

I use the FLIP function for something like that.  For example:

Cond1="Your buy condition";
Cond2="Your sell condition";
Cond3=Flip(Cond1,Cond2);

Buy=Cond3 and Ref(Cond3,-1)==0;

This catches the exact day when your "buy" condition was true but 
wasn't true the day before.  It can't add another "buy" signal until 
you get an exit signal first.



S.

--- In amibroker@xxxxxxxxxxxxxxx, "kevinoversby" <kevinoversby@xxxx> 
wrote:
>
> Is there a way to ignore a second entry signal during an open 
trade? 
> I would like to do this without ignoring signals on other stocks 
(i.e.
> not limiting max. number of positions).
> 
> Thanks 
> 
> Kevin
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/