Im using a TP and SL script in one of my strategies for backtesting. The issue I'm having is the take profit or stop loss is triggering, but they are ...
Im using a TP and SL script in one of my strategies for backtesting. The issue I'm having is the take profit or stop loss is triggering, but they are ...
I have my own Pine script strategy V5 and it's profitable on almost all forex pairs and XAU pairs as well. However, it's somehow inflated because it i ...
Say you have a Pandas df that contains the OHLC (short for the Open, High, Low, Close) prices of a particular financial asset. Also, you have two oth ...
In this simple code for pinescript v5 I tried to backtest a strategy in which the stop loss are at 2% of my order and same thing for take profit. Whe ...
I would like to trigger the column contain Boolean back and forth based on the condition from another column. The idea is to determine the safe zone t ...
if we want to test a strategy that keeps a trade open for a particular time, how do we code that in pinescript? Eg: ...
I am trying to write an algorithm in Python that backtests a strategy based on available data. The flow should be: Start with x amount of dollars ...
I want to have up to 3 longs or 3 shorts. To keep track what positions I have opened, I have control variables defined at the beginning. Description o ...
I'm trying to learn backtesting.py, when I run the following sample code, it pops up these errors, anyone could help? I tried to uninstall the Bokeh p ...
belows are example of riskParityPortfolio and portfolioBacktest library the result of sample is empty. anyone know why? I'm suspicious about data ty ...
I would like to know if someone has found a solution to counter this horrible calculation from tradingview: when Calc on every tick is selected on ...
I'd like to use vectorbt to backtest pairs trading strategies and need a way for an Indicator/Signal to go long on one pair and short on the other whe ...
Usually when we are looking for a continuous way to backtest our own strategy we see how to generate data using Random Walk and using Brownian Motion, ...
Good Morning all! I've written a strategy in the Pine Editor, but unfortunately it doesn't quite work the way I want it to. Either it comes to repaint ...
Backtesting.py produces an object of the following type:backtesting._stats._Stats. I'm using three different methods (RSI, 4 moving averages, skopt) t ...
I am trying to use quantstrate to do backest. But could not update the lastest equity using "tradeSize=quote(last(getEndEq(acct,Date = timestamp)))" t ...
When I am trying to optimize my strategy in tradingview, I keep receiving this error totally randomly!! study error: "Modify_study_limit_exceeding" w ...
I read a book named Trading Evolved and saw this code, where there are context variables in all 3 functions. I'm a newbie in Python and don't have a ...
I have this DataFrame: df = pd.DataFrame({"val": [1, 2, 3, 5], "signal": [0, 1, 0, 0]}) df val signal 0 1 0 1 2 1 2 3 0 3 5 0 T ...
I was trying to build a code which can manipulate Moving Averages from a closing price data. There is a method in VectorBT that allows to do that, whi ...