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
3
votes
2answers
4k views

Calculating true value of a stock given the order-book and recent trades

I'm trying to calculate the 'true value' of a stock listed on an exchange. I have access to the limit order-book (containing all bid/ask quotes) and also all trades which have taken place (which ...
1
vote
1answer
68 views

How to calculate basic components like trend, momentum, correlation and volatility in Pandas(Python)

I am new to quant. finance and trying to calculate trend, momentum, correlation and ...
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 ...
0
votes
1answer
101 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 ...
6
votes
1answer
152 views

What are the most common ways that quantitative funds construct industry/style-neutral factor portfolios?

For instance, consider momentum strategies. Naive portfolio construction will likely load on large style/industry return components, which increases portfolio risk dramatically. How do quant funds ...
0
votes
0answers
30 views

Calculation of Long-Short-Portfolio returns for different holding periods

I have monthly stock returns I want to invest in according to my trading signals. Now I want to figure out the optimal holding period of the long-short-positions. (The same time for both positions). I ...
2
votes
1answer
78 views

Does time remaining matter in NO Touch-ONE Touch probabilities?

I asked a question some days back and got an answer which I understand and make sense: Probability of touching short call strike and not touching touching short put strike of a short strangle? However,...
3
votes
1answer
210 views

evaluating garch models

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

How to “best” exit multiple trades?

Let say I have N opened trades (N = s + b) that are partialy hedged, and paritaly not. In general s != b. Some of them are market sell orders (s), and the rest of them are market buy orders (b). They ...
-1
votes
1answer
135 views

Barriers on structured notes

I asked a question here: Structuring and Customization Thanks to all the contributors. However, I now have a follow-up question. I would like to buy barrier options and I was informed from that post ...
1
vote
1answer
142 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 ...
-3
votes
1answer
52 views

why am I seeing a value error? adv_fml. lopez de prado

This code is a snippet from Lopez De Prado Advances in Financial Machine Learning page 44 ...
-2
votes
1answer
42 views
0
votes
1answer
81 views

How to compute NPV of Latin American swap CLP-TNA (chilean) using quantlib?

I am trying to value the Latin Americans swaps. But CLP-TNA valuation is far off from the actual valuation. Please suggest, what I am missing in below methodology to compute NPV. ...
0
votes
1answer
89 views

Why not calculate Kelly using semivariance? As w Sortino

Kelly is calculated as mu / sigma^2. If we remove our highest performing returns from our calculations this actually increases our Kelly leverage, which does not make sense to me. A less profitable ...
-1
votes
2answers
106 views

One touch UP no touch DOWN, One touch DOWN no touch UP [closed]

I was reading about exotic options and I came across something new. One touch down no touch up option and the other one I saw was One touch up no touch down option. I would like to understand how it ...
1
vote
1answer
130 views

Questions regarding a “lite/kindergarten” Barbell investement strategy implementation

The idea for this question is more or less taken from a slight hint regarding how Universa Investments L.P. functions from Taleb's Antifragile (obviously the real case is far more complex but this is ...
4
votes
1answer
156 views

Question about calendar spread mean-reversion strategy

I'm excited to ask my first question here! I'll try to describe the mean-reversion strategy with some background, then explain what I couldn't understand. The strategy is described in Earnest Chan's ...
1
vote
0answers
58 views

How to extract informative value from correlations of assets? Subadditivity of correlation calculation an issue

I was reading Nassim Taleb's Paper: Fooled by Correlation and found it very informative. I had always struggled with finding value in correlation in Finance, especially seeing a lot of bad ...
-4
votes
1answer
76 views

How to choose a stock? [closed]

So far, I have only been working on systems that track numerous stocks and evaluate which present the best opportunities at a given time. I have grown curious about building a day-trading system that ...
1
vote
3answers
609 views

If 90% of retail traders lose money, doesn’t that mean price movements are not random?

If 90% of retail traders are said to loose money, which trade in the short term, doesn’t that mean price movements are not random? My reasoning is that if short term price fluctuations were ...
3
votes
2answers
424 views

What is the reason for using log prices in Pairs Trading (Cointegration)?

I was wondering, why some of the research papers on pairs trading (using the cointegration approach) are using log prices to determine the spread of a pair? Why are they not simply using regular ...
1
vote
0answers
29 views

How can one, from regular predictions of high & low prices of a security, their variances and error covariance, construct a trading strategy?

Suppose I have an algorithm that provides a prediction of the daily high and low of some security n periods in the future, a confidence interval for each of these predictions, and the correlation ...
0
votes
0answers
54 views

Sharpe ratio differs from Tradingview

I tried to backtest a simple strategy on TradingView, it made 6 trades with these results: Now I want to calculate Sharpe ratio using definition provided by TradingView. So, my daily returns(...
0
votes
0answers
67 views

Expected value of P&L based on option prices

How can we compute the expected value of P&L assuming the option price is given? Do we need to have more information to calculate P&L?
1
vote
0answers
36 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
243 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
71 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
75 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
50 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
240 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
220 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
106 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
36 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
117 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
25 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
138 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
22 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
41 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
44 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
108 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
252 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
87 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
311 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
24 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 (...
8
votes
2answers
2k 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
133 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
17 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
2 3 4 5
10