<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>金字塔决策交易系统 - 指标问题</title>
    <link>https://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>Thu, 17 Sep 2026 20:07:22 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://weistock.com/bbs/static/image/common/logo_88_31.gif</url>
      <title>金字塔决策交易系统</title>
      <link>https://weistock.com/bbs/</link>
    </image>
    <item>
      <title>VARIABLE 变量是怎么写的</title>
      <link>https://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://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://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://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://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://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://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://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://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>
    <item>
      <title>资产负债率的函数找不到</title>
      <link>https://weistock.com/bbs/forum.php?mod=viewthread&amp;tid=30848</link>
      <description><![CDATA[资产负债率的函数找不到，请老师给写下：资产负债率小于50%]]></description>
      <category>指标问题</category>
      <author>106325</author>
      <pubDate>Mon, 17 Aug 2026 08:16:58 +0000</pubDate>
    </item>
    <item>
      <title>实现7个选股条件</title>
      <link>https://weistock.com/bbs/forum.php?mod=viewthread&amp;tid=30845</link>
      <description><![CDATA[请写出：1、连续十年不间断分红，2、近三年的股息率均大于3%。3、上市公司的分红额连续三年上长。4、公司的扣非利润连续三年均为正。5、股利率大于30%。6、资产负债率]]></description>
      <category>指标问题</category>
      <author>106325</author>
      <pubDate>Mon, 17 Aug 2026 06:59:25 +0000</pubDate>
    </item>
    <item>
      <title>分红数据问题</title>
      <link>https://weistock.com/bbs/forum.php?mod=viewthread&amp;tid=30835</link>
      <description><![CDATA[老师好：可以用代码获取分红时的股价及到现在的周期数吗？请老师给写一下]]></description>
      <category>指标问题</category>
      <author>106325</author>
      <pubDate>Mon, 17 Aug 2026 03:17:38 +0000</pubDate>
    </item>
    <item>
      <title>金字塔软件交易ETF比如510300的交易费率是怎么设置？</title>
      <link>https://weistock.com/bbs/forum.php?mod=viewthread&amp;tid=30796</link>
      <description><![CDATA[我感觉在这里设置好像没有用，我想根据成交额设置交易费率，但是设置了还是没有改变（我说的图表上），到底应该修改哪里的设置才会变动？下面是我的核对手续费的代码

[mw_shl_code=pel,true]//------核对手续费
if barpos=1 then begin
buy(1,0,limitr,c);
sell(1 ...]]></description>
      <category>指标问题</category>
      <author>103769</author>
      <pubDate>Tue, 11 Aug 2026 06:12:25 +0000</pubDate>
    </item>
    <item>
      <title>日盘开盘和夜盘开盘的跳空幅度如何计算？</title>
      <link>https://weistock.com/bbs/forum.php?mod=viewthread&amp;tid=30795</link>
      <description><![CDATA[后台程序1.取前一个交易日最后bar收盘价和当日开盘第一个bar的开盘价跳空幅度如何计算？15:00收盘对21:00开盘的跳空幅度？
2.取夜盘交易日最后bar和当日9:00日盘开盘第一个bar的跳空幅度如何计算？夜盘收盘（23.00/2:30 对 09:00）的跳空幅度？]]></description>
      <category>指标问题</category>
      <author>105057</author>
      <pubDate>Tue, 11 Aug 2026 04:22:39 +0000</pubDate>
    </item>
    <item>
      <title>变相参数寻优的输出问题</title>
      <link>https://weistock.com/bbs/forum.php?mod=viewthread&amp;tid=30766</link>
      <description><![CDATA[下面公式是希望通过循环运行参数组合，得到模拟收益率最高时的那组参数值，但未能输出值，求优化，谢谢！
//得到月线最高价与最低价，作为循环的边界值
HH1:=CALLSTOCK(\'\', VTHIGH, 8, 0);
LL1:=CALLSTOCK(\'\', VTLOW, 8, 0);
//取整，以方便循环时使用
hh:=intpart ...]]></description>
      <category>指标问题</category>
      <author>103789</author>
      <pubDate>Fri, 07 Aug 2026 05:50:45 +0000</pubDate>
    </item>
    <item>
      <title>持仓量用什么函数？</title>
      <link>https://weistock.com/bbs/forum.php?mod=viewthread&amp;tid=30737</link>
      <description><![CDATA[我想调用持仓量的变化，OPI 但是显示金字塔没有OPI 函数可供调用  我应该用什么方法调用？]]></description>
      <category>指标问题</category>
      <author>围城</author>
      <pubDate>Tue, 04 Aug 2026 05:53:22 +0000</pubDate>
    </item>
    <item>
      <title>求代码</title>
      <link>https://weistock.com/bbs/forum.php?mod=viewthread&amp;tid=30712</link>
      <description><![CDATA[最近一次（平仓：平空/平多）历时指数：要求没有平仓时返回0，平仓后返回1]]></description>
      <category>指标问题</category>
      <author>103897</author>
      <pubDate>Fri, 31 Jul 2026 03:46:24 +0000</pubDate>
    </item>
    <item>
      <title>后台程序如何区分判断夜盘和日盘损失次数？</title>
      <link>https://weistock.com/bbs/forum.php?mod=viewthread&amp;tid=30641</link>
      <description><![CDATA[后台程序如何区分判断夜盘和日盘损失次数？ 后台日内交易，我需要锁定夜盘最大损失次数3次，全天最大损失次数5次，请问如何编写？]]></description>
      <category>指标问题</category>
      <author>105057</author>
      <pubDate>Fri, 24 Jul 2026 01:09:52 +0000</pubDate>
    </item>
    <item>
      <title>指标问题无法实现</title>
      <link>https://weistock.com/bbs/forum.php?mod=viewthread&amp;tid=30613</link>
      <description><![CDATA[variable:a_line:=0;
a_line:=(high-ref(low,1))*cci*ref(a_line,1)-length*ref(a_line,5);


这里的a_line无法实现，该怎么办？
备注：cci是自己写的指标。]]></description>
      <category>指标问题</category>
      <author>103782</author>
      <pubDate>Sun, 19 Jul 2026 08:27:06 +0000</pubDate>
    </item>
    <item>
      <title>金字塔有通达信这个函数，可以对应的函数吗？</title>
      <link>https://weistock.com/bbs/forum.php?mod=viewthread&amp;tid=30577</link>
      <description><![CDATA[用法:
 FINDHIGH(VAR,N,M,T):VAR在N日前的M天内第T个最高价，如果没有，我要编写，应该怎样编一个类似的？这里N=0,M=240,KN=19,谢谢]]></description>
      <category>指标问题</category>
      <author>103935</author>
      <pubDate>Tue, 14 Jul 2026 08:42:59 +0000</pubDate>
    </item>
  </channel>
</rss>