1062312168 发表于 2026-5-27 21:48:47

Hedging_EA添加自动缩放报价

<div class="ce-block ce-block--focused" data-id="llGl3ZNAxK" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left"><span style="color: rgba(228, 228, 228, 0.92); font-family: &quot;Segoe WPC&quot;, &quot;Segoe UI&quot;, sans-serif; font-size: 14px; font-weight: 600; background-color: rgb(24, 24, 24);"></span>挂到 3 位报价的品种(如&nbsp;XAUUSD.m)时,程序会自动把距离放大 10 倍,实际美元间距、点差限制和滑点效果与 2 位黄金一致。<span style="color: rgba(228, 228, 228, 0.92); font-family: &quot;Segoe WPC&quot;, &quot;Segoe UI&quot;, sans-serif; font-size: 14px; font-weight: 600; background-color: rgb(24, 24, 24);"></span></div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="jA8pZeYcmJ" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">设置3位数的点数参数有点比较麻烦,又怕遗漏。</div>
        </div>
</div><style type="text/css">
.ce-block {
    margin-bottom: 20px;
}
.ce-block__content,.ce-toolbar__content {
        /* max-width:calc(100% - 50px) */
        margin-left: auto;
    margin-right: auto;
}
.ce-paragraph {
    line-height: 1.6em;
    outline: none;
    text-indent: 2em;
    font-size: 16px;
}
.ce-paragraph--right {
    text-align: right;
}
.ce-paragraph--center {
    text-align: center;
}
.ce-paragraph--left {
    text-align: left;
}

.ce-paragraph--justify {
    text-align: justify;
}

.ce-paragraph-text-indent {
    text-align: justify;
}
.ce-paragraph:empty::before{
content: attr(data-placeholder);
color: #707684;
font-weight: normal;
opacity: 0;
}

/** Show placeholder at the first paragraph if Editor is empty */
.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {
opacity: 1;
}

.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,
.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {
opacity: 0;
}

.ce-paragraph p:first-of-type{
    margin-top: 0;
}

.ce-paragraph p:last-of-type{
    margin-bottom: 0;
}


.svg-icon {
    width: 1em;
    height: 1em;
}

.svg-icon path,
.svg-icon polygon,
.svg-icon rect {
    fill: #4691f6;
}

.svg-icon circle {
    stroke: #4691f6;
    stroke-width: 1;
}
</style><style type="text/css">
.inline-code {
background: rgba(250, 239, 240, 0.78);
color: #b44437;
padding: 3px 4px;
border-radius: 5px;
margin: 0 1px;
font-family: inherit;
font-size: 0.86em;
font-weight: 500;
letter-spacing: 0.3px;
}
</style>

admin2 发表于 2026-5-31 16:52:18

这个不好弄的,亲,如果做成自动放大,会产生非常多的问题。建议还是检查跟点数有关的所有设置项,并乘以10。

admin2 发表于 2026-5-31 17:44:00

这个我们之前都研究过的,自动缩放会造成问题,因为总有一些特殊情况。
页: [1]
查看完整版本: Hedging_EA添加自动缩放报价