当前位置:分析家公式网 → 股票公式 → 飞狐公式 → 一键转帖:大盘趋势,飞狐公式,很好
软件名称:[B]大盘趋势,飞狐公式,很好[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:1.00 KB
官方主页:Home Page
更新时间:2012-09-13 17:43:39
软件简介:
{公式名称:大盘趋势}
input:N(14,-99,99);
FO:="000001$OPEN";
FC:="000001$CLOSE";
FH:="000001$HIGH";
FL:="000001$LOW";
X:=0*"000001$CLOSE";
T1:=0*"000001$CLOSE";
FOR I=1 TO DATACOUNT DO BEGIN
IF I=1 AND FC[I]>=FO[I] THEN
X[I]:=FC[I];
IF I=1 AND FC[I]<=FO[I] THEN
X[I]:=FC[I];
IF I>1 THEN
X[I]:=X[I-1];
IF I>1 AND FC[I]>(X[I-1])*(1+N/100) THEN
X[I]:=(X[I-1])*(1+N/100);
IF I>1 AND FC[I]<(X[I-1])/(1+N/100) THEN
X[I]:=(X[I-1])/(1+N/100);
IF X[I]=X[I-1] THEN
T1[I]:=T1[I-1]+1;
END;
CC:=X;
X1:=REF(X,T1+1);
X2:=REF(X1,T1+1);
STICKLINE(CC<X1 AND X1>X2,FH,FL,0,0),color808080;
STICKLINE(CC<X1 AND X1>X2 AND FO>FC,FO,FC,8,0),color808080;
STICKLINE(CC<X1 AND X1>X2 AND FO<FC,FO,FC,8,1),color808080;
STICKLINE(CC>X1 AND X1<X2,FH,FL,0,0),colorFFFF00;
STICKLINE(CC>X1 AND X1<X2 AND FO>FC,FO,FC,8,0),colorFFFF00;
STICKLINE(CC>X1 AND X1<X2 AND FO<FC,FO,FC,8,1),colorFFFF00;
STICKLINE(CC<X1 AND X1<X2,FH,FL,0,0),colorFF00;
STICKLINE(CC<X1 AND X1<X2 AND FO>FC,FO,FC,8,0),colorFF00;
STICKLINE(CC<X1 AND X1<X2 AND FO<FC,FO,FC,8,1),colorFF00;
STICKLINE(CC>X1 AND X1>X2,FH,FL,0,0),colorFF;
STICKLINE(CC>X1 AND X1>X2 AND FO>FC,FO,FC,8,0),colorFF;
STICKLINE(CC>X1 AND X1>X2 AND FO<FC,FO,FC,8,1),colorFF;
input:N(14,-99,99);
FO:="000001$OPEN";
FC:="000001$CLOSE";
FH:="000001$HIGH";
FL:="000001$LOW";
X:=0*"000001$CLOSE";
T1:=0*"000001$CLOSE";
FOR I=1 TO DATACOUNT DO BEGIN
IF I=1 AND FC[I]>=FO[I] THEN
X[I]:=FC[I];
IF I=1 AND FC[I]<=FO[I] THEN
X[I]:=FC[I];
IF I>1 THEN
X[I]:=X[I-1];
IF I>1 AND FC[I]>(X[I-1])*(1+N/100) THEN
X[I]:=(X[I-1])*(1+N/100);
IF I>1 AND FC[I]<(X[I-1])/(1+N/100) THEN
X[I]:=(X[I-1])/(1+N/100);
IF X[I]=X[I-1] THEN
T1[I]:=T1[I-1]+1;
END;
CC:=X;
X1:=REF(X,T1+1);
X2:=REF(X1,T1+1);
STICKLINE(CC<X1 AND X1>X2,FH,FL,0,0),color808080;
STICKLINE(CC<X1 AND X1>X2 AND FO>FC,FO,FC,8,0),color808080;
STICKLINE(CC<X1 AND X1>X2 AND FO<FC,FO,FC,8,1),color808080;
STICKLINE(CC>X1 AND X1<X2,FH,FL,0,0),colorFFFF00;
STICKLINE(CC>X1 AND X1<X2 AND FO>FC,FO,FC,8,0),colorFFFF00;
STICKLINE(CC>X1 AND X1<X2 AND FO<FC,FO,FC,8,1),colorFFFF00;
STICKLINE(CC<X1 AND X1<X2,FH,FL,0,0),colorFF00;
STICKLINE(CC<X1 AND X1<X2 AND FO>FC,FO,FC,8,0),colorFF00;
STICKLINE(CC<X1 AND X1<X2 AND FO<FC,FO,FC,8,1),colorFF00;
STICKLINE(CC>X1 AND X1>X2,FH,FL,0,0),colorFF;
STICKLINE(CC>X1 AND X1>X2 AND FO>FC,FO,FC,8,0),colorFF;
STICKLINE(CC>X1 AND X1>X2 AND FO<FC,FO,FC,8,1),colorFF;
[url=http://www.70822.com/soft/sort013/sort02/down-52711.html]大盘趋势,飞狐公式,很好[/url]