打印本文打印本文 关闭窗口关闭窗口

[求助]求当日条件a第一次成立时的收盘价

作者:金字塔 来源:cxh99.com 发布时间:2014年08月24日
  • 咨询内容: 求当日条件a第一次成立时的收盘价(条件a在当天可能成立n次)这个公式怎么编写?

     

  • 金字塔客服:

    variable:n=0;

    if date<>ref(date,1) then n:=0;

    if 条件a then n:=n+1;

    cc:valuewhen(ref(n=0,1) and n=1,close);

打印本文打印本文 关闭窗口关闭窗口