This brief forum exchange addresses whether a VN Py user connecting directly to market data, without placing trades, needs broker and account connection details. The reply says that with CTP, the trading API code can be commented out, but contract…
Knjižnica znanja
Povzetki in ključne ideje knjig, razprav, člankov in kode, ki jih berejo naši agenti UI, pripravljeni s Stratmillovim raziskovalnim agentom. Na vsaki strani je povezava do izvirnika.
Iskanje po knjižnici
560 dokumentov
This VeighNa community exchange addresses a strategy that does not appear in the CTA backtesting strategy menu after its files have been copied into the installation. The suggested checks are to place strategy files in a scanned strategies directory, confirm…
This implementation note explains how to extend a CTP trading gateway so position query responses include an average opening price and floating profit or loss. It proposes subclassing the trading API and overriding its investor-position response handler,…
This forum exchange discusses running a VeighNa or vn.py backtest from PyCharm and viewing its results. The questioner reports that a profit-and-loss analysis table and chart can be displayed after following a forum reference, but asks whether static or…
This tutorial explains how a cross-sectional equity model’s predictions become portfolio decisions in VeighNa’s AlphaStrategy workflow. It distinguishes model evaluation from strategy design, then describes storing predictions in a dated signal table,…
This brief forum exchange answers how to run a backtest with locally stored market data in VeighNa. The suggested workflow is to first import the data into the database through the DataManager, then run the backtest using that stored data. The questioner was…
The forum exchange explains why two RSI-related threshold values in an ATR-RSI strategy are calculated during initialization rather than on every bar. The values are formed from the RSI entry setting by adding to and subtracting from the midpoint of the RSI…
A trader asks whether it is normal for prices received through a CTP connection to show a decline while Tonghuashun displays a rise. The response says this can happen because SimNow provides simulated market data and does not guarantee timely updates. A…
A trader reports that a SIMNOW simulated-market subscription for gold futures returned a plausible best bid and ask, but apparently invalid values for deeper order-book levels. The example shows first-level prices and quantities alongside zero quantities and…
This brief forum exchange concerns a portfolio strategy whose backtest finishes without producing an apparent result, even though data loading succeeds. One participant suggests inserting print statements before order functions in the strategy’s bar callback…
A forum exchange discusses using a model built in MATLAB alongside VeighNa trading software. The proposed workflow is to send live market data from VeighNa to MATLAB, return MATLAB’s calculations, and have VeighNa execute trades based on those results. A…
This community post reports a connection problem in a combined testing and live trading setup. The CTP market data connection fails with a handshake decode error, while the trading server connects, authenticates, logs in, confirms settlement information, and…
This forum post describes a problem encountered while retesting a programmatic futures-trading setup through a brokerage gateway. The author has a trading server but no market-data server. Manual orders can execute under the test environment’s own rules,…
A VeighNa community exchange explains that the framework does not automatically persist live order and fill records to a database. Strategy position state is updated through the strategy’s position variable, but this is distinct from maintaining a durable…
A forum user reports that when recording bars for three contracts through a simulated trading account, the final one-minute bar is missing for two Shanghai Futures Exchange contracts but remains available for a Guangzhou Futures Exchange contract. They ask…
This tutorial teaches readers to check whether generated CTA strategy code faithfully implements its written trading rules. It organizes the review around five code areas: parameters, bar aggregation, indicator calculations, signal decisions, and position…
This event outline explains how to extend a language model from generating strategy text to carrying out quantitative research tasks. It introduces tool calling through the OpenAI library: describe available functions to the model, interpret its requested…
The document outlines a workflow for using Baostock as a source of historical Chinese equity data. It recommends downloading a broad stock and index universe, storing adjusted daily bars locally, and retrieving intraday bars only for the dates needed. For…
This guide describes a VeighNa workflow for recording large volumes of futures tick data in TDengine. It outlines running TDengine in a Docker container, configuring database storage and ports, and connecting VeighNa’s CTP gateway and data-recorder app. The…
The document explains why a futures product may appear with different letter casing in public exchange materials and trading software. Using Shanghai Futures Exchange rebar as its example, it distinguishes the public-facing symbol from the machine-readable…
The discussion explains where users can find tick data downloaded through VeighNa’s data management module. One user reports locating the records in the database but not seeing them in the module’s graphical interface. A respondent explains that the…
The discussion addresses how to direct log output to different files when several headless VeighNa trading programs run at the same time. One participant asks about changing the log engine’s output path so each product’s process writes to its own log file.…
The post asks whether a VeighNa backtest can run several instruments against one shared pool of capital instead of assigning starting capital separately to each instrument. The question reflects a practical concern: separate allocations may not represent how…
A forum exchange addresses a failed data endpoint used in a course for retrieving stock prices. The questioner needs daily or minute-level open, high, low, and close data for a specified stock. A respondent says the endpoint appears to be unavailable and…