Leveraging Machine Learning For High-Frequency Trading of Commodity Futures
Leveraging Machine Learning For High-Frequency Trading of Commodity Futures
Leveraging Machine Learning For High-Frequency Trading of Commodity Futures
Value Propositions
Automatic high-frequency (enter/exit positions every second) trading of
commodity futures using multiple strategies.
Pricing of futures contracts based on convergence arbitrage model,
correlating spot/maturity/positive news to futures.
Presentation of market data from multiple exchanges (exchange source
based on contract) in OMS user interface via candlestick charts, pie charts
Margin account computation on a per-contract and per-portfolio basis, based
on the marking to market of open contracts
Fully-functional order entry with FIX (Financial Information Exchange)
protocol data translation.
Line handler for exchange connectivity runs as a separate process to route
orders from the database to the exchange and parse executions.
Robust historical data module which maps online contract prices to training
vectors for the regression model
Margin Computation
Percent of notional required to be deposited in order to purchase futures is margin.
Initial and maintenance amounts are set by exchanges on a per contract and per
portfolio basis
As the futures price rises , the account is credited and, as it falls, the account is
debited.
If the maintenance margin level is breached, a margin call is issued
Key benefit of the system is the initial/maintenance computation and the margin
call level computation (as the price of the contract moves)
A desirable feature would be connectivity to the clearinghouse to post margin
deposits and receive refunds electronically
The P&L effects on the portfolio are: Profit = final margin-initial margin-(deposits on
margin calls)
Another future benefit would be to render the underlying volatility of the contracts
for which the margin is computed
Generate
trade
record in
database
Close
offsetting
open
contracts
Compute
margin,
P&L
Revers
al Type
Check
Scan Thread
Start
Scan
End
Type
Check
Timebased
end
Timebased
reversa
l
Currtimestarttime>=e
End Scan
Scan nd int
Time
Check Currtimestarttime<en
Continue Scan
d int
Non-Reversal
Currtimestarttime<rev
ersal int
Revers
al Type
Check
Scan Thread
Start
Scan
End
Type
Check
P/Lbased
end
Profit/los
s-based
reversal
CurrOpenProfi
tReverse (close
InitProfit>=re
position)
versal PL
Open
Contrac
ts P/L
Check CurrOpenPLNon-Reversal
startPL<rever
sal PL
CurrClosedPLstartPL>=end
End Scan
PL
Scan PL
Check CurrClosedPL-
startPL<end
Continue Scan
PL
Portfolio Visualization
Time series graph of profit/loss
Open contracts, closed contracts (accounting position)
Two and possibly three-dimensional line graphs will
render the portfolio time series. X-Axes can be date and
commodity product
Point is to capture a snapshot of the firms current
position (or the funds return to date)
Product Universe
Commodity Futures Corn, Wheat, Soybeans, Gold, Oil,
Sugar
Options on Commodity Futures
Volatility based on VIX volatility index computed by
the Chicago Board Options Exchange (CBOE)
Gold Volatility Index Futures (CME)
Crude Oil Volatility Index Futures (CME)