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

[EquisMetaStock Group] Re: Why is this happening



PureBytes Links

Trading Reference Links


Your exit signal is resetting every time your entry condition repeats.

This indicator explains it visually:

---8<----------------
pds:=Input("Consecutive periods",1,21,4);

long:=Sum(C<Ref(C,-1),pds)=pds;
short:=BarsSince(long)=1;

long;-short
---8<----------------


And this is a solution to the resetting problem:

---8<----------------
pds:=Input("Consecutive periods",1,21,4);

long:=Sum(C<Ref(C,-1),pds)=pds;
long:=long AND Alert(long=0,2);
short:=BarsSince(long)=1;

long;-short
---8<----------------


jose '-)


--- In equismetastock@xxxxxxxxxxxxxxx, budgetanalyst <no_reply@xxxx> 
wrote:
> 
> 
> Hello,
> 
> I am trying to run a System Test and here are my conditions:
> 
> Enter Long:
> 
> (CLOSE<Ref(C,-1))AND
> (Ref(C,-1)<Ref(C,-2))AND
> (Ref(C,-2)<Ref(C,-3))AND
> (Ref(C,-3)<Ref(C,-4))
> 
> Close Long:  
> 
> BarsSince((CLOSE<Ref(C,-1))AND
> (Ref(C,-1)<Ref(C,-2))AND
> (Ref(C,-2)<Ref(C,-3))AND
> (Ref(C,-3)<Ref(C,-4))) = 1
> 
> What I am trying to do is to buy on the close when a stock has gone
> down for 4 straight days.  I plan on closing it out the next day at
> the close.  I have tested this and it appears that some trades 
follow
> exactly what I thought is in the conditions but some trades don't
> actually close until 2 or all the way up to 4 days later.  Why 
aren't
> all trades being closed the next day that I enter it?
> 
> Does anyone have any ideas?
> 
> Thanks
> Eric





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

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

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