💭 Overview 💢 What is the "Template Trailing Strategy” ❓ The "Template Trailing Strategy" (TTS) is a back-tester orchestration framework. It supercharges the implementation-test-evaluation lifecycle of new trading strategies, by making it possible to plug in your own trading idea. While TTS offers a vast number of configuration settings, it primarily allows...
This script demonstrates how to do trailing sell. With this approach, given an exit signal, instead of selling directly, you just follow the price upwards (for long positions) and you sell when the price decreases by a small percentage. The order will be executed when the next bar is closed. This approach may increase the profits (slightly) in some strategies!...
This script demonstrates how to do trailing buy. With this approach, given an entry signal, instead of buying directly, you just follow the price downwards (for long positions) and you buy when the price increases by a small percentage. The order will be executed when the next bar is closed. This approach may increase the profits (slightly) in some strategies!...
Hello All, This script is a framework to analyze and see the results by combine selected indicators for (long, short, longexit, shortexit) conditions. I was designed this for beginners and users to facilitate to see effects of the technical indicators combinations on the chart WITH NO CODE You can improve your strategies according the results of this system by...
I have created a starting template for strategies. It allows quick control of turning on/off long and short conditions, or disabling them entirely. It includes trade filters for strategy equity and volatility. If there is not enough volatility it will not trade, or if the strategy equity is below the equity ema it will not trade. It has standard stops and...
This is the fastest way to create a Trading View strategy. The template I have created includes stoploss and take profit enabling and plotting, date range, and strategy buy and sell conditions. I believe this will benefit the people in the Trading View community by creating a strategy faster and more efficiently than just repeating pine script code. All that needs...
Trying to include few basic things which is needed for strategy which can be used as template. Few important components Strategy parameters Few important parameters include - initial_capital, default_qty_type, default_qty_value, commission_type, pyramiding and commission_value. All my strategies will have similar settings with initial captial set to 20000 to...
A template example on how to apply the famous Martingale gambling strategy. When your strategy gets an exit signal for your long position that leaves you without profit, you re-enter on the next entry long condition with double the capital of the previous amount entered with. You keep doubling the amount of capital entered with until you finally exit with a...
Hello Traders With the Ultimate Strategy Template , I shared a template to connect any indicator to this template and get backtesting results in less than a few minutes Now sharing another template ... many traders ask me to develop for them a screener/scanner based on a custom indicator on TradingView. The current TradingView screeners are great but don't...
This is a template not actually meant for trading. I picked two random oscillators. This is a template meant to turn into a live trading strategy, however. It's literally just a specialized take profit/stop loss system. It is to ensure your bot doesn't make any bad moves that you wouldn't have manually. The code should be pretty well annotated. Putting this into...
This is a study intended to port the work of /u/QuantNomad's "Kozlod - All-time high/low alerts" to pine version 4 without giving any alerts. It is intended to capture the most extreme points on any given price chart in real time, the absolute high and absolute low points. Ideally, the plotted lines would strictly diverge from one another in opposite directions...
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...
A strategy template with following user inputs: 1. backtest start date 2. tp% and stop loss% 3. trail stop price and trail stop offset The long and short condition is ma crossover and corssunder by default. You can change the logic with your own.
█ OVERVIEW This Framework allows Pine Coders to quickly code Study() based signal/strategy and validate its viability before proceed to code with more advance/complex customized rules for entry, exit, trailstop, risk management etc.. This is somewhat an upgraded version of my earlier personal template with different strategy used, cleaner code and additional...
Sample Strategy: MACD Crossover with trend filter options MA Filter : Price Close Above MA, Search for Buy, Price Close Below MA, Search for Sell ADX Filter : Take trade only when ADX is above certain treshold MACD Signal : MACD Cross above signal line while under 0 line indicate Buy Signal MACD Cross below signal line while...
This script is a template designed to provide developers with UI color customization for v4 lines and labels. The color pallete used within this script is a full spectrum "web safe" format with 216 colors to choose from. Colors are easily modified via the RGB inputs. The designated color selector function takes in the RGB values and returns the corresponding hex...
Experimental NAND Perceptron based upon Python template that aims to predict NAND Gate Outputs. A Perceptron is one of the foundational building blocks of nearly all advanced Neural Network layers and models for Algo trading and Machine Learning. The goal behind this script was threefold: To prove and demonstrate that an ACTUAL working neural net can be...
Introduction Today i propose an hybrid filter that use a classical FIR architecture while using recursion. The proposed method aim to reduce the lag generated by fir filters. This particular filter is a sine weighted moving average, but you can change it since the indicator is built with the custom filter template (1). Even if it use recursion it still is a FIR...