mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
147 lines
3.8 KiB
HTML
147 lines
3.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Stochastic</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.trader-stoch" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">trader_stoch</h1>
|
|
<p class="verinfo">(PECL trader >= 0.2.0)</p><p class="refpurpose"><span class="refname">trader_stoch</span> — <span class="dc-title">Stochastic</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.trader-stoch-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>trader_stoch</strong></span>
|
|
( <span class="methodparam"><span class="type">array</span> <code class="parameter">$high</code></span>
|
|
, <span class="methodparam"><span class="type">array</span> <code class="parameter">$low</code></span>
|
|
, <span class="methodparam"><span class="type">array</span> <code class="parameter">$close</code></span>
|
|
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$fastK_Period</code></span>
|
|
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$slowK_Period</code></span>
|
|
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$slowK_MAType</code></span>
|
|
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$slowD_Period</code></span>
|
|
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$slowD_MAType</code></span>
|
|
]]]]] ) : <span class="type">array</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.trader-stoch-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">high</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
高价,浮点数数组。
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">low</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
低价,浮点数数组。
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">close</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
收盘价,浮点数数组。
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">fastK_Period</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
Time period for building the Fast-K line. Valid range from 1 to 100000.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">slowK_Period</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
Smoothing for making the Slow-K line. Valid range from 1 to 100000, usually set to 3.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">slowK_MAType</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
Type of Moving Average for Slow-K. <a href="trader.constants.html" class="link">TRADER_MA_TYPE_*</a> series of constants should be used.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">slowD_Period</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
Smoothing for making the Slow-D line. Valid range from 1 to 100000.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">slowD_MAType</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
Type of Moving Average for Slow-D. <a href="trader.constants.html" class="link">TRADER_MA_TYPE_*</a> series of constants should be used.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.trader-stoch-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">Returns an array with calculated data or false on failure.</p>
|
|
</div>
|
|
|
|
|
|
|
|
</div></div></div></body></html> |