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

[EquisMetaStock Group] Re: Gaps



PureBytes Links

Trading Reference Links

This is all OTC.  The following will give you the max one day gap, up
or down.

---8<-------------------
{MG Ferreira}
{http://www.ferra4models.com}
{2005}

{Get gap tolerance}
xx:=input("Maximum gap tolerated (%)",0,1000,2);

{Calculate maximum gap}
maxGap:=max(abs(C/Ref(C,-1)-1));

{Determine if this stock made it or not}
maxGap<xx
---8<-------------------

This will plot a 1 if the stock made it and a zero if not.  You can
combine this formula in your exploration or custom indicators.

Regards
MG Ferreira
TsaTsa EOD Programmer and trading model builder
http://www.ferra4models.com
http://fun.ferra4models.com 

--- In equismetastock@xxxxxxxxxxxxxxx, "qpcxpgzp" <gsandral@xxxx> wrote:
> If I wish to exclude stocks that gap up or down by X% in my 
> explorations (Metastock 9.0) how should I code this?
> 
> Any help would be appreciated
> 
> Regards Graeme




 
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/