PureBytes Links
Trading Reference Links
|
Does anyone know how to express following meaning into Metastock
Code Please?
1) AmiBroker format
LinRegIntercept( ARRAY, periods )
FUNCTION
Calculates intercept of linear regression line - the "a" coefficient
in a + b*x (LinRegSlope calculates b) from the ARRAY using periods
range.
Reference: http://www.amibroker.com/guide/afl/afl_view.php?id=83
1) Metastock format:
===================================================================
2) AmiBroker format
for(phi=0;phi<2*pi;phi=phi+pi/n)
I cannot even find the command "for" in reference material.
Please Help
2) Metastock
===================================================================
3) AmiBroker format
WriteVal
FUNCTION
It is used to display the numeric value of NUMBER or ARRAY. The
second parameter - format - allows you to control output formatting
(decimal places and leading spaces). The integer part of the number
controls minimum number of characters used to display the number (if
you specify high number the output will be space-padded). The
fractional part defines how many decimal places to display, for
example 1.0 - will give you a number without fractional part at all,
and 1.2 - will display two digits past the decimal point
There is also a special format constant formatDateTime that allows
to print date/time returned by DateTime() function formatted
according to Windows regional settings. Third parameter separator
(true by default) controls if thousand separator is added or not.
Note: NumToStr is a synonym for WriteVal function and NumToStr is
preferred in new coding.
3) Metastock format
===================================================================
If anyone know how to transfer AmiBroker format into Metastock
format, Please Help
Thank you vey much
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/
|