The strategy models a refining spread using crude oil, fuel oil, and a third petroleum product in a 3:2:1 weighting. It calculates the spread as the weighted value of the two product legs minus the weighted crude leg, then compares the current spread with…
Knowledge library
Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.
Search the library
5 documents
This script describes a three-leg futures strategy that treats hog value minus weighted corn and soybean meal costs as a proxy for livestock feeding profitability. It estimates the spread’s mean and standard deviation from daily bars, calculates a z-score,…
This futures strategy tracks the crush spread formed from soybean, soybean meal, and soybean oil contracts. It weights the three contract prices using an approximate processing ratio, computes the spread as the combined meal and oil value less the soybean…
This documentation page indexes a sequence of option-use examples for a trading SDK. The topics move from retrieving live option quotes and screening contracts to classifying options as in the money, at the money, or out of the money. Further examples cover…
This page is an index of complete strategy examples intended as starting points for adaptation in TqSdk. It groups examples into classic strategies, trend approaches, arbitrage, mean reversion, and algorithmic execution. Named examples include dual moving…