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

[EquisMetaStock Group] Re: Please Help Big Dummy with Metastock Coding Puzzle -



PureBytes Links

Trading Reference Links


Hi Bosco,

Not sure what you are doing with this but if you are working with
powers of integers you will easily run into an overflow error.  Just
enter a silly formula like

Power(Cum(1),20)

(alas! you can not do Power (xx,Cum(1)) which you may be after...)

and pretty soon you will get problems.  One way to fix this is to use
logs and exps, but that is another story....

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


--- In equismetastock@xxxxxxxxxxxxxxx, "Jose" <josesilva22@xxxx> wrote:
> 
> You could start with something simple such as:
>  Sum(C/Cum(1),11)
> 
> 
> jose '-)
> http://www.metastocktools.com
> 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "Bosco Santini" <rr4ever@xxxx> 
> wrote:
> > 
> > 
> > I've been banging my brain-pan on this for weeks and have decided I 
> > must write a DLL to acomplish the task. I suspect that I am missing 
> > (as usual) one tiny piece of information. Suppose I load a chart
> > with 133 days of prices. (The numbers are arbitrary and chosen only
> > to fix the idea.) I want to generate a sequence of consecutive
> > integers, say, 1,2,3,...,11 and use them in some arithmetic on, say,
> > the closing prices. As a purely illustrative example - let C1 be the 
> > first or earliest Close, C2 be the next, C3 next, etc. I want to 
> > calculate, for example: C1/1+C2/2+C3/3+...+C11/11 AND THEN
> > C2/1+C3/2+C4/3+...+C12/11 AND THEN C3/1+C4/2+C5/3+...+C13/11 and so 
> > on until finally C123/1+C124/2+C125/3+...+C133/11. Each of the sums 
> > would be plotted as my "formula". I am simultaneously praying that 
> > there is AND is not a simple solution. Why? Because if such is not 
> > possible then I am not as stupid my dog thinks I am. If there is
> > then my curiosity will be satisfied, I will learn something, and
> > certainly achieve total enlightenment and, well, maybe not the last
> > part ...
> > Any comments would be,like, totally and seriously appreciated .
> > Regards,
> > Bosco





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/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/