h****m 发帖数: 57 | 1 P老大的信箱已经满了几个月了,股板上俺又灌水少,只能闷着头琢磨。俺Reverse
Engineering了P老大的公式,对比了一下P老大贴的LDK的图差不太多,在这里贴出来,
如果觉得能用的上,意思一下,谢谢!
Smooth = Param("Smooth", 9, 1, 200, 1);
Var= Param("STD Err Band Periods", 18, 1, 100, 1);
function SteBand( array, periods, upper )
{
Lr = LinearReg( array, periods );
se = StdErr( array, periods );
return LR + IIf( upper, 1, -1 ) * 1 * se;
}
//You can for your convenience use it to write functions that are similar to
BBandTop, BBandBot:
function SteBandTop( array, periods )
{
ret |
|