Hello everyone, Here is a perfectly replicated TradingView backtesting engine condensed into a single library function calculated with arrays. It includes TradingView's calculations for Net profit, Total Trades, Percent of Trades Profitable, Profit Factor, Max Drawdown (absolute and percent), and Average Trade (absolute and percent). Here's how TradingView...
What? In the price action, levels have a significant role to play. Based on the price moving above/below the levels - the underlying instrument shows some price-action in the direction of breakout/breakdown. There are plenty of ways level can be determined. Levels are the decision point to take a trade or not. But if we make the level derivation complex, then...
This is a simple RSI based signal indicator. It is intended for algorithmic trading by bots. For the best results leave it on 1-Hour time-frame. It also works best on bitcoin and stocks, not so much oil. GBP/USD and AUD/USD it fairs well too. When RSI touches 70 it gives a Buy signal and when RSI touches 30 it gives a sell signal. The position is then held out...
TRADE CONDITIONS Long entry: QQE Mod changes to Blue (leading indicator) SSL Hybrid is Blue and price is above MA Channel line Waddah Attar Explosion is Green and above Explosion line Short entry: QQE Mod changes to Red (leading indicator) SSL Hybrid is Red and price is below MA Channel line Waddah Attar Explosion is Red and above...
Converted the hull suite into a strategy script for easy backtesting and added ability to specify a time periods to backtest over.
The indicator is in the top left of the screen! That's all there is, by design. This is a super simple indicator that allows you to see what the real price of a candle was when using Heikin Ashi charts, while not cluttering up your screen. HA charts are a great way to help those who can be spooked by the chaos of the markets (I'm one!), but they have a big...
Description: A Long only strategy based on breakout from a certain level formed by High price. It has auto-backtesting capabilities (you set ranges for the three main parameters: Lookback, TP and SL; the strategy then goes through different combinations of those parameters and displays a table with results that you can sort by Percentage of profitable trades...
Example how to select and set date range window to be backtested. Normally when you change chart period it changes the number of days being backtested which means as you increas the chart period (for example from 5min to 15min) you also increase the number of days traded, so you can not compare apples to apples for which period would yield best returns for your...
Hello traders! I have been developing a fully customizable algo over the last year. The algorithm is based on a set of different strategies, each with its own weight (weighted strategy). The set of strategies that I currently use are 5: MACD Stochastic RSI RSI Supertrend MA crossover Moreover, the algo includes STOP losses criteria and a taking...
Hello Traders As most of you know, I'm a member of the PineCoders community and I sometimes take freelance pine coding jobs for TradingView users. Off the top of my head, users often want to: - convert an indicator into a strategy, so as to get the backtesting statistics from TradingView - add alerts to their indicator/strategy - develop a generic strategy...
This is simple Highest high and Lowest low strategy. Buy when break HH+offset Sell when break LL+offset Offset = (HH-LL)/2
The PineCoders Backtesting and Trading Engine is a sophisticated framework with hybrid code that can run as a study to generate alerts for automated or discretionary trading while simultaneously providing backtest results. It can also easily be converted to a TradingView strategy in order to run TV backtesting. The Engine comes with many built-in strats for...
█ OVERVIEW Portfolio Backtester Engine (PBTE). This tool will allow you to backtest strategies across multiple securities at once. Allowing you to easier understand if your strategy is robust. If you are familiar with the PineCoders backtesting engine , then you will find this indicator pleasant to work with as it is an adaptation based on that work. Much of...
Hello everyone, I am a heavy Python programmer bringing machine learning to TradingView. This 15 minute Bitcoin Long strategy was created using a machine learning library and 1 year of historical data in Python. Every parameter is hyper optimized to bring you the most profitable buy and sell signals for Bitcoin on the 15min chart. The historical Bitcoin data was...
This is a companion script to the PineCoders Backtesting-Trading Engine. It illustrates how to build a signal plot in another script, which can in turn be fed in the Engine to provide entry, exit, filter and stop information. Connection to the Engine is done through its “External Indicator” input field at the very bottom of the Engine’s Settings/Inputs. The...
TradingView backtester has bad reputation. For a good reason - it was producing wrong results, and it was clear at first sight how bad they were. But this has changed. Along with many other improvements in its PineScript coding capabilities, TradingView fixed important bug, which was the main reason for miscalculations. TradingView didn't really speak out about...
This script is an aggregate of a backtesting panel with quantitative metrics, ROI table and open ROI reader. It also contains a mechanism for having a fixed percentage stop loss, similar to native TV backtester. For longs only. Backtesting Panel: - Certain metrics are color coded, with green being good performance, orange being neutral, red being undesirable. •...
Great Expectations helps traders answer the question: What is possible? It is a powerful question, yet exploration of the unknown always entails risk. A more complete set of questions better suited to traders could be: What opportunity exists from any given point on a chart? What portion of this opportunity can be realistically captured? What risk will be...