How to use: Use the cursor to select the time, entry, stop loss, and target position. Enter the trading fee to calculate the reward/risk ratio and the actual reward/risk ratio (including the commission) according to the price you selected. Known error: Settings of this script can't be saved as default might due to the interactive price selection function. If...
Hello! This little script tells you everything TradingView lets you access in a ticker's syminfo in Pine Script: - description - type: crypto, economic, forex, fund, futures, index, spread, stock - tickerid, such as AMEX:BLOK - prefix, such as AMEX - Ticker, such as BLOK - root: for derivatives such as futures contracts - currency, such as USD - base currency:...
I created this indicator/study script because i ran into the issue that the same Alerts would fire multiple times. For example it would trigger a Long signal when already being in a Long. I guess there would be no issue with a very basic strategy but with a larger script and many variables, it seemed to create complications. This is resolved by a TradingLine...
From time to time, you may want to overlay multiple assets on the same chart instead of using multi-chart views. This can be a much cleaner way of viewing and comparing multiple assets. There is some functionality built into TradingView that lets you do this to a certain extent, but I wanted additional options, correlation labeling and ways to adjust the overlay...
Anyone who follows Arty knows about his "Big A** Candle" strategies. I didn't like the BAC indicators that had code available so I wrote this one that has some decent flexibility and display options. You can use this to enter a trade immediately after a BAC, probably in the opposite direction and ride the pullback that usually occurs or just use it to avoid...
(1) Strategy Introduction - This is a profit harvesting system, an optimized high frequency trading strategy, by invitation only - It can achieve a stable average annual return and is suitable for most crypto-currency markets - It is recommended that the initial capital of one crypto-currency pair is greater than 2000 USDT - You need to bear some floating...
For anyone interested, Here is an example of how to put backtesting results into an Indicator. This calculates the same values as you find in the Summary Screen of the built in Strategy backtester. This will use the same result size as the standard backtester i.e. 5 minute chart grabs roughly 1 month of data, 1 minute chart grabs 1 week of data, etc... I tried...
'Study forloop' pinescript Program to print star diamond The Program Logic I've taken the previous script and added a footer to it. instantly transformed into a diamond shape.
'Study forloop' pinescript Program to print star Triangle The Program Logic For example, the following Pinescript programme will need two nested for loops. The outer forloop is for rows and the inner forloop is for columns or stars. to create a triangle shape.
Feature scaler | Pine Utilities series, ready to be used in "study-on-study" fashion | Includes min-max, normalization, standardization and unit length scaling. One and only source: en.wikipedia.org Endpoint inputs allow to set an interval of interest for min-max scaler. Can be (and should be) applied to other studies, or to the chart itself. In this example,...
High-pass filter | Pine Utilities series, ready to be used in "study-on-study" fashion | Represents the difference between the filter and the original unfiltered data. How to use: 1) Add a filter to your chart (in this particular case it was 4-pole Gaussian filter implemented by @everget, ty man); 2) Tap ... on your's filter status line and choose "Add...
Basic Pareto distribution! This is a simple exponential curve set on the 1 minute timeframe. Three different gradients are used in the example image.
This is an example how to close open entries by timeout for educational purpose.
█ OVERVIEW Here I present to the community at large a collection of code comment blocks that I think will be useful, especially for larger script projects bordering on 2,000 lines or above of code. █ PLANNED FUTURE UPDATES Work with the community to expand this template to be even more useful with the inclusion of useful global colour sets,...
Add derivative of a signal for leading behaviour formula: sig = (lambda/100)*source + (1-lambda/100)**momentum ) it has a multiplier and an offset for adjustment of result. final formula: sig = multiplier*( (lambda/100)*src + (1-lambda/100)*mom_coef*mom ) + offset
In this script I use a simple, not necessarily profitable, strategy of a cross of MAs to teach how to calculate and plot the PnL of each trade made by the indicator. I also show how to calculate the cumulative PnL of all trades and the Buy and Hold of the same period. These calculations which are natively available in any strategy script, require a bit of...
Moving Average Convergence Divergence – MACD The most popular indicator used in technical analysis , the moving average convergence divergence ( MACD ), created by Gerald Appel. MACD is a trend-following momentum indicator , designed to reveal changes in the strength, direction, momentum, and duration of a trend in a financial instrument’s price Historical...