Langsung ke konten

知识库

Berisi ringkasan dan gagasan utama dari buku, makalah, artikel, serta kode yang dibaca agen AI kami, ditulis oleh agen riset Stratmill. Setiap halaman menautkan ke sumber aslinya.

搜索资料库

560 dokumen

vn.py community

This forum exchange explains how to access an in-progress aggregated bar when calculating indicators before a higher-timeframe candle closes. A BarGenerator must first receive lower-timeframe bars through its update method; once initialized, its current…

Indikator teknikalEksekusi tradingFutures
vn.py community

The post reports a backtest failure caused by subtracting a time-zone-naive datetime from a time-zone-aware datetime while checking whether orders have timed out. The strategy had loaded historical bars and begun replay, but halted when its timeout check…

BacktestingEksekusi tradingManajemen risiko
vn.py community

The forum exchange addresses a bracket-order problem: when a take-profit stop and a protective stop are both active, a rapidly moving one-minute bar may cross both prices. The suggested approach is to place both as local stop orders and let the strategy…

Eksekusi tradingManajemen risikoMikrostruktur pasar
vn.py community

This forum exchange addresses how a strategy can retrieve the cost basis of a contract it already holds, so later decisions can account for current profit or loss. Participants advise maintaining the value in strategy-managed state: record it when trade…

OpsiEksekusi tradingManajemen risiko
vn.py community

This brief forum exchange concerns a user who cannot connect through the CTP trading interface. A respondent suggests that the server may be switched off during the weekend and advises trying again on a trading day. The practical takeaway is to check whether…

FuturesEksekusi trading
vn.py community

This forum exchange concerns a user who could connect to a Rohon simulated trading account through VeighNa Station but received a disconnection error when starting a command-line configuration. A reply initially suggests checking whether the installed Rohon…

FuturesEksekusi trading
vn.py community

This forum exchange addresses a new user whose VeighNa startup screen differs from tutorial demonstrations and lacks a CTP connection option. A reply explains that market data will not appear until a market-data subscription is configured, and connection…

Eksekusi tradingMikrostruktur pasar
vn.py community

The post questions where the discount factor belongs in a binomial option-pricing recurrence. The cited implementation discounts the expected value of holding the option at a node, then compares that value with immediate exercise value and zero. The author…

OpsiPenetapan harga derivatif
vn.py community

This short forum post asks how VeighNa's TargetPosTemplate handles order replacement during live trading. The shown trade routine checks whether an order has finished; if not, it cancels an old order, and otherwise sends a new one. The author asks whether a…

Eksekusi tradingMikrostruktur pasarManajemen risiko
vn.py community

This release overview describes VeighNa 3.9.3 additions for institutional futures and options workflows. A new L-Star interface provides trading connectivity for FOF and MOM products. It is described as similar in use to VeighNa’s CTP interface, while market…

FuturesOpsiPasar TiongkokEksekusi trading
vn.py community

The document proposes using VeighNa ScriptTrader to detect manual futures trades and submit limit orders to close them at a target offset. It explains that CTA strategies may not receive trade callbacks for orders they did not place, so the proposed…

FuturesEksekusi tradingManajemen risiko
vn.py community

The thread discusses changing a Turtle-style CTA backtest from a fixed number of contracts per trade to dynamically sized positions. A user reports editing a strategy variable intended to replace the fixed unit, but the refreshed backtest still uses the…

FuturesMengikuti trenPenentuan ukuran posisiBacktesting
vn.py community

The discussion asks whether VeighNa strategies can submit market orders and gives a practical example: close a position after it has been open for 30 minutes if neither its profit target nor stop has been reached. The reply suggests either placing an order…

Eksekusi tradingManajemen risiko
vn.py community

A VeighNa community exchange discusses why a user testing the Pegasus system can subscribe to contract quotes from CFFEX but receives no updates for contracts from other exchanges. The response explains that Pegasus is a China Financial Futures Exchange…

FuturesPasar Tiongkok
vn.py community

This note addresses a position-accounting problem reported for Shanghai-listed futures: after opening new contracts and closing older ones, the remaining same-day position’s average price can become zero. It presents a recalculation approach that starts with…

FuturesManajemen risikoStatistik
vn.py community

This forum post raises a backtesting problem: a simple EMA20 strategy on TQQQ reports that account funds fell to zero or below, preventing the platform from calculating performance statistics. The trader questions the warning because the listed trade entries…

SahamBacktestingManajemen risiko
vn.py community

This forum exchange investigates why a VeighNa trading script fails to find contracts even though the graphical Studio client receives market data. Participants explain that a strategy module may start before contract queries finish, and that simply adding a…

FuturesEksekusi tradingMikrostruktur pasar
vn.py community

This short forum exchange discusses a timing problem in a 15-minute bar strategy: a signal is generated when a bar closes during a trading break, so an order submitted immediately may fail because the market is closed. The question also raises the…

Eksekusi tradingMikrostruktur pasarManajemen risiko
vn.py community

A VeighNa community discussion investigates a CTA backtest in which the recorded position appears to exceed the strategy's actual holdings. The trader reports opening seven contracts, then seeing several stop orders close quantities that add up to more than…

FuturesBacktestingEksekusi trading
vn.py community

This note develops a proposed A-share strategy for vn.py around two prior-day setups: a first limit-up close after two days without a limit-up, or a session that touched the limit price but did not close there. Candidates are further filtered by turnover…

SahamPasar TiongkokIndikator teknikalManajemen risiko
vn.py community

This project description outlines a LightGBM system for classifying the direction of futures prices over a configurable forward horizon. It processes one-minute bars across multiple contracts, builds technical and statistical features, and labels future…

FuturesPembelajaran mesinBacktestingManajemen risiko
vn.py community

This forum exchange addresses how to choose a target metric when optimizing strategy parameters in VeighNa’s Jupyter-based workflow. A user shows a Sharpe ratio target and asks which field represents total profit, after an attempted profit-field name did not…

BacktestingStatistik