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

[EquisMetaStock Group] Re: Expert Advisor



PureBytes Links

Trading Reference Links

You could use something like this:

permLong:=if(barssince(buy)<barssince(sell),1,0);
permLong>ref(permLong,-1)

This way, you'll have only the very first buy signal.

Regards,

mc

--- In equismetastock@xxxxxxxxxxxxxxx, "Big Papa" <denver69692002@xxx>
wrote:
>
> 
> I am having issues with my expert advisor.
> 
> I have taken an indicator and dumped it into the expert advisor.
> Such as sell when C>HHV(C,7).
> It shows a sell sign at the right time, but then shows another sell 
> sign each time that condition is true, regardless if a buy sign has 
> generated or not.
> So now, my charts look like 20 sell signs right in a row. My charts 
> look like a neighborhood in foreclosure!! I could probably deal with 
> it, but looks terrible.
> 
> Do I have to use the Write If function in the expert advisor to only 
> have it show up once? It seems like I would need some logic to say If 
> condition X, then sell, but then only show again if condition W (buy) 
> is generated.
> 
> Thanks.
>



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

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/