<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Till</title>
        <link>https://paragraph.com/@till</link>
        <description>undefined</description>
        <lastBuildDate>Sun, 14 Jun 2026 06:27:17 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[网格测试]]></title>
            <link>https://paragraph.com/@till/A1eLANAXTIGPRtt7LOOI</link>
            <guid>A1eLANAXTIGPRtt7LOOI</guid>
            <pubDate>Mon, 21 Feb 2022 09:41:34 GMT</pubDate>
            <description><![CDATA[目的测试网格策略和均线之间的关系，以及根据均线对应策略对比不使用均线时的策略。准备首先通过Binance的接口拉取了2021-02-01到2022-02-20这段时间以day为级别的数据（后续需要更加详细的，但是现在服务器太垃圾，拉取更多的数据会卡）。 根据回测，在收盘价>SMA25时执行买入操作，反之卖出。这个回测只是为了记录大于SMA和小于的时间点，回测的对应数据和收益这里不是重点。因为这里只是脚本为了方便算出对应的时间点，之前回测的脚本懒得改而已。。。表格加入表格为后续计算数据做准备表格说明类型：类型为1表示这段时间，每日收盘价是大于SMA25的，反之类型为0，表示收盘价小于SMA25. 原始幅度：表示，不做任何操作（开多），网格在这段时间的收益 阶段网格：指的是不做任何操作（开多），但是每次都是从时间点开始测试。 多空互开：指在类型1时开多，在类型0时开空 多空反开：指在类型1时开空，在类型0时开多测试目前主要时在lubi上进行测试。 回测参数如下： 以秒为单位，测试ETHUSDT对应参数都选最基础的参数，这些数据不是本次测试的重点。结果收益图最终结果，最大回撤58%，年...]]></description>
            <content:encoded><![CDATA[<h1 id="h-" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">目的</h1><p>测试网格策略和均线之间的关系，以及根据均线对应策略对比不使用均线时的策略。</p><h1 id="h-" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">准备</h1><p>首先通过Binance的接口拉取了2021-02-01到2022-02-20这段时间以day为级别的数据（后续需要更加详细的，但是现在服务器太垃圾，拉取更多的数据会卡）。</p><p>根据回测，在收盘价&gt;SMA25时执行买入操作，反之卖出。这个回测只是为了记录大于SMA和小于的时间点，回测的对应数据和收益这里不是重点。因为这里只是脚本为了方便算出对应的时间点，之前回测的脚本懒得改而已。。。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/d2c457c4548c9a9296d6c023f727be9c442307932d67e85c76c8b4a349b5d902.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">表格</h2><p>加入表格为后续计算数据做准备</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/6532e3059e7a031dc473abfce03703aebbedc803a1c4e0ffd7427567be8f81be.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h3 id="h-" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">表格说明</h3><p>类型：类型为1表示这段时间，每日收盘价是大于SMA25的，反之类型为0，表示收盘价小于SMA25.</p><p>原始幅度：表示，不做任何操作（开多），网格在这段时间的收益</p><p>阶段网格：指的是不做任何操作（开多），但是每次都是从时间点开始测试。</p><p>多空互开：指在类型1时开多，在类型0时开空</p><p>多空反开：指在类型1时开空，在类型0时开多</p><h1 id="h-" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">测试</h1><p>目前主要时在lubi上进行测试。</p><p>回测参数如下：</p><p>以秒为单位，测试ETHUSDT</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/3a48b66e4a22eb230cd979a4887ae0b0b6632565aa356e24ab3253f820c3b018.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>对应参数都选最基础的参数，这些数据不是本次测试的重点。</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/e87c60d2e6a2e8a5a26efdf235b1511183dc0763861d9981a248548cf7fcf625.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h1 id="h-" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">结果</h1><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/b42519761be4d9aec3b55c160cbc46ea2e31074587bbe40f712b9fd19b98ec61.png" alt="收益图" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">收益图</figcaption></figure><p>最终结果，最大回撤58%，年化收益225%。</p><h1 id="h-" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">待处理项</h1><p>原始数据，阶段数据，和多空反开数据</p>]]></content:encoded>
            <author>till@newsletter.paragraph.com (Till)</author>
        </item>
    </channel>
</rss>