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

[EquisMetaStock Group] Re: Random entry



PureBytes Links

Trading Reference Links

Here is a simple random number generator.  It generates numbers
between 0 and 1, so to get signals, do something like subtract 0.5
from it.  It is 'seeded' by the first close on the graph, so it will
be random, but the same random sequency for each ticker.  To change
this, change the 'seeding' portion of the code.  It is OTC (off the
cuff) code, so maybe you need to fix some bugs.

---8<--------------
{Random number generator}
{MG Ferreira}
{Generates cyclical sequence, seeded}
{when cum(1)=1 by a funny function}
{of the first close}
Rr:=If(cum(1)=1,abs(cos(1-sin(c))),mod(75*(int(prev*65536)+1)-1,65536)/65536);
Rr
---8<--------------

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

--- In equismetastock@xxxxxxxxxxxxxxx, "Gabriel Pellegrini"
<gabrielpellegrini@xxxx> wrote:
> Can someone help me to find a System Tester Random entry code?With
the Tradesim Coin toss my system test only takes long trades.
> 
> Regards
> Gabriel





 
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/