<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>金字塔决策交易系统 - 指标问题</title>
    <link>https://www.weistock.com/BBS/forum.php?mod=forumdisplay&amp;fid=42</link>
    <description>Latest 20 threads of 指标问题</description>
    <copyright>Copyright(C) 金字塔决策交易系统</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Mon, 02 Nov 2026 18:26:19 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.weistock.com/BBS/static/image/common/logo_88_31.gif</url>
      <title>金字塔决策交易系统</title>
      <link>https://www.weistock.com/BBS/</link>
    </image>
    <item>
      <title>请问有哪个指标反映交易热度的？</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31348</link>
      <description><![CDATA[1]]></description>
      <category>指标问题</category>
      <author>106529</author>
      <pubDate>Tue, 27 Oct 2026 03:20:11 +0000</pubDate>
    </item>
    <item>
      <title>汇总涨跌家数以及上涨家数总成交金额和下跌家数总成交额</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31340</link>
      <description><![CDATA[汇总涨跌家数以及上涨家数总成交金额和下跌家数总成交额，请问如何实现]]></description>
      <category>指标问题</category>
      <author>106509</author>
      <pubDate>Mon, 26 Oct 2026 07:56:32 +0000</pubDate>
    </item>
    <item>
      <title>请帮忙优化一下撤单平仓条件</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31305</link>
      <description><![CDATA[未成交数量 := TSUBMITID(4, \'\', \'\', 0, 0);

可用持仓 := TSELLHOLDINGEX(\'\', \'\', 0);

  IF CURRENTTIME &gt;= 100001 AND  CURRENTTIME  0 OR 可用持仓 &gt; 0) THEN BEGIN


    TCANCELID(4, \'\', \'\', 1, 0);

    IF 可用持仓 &gt; 0 THEN
        TSELLSHORT(1,  ...]]></description>
      <category>指标问题</category>
      <author>106052</author>
      <pubDate>Wed, 21 Oct 2026 07:27:51 +0000</pubDate>
    </item>
    <item>
      <title>下单超过5秒撤单</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31301</link>
      <description><![CDATA[请问怎么写个公式，检测到委托了5秒还没成交就撤单？]]></description>
      <category>指标问题</category>
      <author>106052</author>
      <pubDate>Wed, 21 Oct 2026 04:14:32 +0000</pubDate>
    </item>
    <item>
      <title>关于股票池数量出错的问题</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31288</link>
      <description><![CDATA[最近一次新建的股票池不知道什么原因一次只能选出10个品种了。以前的股票池没有这个限制，选出三四十个品种也可以的。而且最近建的股票池发出股票不像以前一点一点把品种找出来了，而是一次性找出十个品种。请问要怎么解决？]]></description>
      <category>指标问题</category>
      <author>106379</author>
      <pubDate>Tue, 20 Oct 2026 01:47:26 +0000</pubDate>
    </item>
    <item>
      <title>帮忙解决一个买开单问题</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31280</link>
      <description><![CDATA[我想实现一天只买开一次，请您帮我看看这样写代码可以吗？
d1:EXTGBDATA(STKLABEL);

if KD and date&gt;d1 and TBUYHOLDINGEX(\'\',\'\',2)=0 and 可下单数&gt;=10 and tisprvremain(1)=0 and tisremainex(1,\'\',STKLABEL)=0 then  
BEGIN            
    tbuy(1,可下单数,L ...]]></description>
      <category>指标问题</category>
      <author>106379</author>
      <pubDate>Mon, 19 Oct 2026 05:34:15 +0000</pubDate>
    </item>
    <item>
      <title>请教关于买一量计算问题</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31228</link>
      <description><![CDATA[// DYNAINFO(10) 总额（单位：万），转换为元
today_amount := DYNAINFO(10) * 10000;

cond1: DYNAINFO( 25)*DYNAINFO( 28)&gt;today_amount*0.03;

then tbuy 

写了pel公式如上，多个个股复合条件没有触发。请教问题所在以及修改方式。感谢]]></description>
      <category>指标问题</category>
      <author>103886</author>
      <pubDate>Mon, 12 Oct 2026 02:15:47 +0000</pubDate>
    </item>
    <item>
      <title>关于撤单监控问题</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31207</link>
      <description><![CDATA[后台程序化，编码如下：
// 适用于金字塔后台程序化，1秒轮询
// 1. 获取买一价和买一量，计算买一挂单金额
buy1_price := DYNAINFO(28);   // 买一价
buy1_vol := DYNAINFO(25);     // 买一量
buy1_amount := buy1_price * buy1_vol;

// 2. 获取当前品种的当 ...]]></description>
      <category>指标问题</category>
      <author>103886</author>
      <pubDate>Thu, 08 Oct 2026 04:11:50 +0000</pubDate>
    </item>
    <item>
      <title>请教一个均值指标</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31140</link>
      <description><![CDATA[您好，老师。我想求一个品种开盘后三十分钟的成交量之和与当天全部成交量的比值，然后再求这个比值二十天的平均值。]]></description>
      <category>指标问题</category>
      <author>106379</author>
      <pubDate>Tue, 22 Sep 2026 11:19:07 +0000</pubDate>
    </item>
    <item>
      <title>时间确认问题</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31125</link>
      <description><![CDATA[你好，我想实现一个“开盘后前3根K线区间”的功能，但目前代码计算出来的最高价、最低价与实际K线不一致。
 H_PREV := REF(HIGH, 1);
     L_PREV := REF(LOW, 1);
     IF TIME  OR_LAST THEN BEGIN
    OR_LAST := TIME;
    IF TIME = 130000 OR TIME = 173000  ...]]></description>
      <category>指标问题</category>
      <author>围城</author>
      <pubDate>Mon, 21 Sep 2026 02:30:50 +0000</pubDate>
    </item>
    <item>
      <title>图表信息汇总到全局变量问题</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31112</link>
      <description><![CDATA[老师好： 我以下的代码，是将多个策略的开平信号汇总到全局变量中进行加总，但实际运行时，会发现，有些策略在图表加载上有信号，但实际msgout不报单、全局变量EXTGBDATASET也不写入，也即有很多策略丢单了，问题出在哪里了？
IF PK AND HOLDING0 THEN BEGIN   
 SELL ...]]></description>
      <category>指标问题</category>
      <author>105280</author>
      <pubDate>Fri, 18 Sep 2026 02:02:58 +0000</pubDate>
    </item>
    <item>
      <title>VARIABLE 变量是怎么写的</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31082</link>
      <description><![CDATA[策略周期是 5 分钟，后台程序化用 tick 刷新（逐笔驱动）。现在 VARIABLE 声明的变量，在同一根 5 分钟 K 线内的多个 tick 之间，值没有保持——每个 tick 都回到初始值 0。
    1. OI_LAST_TIME 没保持 → 资金流累加每 tick 被清零 → 占比恒 0 或 100
    2. LAST ...]]></description>
      <category>指标问题</category>
      <author>围城</author>
      <pubDate>Mon, 14 Sep 2026 02:53:46 +0000</pubDate>
    </item>
    <item>
      <title>下午、晚上收盘OR特定时间全部平仓---后台平仓模板</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31075</link>
      <description><![CDATA[帮忙写一个在中午收盘，下午收盘和晚上收盘的时间有持仓的全部平仓的后台模型]]></description>
      <category>指标问题</category>
      <author>106529</author>
      <pubDate>Fri, 11 Sep 2026 14:40:37 +0000</pubDate>
    </item>
    <item>
      <title>本周的成交量-请教一句代码</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=31004</link>
      <description><![CDATA[在分钟图上（比如说5分钟），统计本周的成交量（不含当前K线，截至到前一根K线）如何统计？谢谢]]></description>
      <category>指标问题</category>
      <author>103218</author>
      <pubDate>Thu, 03 Sep 2026 06:02:52 +0000</pubDate>
    </item>
    <item>
      <title>如何输出到文件</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=30965</link>
      <description><![CDATA[代码：
IF 条件 THEN 
  BEGIN
  ]]></description>
      <category>指标问题</category>
      <author>106152</author>
<enclosure url="/forum/debugfile(pathNAME,stklabel&\' \'&stkname&\' \'&\'_日期：\'&numtostr(DATE-1000000,0),0);
  END

意思想把符合条件的日期全部输出到文件，但文件里只有最后一条数据，前 ..." length="" type="image/jpeg" />      <pubDate>Sat, 29 Aug 2026 03:36:01 +0000</pubDate>
    </item>
    <item>
      <title>距下次除权</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=30955</link>
      <description><![CDATA[能写一个距下次除权的时间周期吗：比如今天距下一次除权小于30天，但是大于15天。]]></description>
      <category>指标问题</category>
      <author>106325</author>
      <pubDate>Thu, 27 Aug 2026 07:45:08 +0000</pubDate>
    </item>
    <item>
      <title>净资产收益率-请写个财务指标公式</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=30927</link>
      <description><![CDATA[关于净资产收益率的求法，在金字塔的函数中，不知哪个对：1、finance(33)/finance(34)*100%  ，这样写对吗？2、怎么写出今年的比去年的大]]></description>
      <category>指标问题</category>
      <author>106325</author>
      <pubDate>Mon, 24 Aug 2026 05:07:18 +0000</pubDate>
    </item>
    <item>
      <title>除权除息价-请老师写个指标</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=30900</link>
      <description><![CDATA[请老师给写一个，分红除权价向右画一条水平线，写这样一个画线指标。]]></description>
      <category>指标问题</category>
      <author>106325</author>
      <pubDate>Thu, 20 Aug 2026 08:54:10 +0000</pubDate>
    </item>
    <item>
      <title>每天限定交易次数</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=30894</link>
      <description><![CDATA[每天限定交易次数如何实现？图表和后台]]></description>
      <category>指标问题</category>
      <author>103897</author>
      <pubDate>Thu, 20 Aug 2026 06:10:55 +0000</pubDate>
    </item>
    <item>
      <title>设计一个撤委托单，并马上平仓公式</title>
      <link>https://www.weistock.com/BBS/forum.php?mod=viewthread&amp;tid=30893</link>
      <description><![CDATA[想设计一个撤掉平空单的委托单，并马上市场价平仓，但发现没起作用，请班助帮忙看看
同一个公式内：

if c&gt;0 and currenttime&gt;=100000  THEN
BEGIN
]]></description>
      <category>指标问题</category>
      <author>106052</author>
<enclosure url="/forum/END
" length="

if c>0 and currenttime>=100001 then
BEGIN
" type="image/jpeg" />      <pubDate>Thu, 20 Aug 2026 03:34:25 +0000</pubDate>
    </item>
  </channel>
</rss>