Questions tagged [quant-trading-strategies]

Quantitative trading strategies use quantitative signals and a set of predefined systematic rules to make trading decisions. Strategies operate within parameters based on historical analysis (backtesting) and real world market studies (forward testing). Strategies may be executed manually (by a human trader) or automatically (by a computer).

Filter by
Sorted by
Tagged with
1
vote
0answers
30 views

Calculating performance decay of a strategy

Came across this thread which basically advises t-test for difference in means across periods to calculate whether our edge is deteriorating. The catch being that this test will probably not be ...
3
votes
2answers
227 views

Can alpha be positive if cumulative returns underperform the benchmark?

According to my portfolio analysis program (pyfolio), the alpha of the following strategy is .17 (I am assuming 17%). [Based on pyfolio documentation, alpha here is the "annualized alpha".] ...
0
votes
0answers
36 views

How to Calculate JDK RS Ratio of a brazilian stock

I'm trying to calculate JDK - RS Ratio using python, however it seems it is not working well. These are some articles that i've found on the internet, concerning JDK RS Ratio: How to calculate the JdK ...
0
votes
1answer
65 views

Steps to fit a Machine learning model for prediction of up and down market movement

I have around 5 years of data of an index containing many features on a daily basis. I want to classify whether the index will move up or down the next trading day (up or down movement is determined ...
27
votes
3answers
7k views

Papers about backtesting option trading strategies

I am looking for all kinds of research concerning option trading strategies. With that I mean papers that publish results on different option trading strategies properly backtested with real-world ...
3
votes
3answers
3k views

backtesting options strategies in R

I would like to backtest an options strategy in R. I require the ability to delta hedge and rebalance to options in the portfolio at different frequencies (daily, monthly,etc.) What packages are the ...
0
votes
0answers
34 views

Cyclic analysis for trading signal generation

I would like to build trading signals using cyclic analysis in order to obtain a forecast afterwards. I had a look in literature and Hurst analysis, Fourier, etc, are used However, I am struggling to ...
-2
votes
2answers
232 views

Automatic trading strategies - what are benchmarks for PL on serious backtesting?

There are plenty books and sites which offer automatic trading strategies (robots) and claim they are very profitable. On the other hand many people do not believe in such things, saying that: if ...
-1
votes
5answers
199 views

Sending order to Forex or Stocks from Python strategy

I have my own strategy developed in Python. But I couldn't find a reliable method to send, close, and modify orders using Python. Are there any tools that help order management using Python? I also ...
2
votes
0answers
84 views

Random Walk Theory vs. Quant Trading

I am quite new to random walk theory so please excuse my rather simply put question but I am wondering how can quant trading desks and other algorithmic trading firms exist if there is the random walk ...
0
votes
0answers
32 views

How to calculate the longest expected losing streak for a system that trades all the index members simultaneously?

For a trading system that trades only one security we can easily compute the longest expected losing streak using this formula: where: n is the number of trades, ln is natural logarithm, P is the ...
2
votes
0answers
108 views

Reading Recommendations - Quantitative Investment Strategies from a “genuine” quant viewpoint

I recently stumbled the lecture notes of Prof. Avellaneda on Quantitative Investment Strategies (near the bottom of this page). The exposition is highly structured and rigorous, but I am missing in ...
0
votes
0answers
17 views

How do I calculate inflation adjusted CAGR?

I'm running backtests with monthly data going back to the 1920's and I'd like to compare different strategies using inflation adjusted CAGR. But I don't know how to calculate it. Would any of these ...
0
votes
1answer
134 views

Known mispricing opportunities only available for small traders

Warren Buffett has famously said that he could generate 50% annual returns if he was working with small sums of money. (He cannot move the needle enough now with large amounts of capital). Perhaps two ...
0
votes
0answers
21 views

Historical Economic Release Calendar

Does anyone know if any providers have a historical economic release calendar? For example, releases of things like ADP private employment, or ISM surveys? I ask because I would like to backtest a ...
1
vote
0answers
34 views

probability on strategy expected return

I’ve been thinking about this for awhile and couldn’t figure it out myself. Assume you have a trading strategy, which return is normally distributed. strategy return has a mean of 1 basis point and a ...
0
votes
0answers
37 views

How to backtest using portfolio compositions in python using backtrader

I have a csv file / pandas dataframe which looks like this. It contains various portfolio compositions for different strategies. Mostly based on different optimisation methods, max sharpe, min VaR etc....
0
votes
1answer
98 views

What data should I use for a machine learning model

I would like to ask you for an advice of any of you could help me with this information it would be really helpful. I am trying to build a reinforcement learning trading bot that based on the current ...
11
votes
1answer
247 views

Trading strategy for a misspecified density

I am trying to implement a strategy that exploits potential misspecifications in density predictions (e.g.: long states with too-low probability; short states with too-high probability). In particular,...
0
votes
1answer
85 views

Curve fitting under different regions and stitching

Is there a way to fit a 2D curve under the following conditions: The curve is defined by 2 functions for x>a, and x<a Prefer a fit that is continuous and differentiable at x=a
2
votes
1answer
246 views

Formerly profitable algorithmic trading strategies?

Since algorithmic trading strategies often stop being profitable after a while, I wonder if any such formerly profitable strategies have been made public, and if so, where can I find them?
0
votes
0answers
22 views

Backtesting python libraries [duplicate]

Might there be any backtesting libraries in Python that computes the various statistics (Sharpe Ratio, Calmar Ratio, drawdown, win rate etc) given a dataframe of holdings and its holding duration (...
1
vote
2answers
1k views

Historical tick data level 1 and level 2

I am a software engineer and want to run some simulation of over historical market data . I am pretty new to finance and trading world. To automate some of my strategies I would like to run some back ...
8
votes
2answers
1k views

How long do algorithmic trading strategies typically remain profitable?

As I understand it, an algorithmic trading strategy could lose profitability, if, for example: it's rediscovered by others employee turnover leaks the strategy to others market conditions change ...
-2
votes
1answer
125 views

What are good examples of using Big Data for a trading strategy?

As the title say, I am looking for trading strategies in the stock, bond, forex market, that rely on the usage of Big Data. The more out of the box strategy the better. Also if anyone knows any ...
0
votes
0answers
16 views

Backtesting multiple portfolio optimisation and trading strategies using number of stocks to purchase as input

I want to backtest a trading strategy + portfolio optimization but I have never used a backtesting program before. I am comfortable with python I think. My outputs from my trading logic (after ...
1
vote
1answer
76 views

Are there better performance measures for mean-reverting vs trend-following trading strategies?

The Sharpe ratio is often used as measure to assess risk-adjusted returns of trading strategies. However, there are also other measures that can be used to assess risk-adjusted returns like the ...
0
votes
1answer
155 views

Optimize Bollinger Bands Strategy

I was proving a very simple strategy with Bollinger Bands for a intraday timeframe (1 minute) that buy on lower band and sell in a higher band (Very common strategy), but in backtesting in E-Mini SP ...
3
votes
1answer
192 views

evaluating garch models

I used ugarchroll to backtest my garch model on S&P returns this is my code ...
0
votes
0answers
16 views

As reported financial statements historical data [duplicate]

May I request for suggestions on data vendors for historical as reported fundamental data? For example as reported eps, as reported revenue, as reported depreciation and amortization expenses? I tried ...
1
vote
1answer
113 views

How does a trader choose how to size his limit order?

Say Bob wants to buy \$30 million worth of APPL stock at a price of \$130. He decides to use a limit order. But posting a $30 million limit order would drive the price up and prevent him from being ...
1
vote
1answer
69 views

How to compute returns of a Pairs Trading Strategy with different holding periods?

I am currently working on a project where I am testing a Pairs Trading Strategy based on Cointegration. In this strategy I am considering to trade a couple of hundred stock pairs every day over a time ...
2
votes
1answer
340 views

What are the “sniffing” or “stalking” algorithms?

I was looking for all the sorts of trading algorithms used in stock market and I came across the so-called "sniffing" algorithms. However, the explanations of this concept I found are very ...
0
votes
0answers
94 views

Pairs Trading Strategy Pre-Selection

I am writing paper on the profitability of the pairs trading strategy using US equities. I have done a pre-check to see which business sectors have stocks that are cointegrated. The utilities sector ...
0
votes
0answers
64 views

Effectiveness of trading strategies

Generally, a trading strategy is effective for a certain duration which is a function of the environment, news etc. I am currently learning about basic strategies that are (or once were) used. Some ...
1
vote
0answers
94 views

Pairs Trading (Cointegration Approach) - Daily Cointegration Test

I have a question regarding the Pairs Trading strategy based on the Cointegration Approach. Most of the papers/literature I found on Pairs Trading using the Cointegration Approach are usually testing ...
0
votes
0answers
35 views

Strategy in mql5

I have the following code(is not mine) in an Expert Advisor: if((Handle(DXHandle, 0) - Simbolo.Ask()) >= (DXPontosDistancia * _Point)){...} Handle(DXHandle,0) ...
16
votes
7answers
3k views

Can social media be applied to algorithmic trading?

Can social media sites, like Twitter, be used to analyze financial markets for algorithmic trading? How much research has been done on this topic?
1
vote
2answers
229 views

Implied volatility is returning infinity

I am trying to calculate implied volatility using javascript , I have following code ...
2
votes
1answer
63 views

stock price path simulation using GBM, is it possible to run the same simulation over and over again?

When I simulate a stock's price path using geometric brownian motion I am sometimes able to get a pretty good forecast that fits the real values very well. But if I run the simulation again, the ...
1
vote
1answer
67 views

How to Manage Large Orders

Forgive me for any violations of posting rules, I’m new to this forum. I’ve written an algorithm that checks the order book for the price point that would completely fill my entire available balance, ...
3
votes
1answer
3k views

Interactive Brokers - Tracking High Relative Trading Volume

I'm new to Interactive Brokers (and day trading), I am trying to setup my different charts etc. How can I have alerts/monitor for any stock that is trading at above average volume - compared to X? ...
5
votes
5answers
769 views

Physical commodity trading quantitative risk return model

I am very new to commodities, I was previously in portfolio management/optimization (Black Litterman Markowitz etc). I am now a Buy-Sell analyst for Petrochemicals, and need to understand the basic ...
4
votes
1answer
113 views

Exposure/Factor Analysis on a loan portfolio?

I am working on performing factor analysis on a loan portfolio. This is my understanding so far, and I was hoping that some of the smart folks here might be able to chime and guide me through this ...
0
votes
0answers
31 views

How does Intrinsic and Time Premium factor into deep ITM options for leveraged securities

So I'm curious about the downside risk on this trade. Some backstory - I noticed the options chain for TZA had basically no volume or open interest for deep ITM calls about a week ago while also ...
0
votes
1answer
141 views

Corwin-Schultz estimator of bid-ask spread

I am reading a paper "A Simple Way to Estimate Bid-Ask Spreads from Daily High and Low Prices" cf.A Simple Way to Estimate Bid-Ask Spreads from Daily High and Low Prices The authors proposed ...
0
votes
0answers
40 views

Which exact interest rate should I use for valuing equity index futures (ie. SPX, MXEA)?

I'm trying to build a model that values futures for equity indicies like SPX. For example, this product link here. I know that the model is simple (please correct me if I'm wrong): $$ S_{T} =S_{0}e^{(...
0
votes
0answers
65 views

Leakage and bias in XGBoost trading strategy

I apologize for my persistence, i'm on a course of study and doubts increase every day. My goal is "just" to code a profitable forex trading strategy with machine learning. I'm trying to ...
0
votes
0answers
121 views

How is the total return of an alpha strategy being calculated during backtesting?

I am using a quant simulation platform and I have chosen a formulaic alpha to be used. Now the platform is backtesting and displaying the total return of the alpha strategy over 12 years. The trading ...
1
vote
3answers
156 views

Backtesting Period Effect

I am backtesting a stock trading strategy. I tested it over two time periods: 2000-2020 and 2015-2020 and compared the results against a buy and hold strategy. To be clear, I only changed backtesting ...

1
2 3 4 5
9