- UID
- 2
- 积分
- 2874604
- 威望
- 1387331 布
- 龙e币
- 1487273 刀
- 在线时间
- 13155 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
【TrendingStocks】
- Inputs: Len(Numeric), MinimumPriceValue(Numeric);
- Variables: var0(0), var1(0), var2(0), var3(0), var4(0), var5(0), var6(0);
- var0 = SerialHighsLows(Len);
- var1 = BarQuality(Len);
- var2 = AverageUpMove(Len);
- var3 = AverageDnMove(Len);
- var4 = AbsValue(var2-var3);
- var6 = MinList(var0, var4);
- condition1 = Lowest(Low, Len) < MinimumPriceValue OR var1 < 10 Or var0 < 15 ;
- If condition1 Then
- var6 = 0;
-
- For var5 = 0 To Len * 2 Begin
- condition1 = High[var5] < Low[var5 + 1];
- If condition1 Then Begin
- condition1 = High[var5] < Low[var5 + 1] * .8;
- If condition1 Then
- var6 = 0;
- End
- Else
- begin
- condition1 = Low[var5] > High[var5 + 1];
- If condition1 Then
- Begin
- condition1 = Low[var5] > High[var5 + 1] * 1.2;
- If condition1 Then
- var6 = 0;
- End;
- end;
- End;
- TrendingStocks = var6;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|