This is a proof-of-concept Backtest Adapter that can be used with my recent publication "Machine Learning: Lorentzian Classification" located here: This adapter is helpful because it enables interactive backtesting with TradingView's built-in "Strategy Tester" framework without the need to translate the logic from an "indicator" script to a "strategy"...
Trading Bot V1, This code implements a combined trading strategy that uses several indicators and strategies to make buy and sell decisions in the market. The code is written in Pine Script™, which is a programming language used in the TradingView platform. By BraelonWhitfield.Eth The strategy uses the Average Directional Movement Index (ADX) and the Pine...
The Rocket Grid Algorithm is a trading strategy that enables traders to engage in both long and short selling strategies. The script allows traders to backtest their strategies with a date range of their choice, in addition to selecting the desired strategy - either SMA Based Crossunder or SMA Based Crossover. The script is a combination of trend following and...
================== Read This First Before Use This Strategy ============== *********** Please be aware that this strategy is not a guarantee of success and may lead to losses. *********** Trading involves risk and you should always do your own research before making any decisions. ================= Thanks Source Script and Explain This Strategy...
This is a Signal Indicator that emits signals based on mouse clicks when the indicator is added to the chart, or later on in the "Settings/Inputs" tab by changing/selecting the open time of the desired bar of each one of the signals. It is designed to be used as an External Input for the "Template Trailing Strategy" to verify the correctness of the features the...
Quickly draw a 10-level grid on your chart with our open-source tool. Our grid tool offers a unique solution to traders looking to maximize their profits in volatile market conditions. With its advanced features, you can create customized grids based on your preferred start price and line distance, allowing you to easily execute trades and capitalize on price...
Hello traders, I had a chat with a friend recently who's using a fund manager services to invest for him in some US-based ETFs tracking the US indices. I showed him using an online tool that those 2% annual fees he's paying to his fund manager are eating a lot of his profit overtime. As I had some time, I decided to code this simulator in Pinescript because...
This indicator transmits signals from another indicator panel to the main panel through the chart. It may be suitable when it is not possible to use the main indicator with the "overlay=true" attribute. For the script to work, the input signal must be "1" for BUY and "0" for SELL. Alternative words: transmit signals, send, connect, broadcast, copy signals,...
I've re-created the fib retracement tool as an indicator and this is as close as I can currently get to matching the built-in fib retracement tool. Why did I make this? For custom labels for every fib retracement level. Caveats to this vs the built-in tool are: the "Save as Default" doesn't appear to work (I believe this is due to the interactive/confirm...
A vertical line plotting function is missing in Pinescript. This is another method to plot vertical line on a chart, and an improvement on my previous script "vertical lines" . The script hacks the plotcandle function to display just the wicks without the body. This hack simulates a vertical line. The body of the candle is non-existing since the open and close...
Hello my friend! I'm uploading the code for your strategy. I have included a feature in the settings menu called "Entry Direction" that you can use to isolate only longs, only shorts or have both directions at the same time for the backtesting. I have set the strategy to only open 1 position at a time, it will not open a new position unless the previous position...
This simple indicator displays a countdown for the amount of time left until a bar of your chosen timeframe closes. Displays up to 5 different HTF countdowns. Fully Customizable to fit any style, change the text colors, background colors, frame colors, display size and border & frame widths. Flat display option for a sleek look to mesh with your charts. ...
Determining bond prices from yields on US Treasuries. Cannot be used because it is not a chart of US Treasuries and yields. 米国債の利回りから債券価格を求める。 米国債利回り以外のチャートでは使用できません。 債券価格 = 100 * (1 + 利回り(終値))^(-残年数)
The script shows an example implementation of dictionary-like data type which can store key:value pairs (Python style). Both keys and values can have any of the following type: • string • integer • float • boolean • color You can add items of different types to the same dictionary (e.g. key = 12 and value = "value" stored in the same dictionary with key = "key"...
This is a Pine script that helps traders format numbers in different ways to make it easier to read and display big numbers on TradingView. this script is specifically to help other fellow pinecoder. Its not a indicator. The above code is an example of how to format numbers in TradingView using two different formats: Indian and USA. The code defines a function...
Many times while developing algos based on patterns and reversals, I come across issues which needs lower timeframe inspection. Loading multiple charts and comparing equivalent lower timeframe is slightly cumbersome at times. Hence, I thought of building this simple tool - which will instantly provide me lower timeframe candles for given candle. Since the candle...
This indicator calculates whether the opening price is in a premium or discount zone, based on the specified premiumThreshold and discountThreshold values. A premium zone is defined as when the difference between the high price and the opening price divided by the opening price is greater than or equal to premiumThreshold. A discount zone is defined as when the...
Takes basic user inputs for entries, exits, stop loss and leverage. Converts all inputs (removing unused ones) to an alert message. Intended for use as a single alert / message. Alert will fire as soon as activated - after that you should delete the alert to prevent multiple alerts being fired on subsequent candles.