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

[EquisMetaStock Group] Re: Exit condition: fixed number of days



PureBytes Links

Trading Reference Links

If I get it right then you could write something like this:

a:=your buy signal;
b:=your sell signal;
state:=if(barssince(a)<barssince(b),1,0);
buy:=state>ref(state,-1);
barssince(buy)=22


--- In equismetastock@xxxxxxxxxxxxxxx, "dasein_10" <daniele_delmonte@xxx> wrote:
>
> Hi, I have this problem: i would like to exit the position max after 22 days from the buy signal (the first signal) if the sell signal fail, does  anyone have some ideas?
> 
> Thank 
> 
> Daniele
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/