MAP Money ManagementThis indicator lets you manage your risk as your assets in each position SO you can see the right way in money management and risk management as well
when you know how much you need to put in your positions you should see the volume of your trade and control your risk to be a winner in all ways and have the best win rate.
You can use it so easy and it is going to so helpful
good luck
Portfolio management
Crypto Portfolio ManagementCrypto Portfolio Management
This is an indicator not like the other ones that you regularly see in tradingview. The main difference is that this indicator does not plot a value for each candle bar like you would see with RSI or MACD. Actually it is table and it just uses tradingview great database of assets to plot some valuebale information that can not be found elsewhere easily. These metrics are some basic one that is used by portfolio managers to decide what they want to hold in their portfolio. The basic idea is that you should hold assets in your basket that are less correlated to the benchmark.
Benchmark in traditional context refers to main market indices like S&P 500 of US market. But they already have a lot of tools available. My effort was for crypto investors who are trying to rebalance their portfolio every month or week to have some good metrics to make decision. Because of this I used Bitcoin as crypto market benchmark. So, everything is compared to bitcoin in this script. I’m gonna explain the terms that is used in the table’s columns below.
MAKE SURE YOU PUT YOUR CHART AT DAILY AND AT THE MAXIMUM AVAILABLE DATA EXCHANGE.
Y-Exp
This is yearly expected return of the asset. It is simply the mean of the yearly returns of the asset. (these calculations are not typical in Tradingview because mainly we calculate on each bar and give value at the same bar but here this value to change once a year). Remember that the higher this value is the better it is because historically the asset have shown good returns but there is a tip: Always check the available historical data in any asset that you are adding if you add an asset that has only 1 year of data available or you use an exchange data that recently added the coin you will get unsignificant results and the results can not be trusted. You should always selects coins and market (coins can be changed in setting) that have the largest data available.
Y-SDev
This is a little bit complicated than the previous. This is the standard deviation of the yearly returns. This is a classic measure of RISK in financial markets. The higher the value, the more risk is involved with the asset that you have added. If you added two assets that have same returns but different Standard deviations, the rational thinker should choose the asset with lower Standard deviation.
The standard deviation is a good place to start but there are some considerations to have -it is getting complicated and average user should not be involved with these terms and can ignore the next phrases- standard deviation and mean of the yearly returns are random variables, these variables have a theoretical probability density function and these functions are not gaussian normal distribution. Because of this in the professional usage these returns should be transformed to a normal distribution and have all these terms calculated there and then transform back to its own normal state and then be used for any serious investment decision. I think these calculations can be done on Tradingview but I need you support to do this in the form of like and share of my scripts and ideas.
M-Exp and M-SDev
These terms are like the previous ones but it is calculated on monthly returns. As it goes for yearly return, the monthly returns change once a monthly candle closes. So be patient to use this indicator.
I highly recommend not to make decisions on monthly data due to a lot of noise involved with this market but in long run it is ok. So go with yearly returns and wait at least for 3 years to see your results.
CorToBTC
Basically you want to buy something that is less correalted with the benchmark. this is the correlation of the asset to bitcoin.
Sharpe Ratio
This is one of the most used metric as a risk adjusted return measurment. you can google it for more information. The higher this value the better. remmeber with any invenstment it is important to understand risks associated with the assets that you are buying.
DownFromATH
This metric that I didn't see anywhere in the tradingview and is familiar in the platforms like coinmarketcap. this is a real calculation of precentage down from ATH (All Time High). it means how much percentage a coin is down from the maximum price that the asset has experienced until now.
***
Remember you can change all the asset except main asset. If you like this script to 500 I will update this continuously.
Correlation with Matrix TableCorrelation coefficient is a measure of the strength of the relationship between two values. It can be useful for market analysis, cryptocurrencies, forex and much more.
Since it "describes the degree to which two series tend to deviate from their moving average values" (1), first of all you have to set the length of these moving averages. You can also retrieve the values from another timeframe, and choose whether or not to ignore the gaps.
After selecting the reference ticker, which is not dependent from the chart you are on, you can choose up to eight other tickers to relate to it. The provided matrix table will then give you a deeper insight through all of the correlations between the chosen symbols.
Correlation values are scored on a scale from 1 to -1
A value of 1 means the correlation between the values is perfect.
A value of 0 means that there is no correlation at all.
A value of -1 indicates that the correlation is perfectly opposite.
For a better view at a glance, eight level colors are available and it is possible to modify them at will. You can even change level ranges by setting their threshold values. The background color of the matrix's cells will change accordingly to all of these choices.
The default threshold values, commonly used in statistics, are as follows:
None to weak correlation: 0 - 0.3
Weak to moderate correlation: 0.3 - 0.5
Moderate to high correlation: 0.5 - 0.7
High to perfect correlation: 0.7 - 1
Remember to be careful about spurious correlations, which are strong correlations without a real causal relationship.
(1) www.tradingview.com
Position -/ lot size calculator - SonarlabCalculating a lot size in MetaTrader is normally not a quick task, but it is a very important one.
MetaTrader doesn't offer a fast way to calculate the position size, so, usually, a trader needs to manually perform several calculations.
When you are submitting an order, you are already supposed to know and type in the lot size for the trade. It can be frustrating to calculate - that's why we made this tool to speed up the process a little. Now you can also see your P/L live and calculate the lot size within seconds straight from Tradingview.
Usage:
Step 1: Set your entry price
Step 2: Set your stop loss
Step 3: Set your Target
Step 4: Choose the symbol, forex will be automatically detected
Step 5: Fill in your balance and set your risk settings
Parameters
- Set symbol: Forex (auto detection), US100, US30, BTC, XAUUSD, NGAS, XBRUSD, XTIUSD, AUS200, US500
- Account balance
- Risk in %
- Contract size
- Levels: Stop loss, Entry, Target 1, Target 2, Target 3
- Display settings for the Trading Panel
Trading panel
- Show Live P/L
- Show Risk to reward
- Show lot size
- Show risk in %
- Show account balance
- Show money at risk (no commissions included)
Dollar cost averaging trading system (DCA)As investors, we often face the dilemma of willing high stock prices when we sell, but not when we buy. There are times when this dilemma causes investors to wait for a dip in prices, thereby potentially missing out on a continual rise. This is how investors get lured away from the markets and become tangled in the slippery slope of market timing, which is not advisable to a long-term investment strategy.
Skyrex developed a complex trading system based on dollar-cost averaging in Quick Fingers Luc's interpretation. It is a combinations of strategies which allows to systematically accumulate assets by investing scaled amounts of money at defined market cycle global support levels. Dollar-cost averaging can reduce the overall impact of price volatility and lower the average cost per asset thus even during market slumps only a small bounce is required to reach take profit.
The strategy script monitors a chart price action and identifies bases as they form. When bases are reached the script provides entry actions. During price action development an asset value can go lower and in this way the script will perform safety entries at each subsequent accumulation levels. When weighted average entry price reaches target profit the script will perform a take profit action.
Bases are identified as pivot lows in a fractal pattern and validated by an adjustable decrease/rise percentage to ensure significancy of identified bases. To qualify a pivot low, the indicator will perform the following validation:
Validate the price rate of change on drops and bounces is above a given threshold amount.
Validate the volume at the low pivot point is above the volume moving average (using a given length).
Validate the volume amount is a given factor of magnitude above is above the volume moving average.
Validate the potential new base is not too close to the previous range by using a given price percent difference threshold amount.
A fractal pattern is a recurring pattern on a price chart that can predict reversals among larger, more chaotic price movements.
These basic fractals are composed of five or more bars. The rules for identifying fractals are as follows:
A bearish turning point occurs when there is a pattern with the highest high in the middle and two lower highs on each side.
A bullish turning point occurs when there is a pattern with the lowest low in the middle and two higher lows on each side.
Basic dollar-cost averaging approach is enhances by implementation of adjustable accumulation levels in order to provide opportunity of setting them at defined global support levels and Martingale volume coefficient to increase averaging effect. According to Quick Fingers Luc's principles trading principles we added volume validation of a base because it allows to confirm that the market is resistant to further price decrease.
The strategy supports traditional and cryptocurrency spot, futures, options and marginal trading exchanges. It works accurately with BTC, USD, USDT, ETH and BNB quote currencies. Best to use with 1H timeframe charts and limit orders. The strategy can be and should be configured for each particular asset according to its global support and resistance levels and price action cycles. You can modify levels and risk management settings to receive better performance
Advantages of this script:
Strategy has high net profit of 255% at backtests
Backtests show high accuracy around 75%
Low Drawdowns of around 14% at backtests
Strategy is sustainable to market slumps and can be used for long-term trading
The strategy provides a large number of entries which is good for diversification
Can be applied to any market and quote currency
Easy to configure user interface settings
How to use?
1. Apply strategy to a trading pair your are interested in using 1H timeframe chart
2. Configure the strategy: change layer values, order size multiple and take profit/stop loss values according to current market cycle stage
3. Set up a TradingView alert to trigger when strategy conditions are met
4. Strategy will send alerts when to enter and when to exit positions which can be applied to your portfolio using external trading platforms
5. Update settings once market conditions are changed using backtests on a monthly period
Fed Funds Rate ProjectionsThis script makes projections via drawing boxes based upon changes in the fed funds rate (FRED:EFFR).
It works by turning the change in the fed funds rate into a user defined percentage (using a multiplier, by default a 1% rate of change implies a 10% change in the chart) and then drawing a box that distance away depending on the direction of the rate of change.
The size of the multiplier should depend on the duration of the asset which this is being applied to, for example, a long duration asset such as a high beta growth stock should use a larger multiplier.
R:R Trading System FrameworkFirst off, huge thanks to @fikira! He was able to adapt what I built to work much more efficiently, allowing for more strategies to be used simultaneously. Simply put, I could not have gotten to this point without you. Thanks for what you do for the TV community. Second, I am fairly new to pinescript writing, so I welcome criticism, thoughtful input and improvement suggestions. I would love to grow this concept into something even better, if possible. So please let me know if you have any ideas for improvement. However I do juggle a lot of different things outside of TV, so implementations may be delayed.
I have decided, at this time, not to add alerts. First, because I feel most people looking to adapt this framework can add their own pretty easily. Also, given how customized the framework is currently, while also attempting to account for all the possible ways in which people may want alerts to function after they customize it, it seems best to leave them out as it doesn't exactly fit the idea of a framework.
For best viewing, I recommend hovering over the script's name > ... > Visual order > Bring to front. Also I found hollow candles with mono-toned colors (like pictured) are more visually appealing for me personally. I HIGHLY RECOMMEND USING WITH BAR REPLAY TO BETTER UNDERSTAND THE FRAMEWORK'S FUNCTIONALITY.
▶️ WHAT THIS FRAMEWORK IS
- A huge collection of concepts and capabilities for those trying to better understand, learn, or teach pinescript.
- A system designed to showcase Risk:Reward concepts more holistically by providing all of the most popular components of retail trading to include backtesting, trade visual plotting, position tracking, market condition shifts, and useful info while positioned to help highlight changes in your risk:reward based decision-making processes.
- A system that can showcase individual strategies regardless of trade direction, allowing you to develop hedging strategies without having multiple indicators that do not correlate with each other.
- Designed around the idea that you trade less numbers of assets but manage your positions and risk based on multiple concurrently running strategies to manage your risk exposure and reward potential.
- An attempt to combine all the things you need to execute with an active trading management style.
- A framework that uses backtested results (in this case the number of averaged bars it takes to hit key levels) in real-time to inform your risk:reward decision-making while in-trade (in this case in your Trade Tracking Table using dynamic color to show how you might be early, on-time, or late compared to the average amount of backtested time it normally takes to hit that specific key level).
▶️ WHAT THIS FRAMEWORK IS NOT
- A complete trading product. DO NOT USE as-is. It is a FRAMEWORK for you to generate ideas of your own and fairly easily implement your own triggering conditions in the appropriate sections of the script.
▶️ USE CASES
- If you decide you like the Stop, Target, Trailing Stop, and Risk:Reward components as-is, then just understanding how to plug in your Entry and Bullish / Bearish conditions (Triangles) and adjust the input texts to match your custom naming will be all you need to make it your own!
- If you want to adapt certain components, then this system gives you a great starting point to adapt your different concepts and ideas from.
▶️ SYSTEM COMPONENTS
- Each of the system's components are described via tooltips both in the input menu and in the tables' cells.
- Each label on the chart displays the corresponding price at those triggered conditions on hover with tooltips.
- The Trailing Stop only becomes active once it is above the Entry Price for that trade, and brightens to show it is active. The STOP line (right of price) moves once it takes over for the Entry Stop representing the level of the Trailing Stop at that time for that trade.
- The Lines / Labels to the right of price will brighten once price is above for Longs or below for Shorts. The Trade Tracking Table cells will add ☑️ once price is above for Longs or below for Shorts.
- The brighter boxes on the chart show the trades that occurred based on your criteria and are color coded for all components of each trade type to ensure your references are consistent. (Defaults are TV built-in strategies)
- The lighter boxes on the chart show the highest and lowest price levels reached during those trades, to highlight areas where improvements can be made or additional considerations can be accounted for by either adjusting Entry triggers or Bullish / Bearish triggers.
- Default Green and Red Triangles (Bullish / Bearish) default to having the same triggering condition as the Entry it corresponds to. This is to highlight either a pyramiding concept, early exit, or you can change to account for other things occurring during your trades which could help you with Stop and Target management/considerations.
TradingView and many of its community members have done a lot for me, so this is my attempt to give back.
Custom IndexCreate your own stock index with up to 20 tickers!
The weight of the index can be selected from market capitalization and equal weight.
You can easily see how your favorite stocks are performing.
In addition, moving average lines (10SMA, 20SMA, 50SMA, 100SMA, 150SMA, 200SMA) can also be displayed as an option.
----以下日本語
最大20銘柄を用いて独自の株価指数を作成できます!
指数のウェイトは時価総額、イコールウェイトから選択でき、
お気に入りの銘柄群がどのようなパフォーマンスなのか簡単に分かります。
また、移動平均線(10SMA、20SMA、50SMA、100SMA、150SMA、200SMA)もオプションで表示可能です。
Trading Portfolio Tracker - The Quant ScienceTrading Portfolio Tracker - The Quant Science™ is a tracking and monitoring trades application.
It is a very useful Pine app for day traders and scalpers. This trading portfolio tracker is a unique solution for users who would monitoring their day trading performance instantly and make more efficient trade management decisions.
HOW IT WORK
The user enters the required data before the application is launched. The software automatically generates the portfolio tracking with all performance data information.
DESCRIPTION
This app keeps track of up to 10 trades simultaneously. The user can activate or deactivate each trade from the user interface.
Using this application is very simple. Install it on your monitor and enter the required data parameters.
Required data for each trade:
1. Open price
2. Invested capital
3. Ticker
4. Leverage
5. Direction
Once this data has been entered, the software will generate the portfolio automatically. You will be able to edit closed trades or newly opened trades directly from the user interface and the software will automatically update with the new parameters.
Protervus Trading ToolkitHi Traders! Welcome to Protervus Trading Toolkit (PTT) , a comprehensive set of tools to help you building, backtesting, and even automating your strategy.
Important : the data and screenshots I publish are solely for presentation and explanation purposes and must not be intended as recommendations or guarantees. Please consider eventual backtesting results seen here as almost-random. My goal is not to provide ready-made strategies, signals, or infallible methods, but rather indicators and tools to help you focus on your own research and build a reliable trading plan based on discipline.
BUILD, BACKTEST, AUTOMATE
The first step is to link a chained indicator which will send Entry signals and, optionally, Exit signals: to integrate your own triggers with this toolkit, check out my tutorial and use this code as a template.
Then, in the Trading Settings you can set the Trading Mode (Full - Long and Short, Long only, or Short only) as well as Starting Capital, Drawdown Limit, Risk per Trade, Fees, and the date range in which trading will be enabled and backtested.
Go further by tweaking your strategy with built-in Take Profit and Stop Loss conditions, and keep it under control thanks to the Statistics Panel.
Trades will be shown on the chart, including TP\SL levels (according to the ones you enable) and per-trade statistics:
Tip: point the cursor over TP or SL icon to open the tooltip, showing additional details about the trade.
BUILT-IN CONDITIONS
Note: all conditions already account for fees.
Take Profit \ Stop Loss percentage
Take Profit or Stop at Loss when a fixed percentage is reached.
Limit \ Hard Stop: the trade will be considered closed when that specific price is reached - otherwise, the candle closing price will be used.
Trailing Take Profit
Trail the price and close the trade in profit when it reverses for the chosen percentage.
Engage and Disengage: activate trailing when the price is above the entry price for the chosen percentage, and de-activate it if price goes past the disengage percentage.
Safety TP: close the trade at Break-Even if the price sharply reverses from engaged area to BE level. A specific Alert is available in order to create a separate trigger with immediate effect.
Note: using TP Safety with an Engage % of zero might result in many early exits, so it is recommended to add some margin to Engage % to avoid that.
Exit \ Stop on Opposite Signal
Close the trade when another, contrary signal is received (e.g. close a Long position when a signal to go Short is received).
Exit \ Stop after X candles
Close the trade after X candles, as soon as the condition is met (e.g. for Take Profit condition, it will close the trade after X candles as soon as the trade is in profit).
Bind to TP \ SL: only validate the condition if the current PnL is above (TakeProfit cond.) or below (Stop Loss cond.) the specified percentage.
ATR Stop
Classic ATR Stop Loss.
Trailing ATR
Chase the price by the defined ratio and close the position when the candle closes past the ATR line.
Bind to TP \ SL: only validate the condition if the current PnL is above (TakeProfit cond.) or below (Stop Loss cond.) the specified percentage.
External Signal (sent from your indicator)
Close the position basing on your own triggers, defined in the chained indicator.
- Bind to TP \ SL: only validate the condition if the current PnL is above (TakeProfit cond.) or below (Stop Loss cond.) the specified percentage.
PANEL CUSTOMIZATION AND ADDITIONAL OPTIONS
A strategy name can be assigned in the settings and will show it at the top of the Statistics Panel, so you can better identify and label your tests and live instances.
The panel can be customized in terms of colors, text size and height. It can be also "split" in modular panels that will appear at the bottom of the chart.
It is also possible to show \ hide prices and live data labels as well as position and Break-Even levels. In some cases you will need to limit the display of those plots in order to avoid PineScript calculation issues.
If you limited the plots but you are checking very old trades, you can enable the Legacy position tracker to see basic markers for positions (position is active, and profit \ loss marker).
In the case you will be sending webhook alerts to a trading bot , "Position Alert Failover" will come in aid to prevent situations where the initial trade closing alert is either not sent or missed: it will keep sending the position closing signal for X candles.
PLUGINS
Thanks to the modular nature of PTT, plugins will eventually be available to provide additional features and extend functionalities even further. Make sure to keep an eye on updates.
CREATING ALERTS
To create alerts you must first select the PTT indicator from the "Condition" drop-down menu, then the whole list of available alerts will appear. When creating alerts, please make sure to set "Once Per Bar Close" for the normal conditions, and "Once Per Bar" for safety conditions (Limit and Hard Stop simulation, Trailing TP Safety Trigger).
Besides positions opening and closing alerts, you also have the option to add extra alerts for when a position is open or not open (e.g. Active Long position, No Long Position) - that might come handy when dealing with trading bots and automation tools. Also, as mentioned earlier, you have the chance to create a special alert as failover in order to repeat the closing alert.
TIPS AND RECOMMENDATIONS
Set Visual Order > Bring to front for PTT to avoid other indicators or candles covering up labels.
If you receive errors like "Referencing too many candles" or "Too many drawings", use the " Limit to last candles " function in the Settings panel to lower the number of candles.
If the Statistics Panel or labels are not appearing, and no errors are shown (red circled exclamation mark next to indicator's name), try changing any value in the settings to trigger a new calculation.
The Lowest Point in Trades refers to the maximum movement against your position. However, if the price never goes negative against the Entry level, it will be calculated from the Break-Even level.
Differently from TradingView's Strategy Tester, PTT calculates DrawDown from the Equity line (the starting balance).
Remember that Backtests only show past results, and although very useful to understand if your strategy makes sense, the market can completely change at any moment and ruin your dreams: make sure to avoid over-fitting (using very specific values) in your settings and to prefer more generic values in order to factor broader market situations.
After many successful backtests of your newly created strategy, let it run live without actually trading it for some time (paper trading), and see if it remains valid.
You can use multiple Conditions as safeguard. For example, main Stop condition can be Trailing ATR and secondary Stop condition can be Stop Loss % with Hard Stop, so you will be protected in case of sudden big price moves.
Investing - Order HelperFYI: This idea is not new and I believe there is plenty of other indicator similar to this. I have used 'Scaled.orders' from @highewaterr and add in additional calculation.
This is for education purposes only, if you decide to use it LIVE and you lose money using it, it is not my fault. Do not risk what you can't afford to lose.
Order Helper was improved to better help simplify my investing journey.
It calculates each size and price automatically for me after inputting into the settings.
Unlike the common investing method (DCA Daily/Weekly/Monthly or Support & Resistance).
There is issue for these investing method.
DCA based on time is prompt to buying at higher price which will bring your average cost and your risk higher .
So why risk more when you have plenty of time to wait for the project/stocks to be at a discount?
Support & Resistance based can be a hustle to some investor like me.
Why?
1. Complication when drawing multiple support & resistance line / zone.
2. Time Consuming (Refer to point 1)
To reduce/eliminate the issue prompt by these 2 investing method, I use order helper.
It free up that few minutes of each chart, reduce the complexity in drawing support & resistance.
However, it bring method is prompt to 'missing out'.
IF I were to stick to the prices and size based on this indicator, my order might not be triggered and price just continue going.
But personally, I am fine with it. As I would rather miss out than putting my hard earned money in a higher risk.
---------------------------------------------------------------------------------------------------------------------------------
Main Component of this indicator
Scaling options is the main component of this indicator.
There is 4 options to this component:
Linear
Ease-in -> The amount of orders/size CLOSEST to the START price, will be higher.
Ease-out -> The amount of orders/size FURTHEREST to the START price, will be higher.
Ease-in-out -> It's a mixture of Ease-in and Ease-out.
How to use this indicator?
It is best for you to play around with the settings, as it will be easier to understand rather than reading how I do it.
There is no right or wrong method in using this indicator. But this is how I use it.
Go to a higher time frame (Weekly/Monthly)
Identify major support & resistance
Open up 'Order Helper' settings
Input your preferred options (Linear/Ease-in/Ease-out/Ease-in-out)
Input the start price -> referring to the first major support & resistance line (closes to the current price)
Input the end price -> referring to the last major support & resistance line (furtherest away from the current price)
Input the number of orders you preferred
Position Size that you wish to purchase
I decide not to share the source code of this as I do not fully understand the math calculation behind.
But if it works, and it helps me. Then those math calculation doesn't really matter.
Hopefully this will help simplify your investing journey.
If there is any question, feel free to comment it below and I will try my best to assist.
Investing - Correlation Table This correlation tables idea is nothing new, many sites provides it.
However, I couldn't find any simple correlation indicator on TradingView despite how simple this indicator is.
This indicator works as its called. Calculating the correlation between 2 projects (can be used in stocks as well) using the 'ta.correlation' feature built into pinescript.
When it comes to investing, we do not want our stocks / crypto project to be heavily correlated to each other.
If they are heavily correlated to each other, then there isn't much point in diversifying.
That being said, it can be useful for traders who trade multiple pairs.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
In this indicator, consist of 5 primary input and 15 secondary input (Symbol List).
Correlation Source:
This input options allow you to change how the correlation is calculated. By default, it uses 'close'.
Correlation Percentage(%):
This input options allows you configure how many (%) of correlation is considered as 'decoupled'.
This correlation will only move between -100% ~ 100%.
100% refers to it moving together.
-100% refers to it moving the opposite direction.
For example, Project A rises in Price, what is the possibility of Project B following:
A 100% correlation between Project A and Project B, refers to Project B will follow Project A movement.
A 50% correlation between Project A and Project B, refers to there is only 50% chance for Project B to follow Project A movement.
A -20% correlation between Project A and Project B, refers to there is a 20% chance of Project B moving the opposite direction of Project A
(Refers to the table on chart above to better understand what the numbers means. DOT/USD has a 100% correlation to DOT/USD. However. MXCUSDT has a -37.2% correlation to DOT/USD.)
Amounts Bars To Check:
This input options will check the amount of bars since the last bar in the chart.
If you want to know the correlation of the past 100 days in a daily chart, you will enter '100' into this options and it will check only the past 100 days.
Symbol List
This will allow you to input all the project symbol ticker ID to add into the correlation table.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Originally, I wish to use for loop to go through the symbol list to reduce the amount of code required. However, due to limitation of 'request.security' feature, I had to abandon that idea and use hard-coded for requesting security and use a while loop to identify the symbol correlation value in the array set then set the table value accordingly.
If there is any script writer could improve this or any unclear explanation, feel free to drop a comment below.
Plots CAGR lines for a given set of ratesPlots CAGR lines for a given set of rates from a specified time. It will be helpful to see how the rate of growth of a security's price is changing over a period of time. It also calculates the current CAGR from the time specified. Works on D, W, M timeframes.
Risk:RewardThis Indicator displays Entry and Exits levels. The display is done under 3 modes:
- Risk/Reward mode (the one by default. It is set to a 1:1 ratio)
- Multiples TP Levels
- Custom Levels
Click to Set entry Price on chart
The displaying is static by default
to make it dynamic disable the "Use custom Entry ?" input.
Disclaimer: Scripts that I post publicly are experimental. They are not financial advices. Always backtest your ideas using your own methodologies.
Position Size Calc. (Minimalist)This is a simplified position size calculator in the form of a table.
The reason I published this script is because all other position size calculator scripts try to provide way too much when it should be much simpler, position in strange areas of the chart and leave unwanted chart pollution.
This is a bare-bones functional table that takes your risk level, entry, stop and take profit as inputs, and calculates your loss, profit and required position size for your chosen risk level as a result.
Inspired by a table type position size calculator made by DojiEmoji design/color-wise. Functionally different however.
I hope you find this script useful and include it on your trading journey.
Manual Stop Loss / Risk Management PanelHere is a panel where you enter the desired stop-loss price, the amount you would like to risk and it spits out what you should trade to only lose that amount if the stop-loss is hit.
Key Performance IndicatorWe are happy to introduce the Key Performance Indicator by Detlev Matthes. This is an amazing tool to quantify the efficiency of a trading system and identify potential spots of improvement.
Abstract
A key performance indicator with high explanatory value for the quality of trading systems is introduced. Quality is expressed as an indicator and comprises the individual values of qualitative aspects. The work developing the KPI was submitted for the 2017 VTAD Award and won first prize.
Introduction
Imagine that you have a variety of stock trading systems from which to select. During backtesting, each trading system will deliver different results with regard to its indicators (depending on, inter alia, its parameters and the stock used). You will also get different forms of progression for profit development. It requires great experience to select the “best” trading system from this variety of information (provided by several indicators) and significantly varying equity progression forms. In this paper, an indicator will be introduced that expresses the quality of a trading system in just one figure. With such an indicator, you can view the results of one backtest at a glance and also more easily compare a variety of backtesting results with one another.
If you are interested in learning more about the calculations behind this indicator then I have included a link to the english version of his research paper.
Along with this, we now offer indicator development services. If you are interested in learning more then feel free to reach out to get a quote for your project.
**Please note that we have NOT inputted any real strategy into the code and therefore it is not producing any real value. Feel free to change the code as desired to test any strategy!**
drive.google.com
Pyramiding Order Volume CalculatorThis is a script to calculate the order volume for the current symbol given your current portfolio value and how many orders you want to place. This is useful when using a strategy that places pyramiding orders and your bot won't automatically divide up your portfolio.
Grid Settings & MMThis script is designed to help you plan your grid trading or when averaging your position in the spot market.
The script has a small error (due to the simplification of the code), it does not take into account the size of the commission.
You can set any values on all parameters on any timeframe, except for the number of orders in the grid (from 2 to 5).
The usage algorithm is quite simple:
1. Connect the script
2. Install a Fibo grid on the chart - optional (settings at the bottom of the description)
3.On the selected pair, determine the HighPrice & LowPrice levels and insert their values
4.Evaluate grid data (levels, estimated profit ’%’, possible profit ‘$’...)
And it's all)
Block of variables for calculating grid and MM parameters
Variables used regularly
--- HighPrice and LowPrice - constant update when changing pairs
--- Deposit - deposit amount - periodically set the actual amount
Variables that do not require permanent changes
--- Grids - set the planned number of grids, default 5
--- Steps - the planned number of orders in the grid, by default 5
--- C_Order - coefficient of increasing the size of orders in the base coin, by default 1.2
--- C_Price - trading levels offset coefficient, default 1.1
--- FirstLevel - location of the first buy level, default 0.5
--- Back_HL - number of candles back, default 150
*** For C_Order and C_Price variables, the value 1 means the same order size and the same distance between buy levels.
The fibo grid is used for visualization, you can do without it, ! it is not tied to the script code !
You can calculate the levels of the Fibo grid using the formula:
(level price - minimum price) / (maximum price - minimum price)
For default values, grid levels are as follows:
1 ... 0.5
2...0.359
3 ... 0.211
4...0.0564
5...-0.1043
Short description:
in the upper right corner
--- indicator of the price movement for the last 150 candles, in % !!! there is no task here to "catch" the peak values - only a relative estimate.
in the upper left corner
--- total amount of the deposit
--- the planned number of grids
--- “cost” of one grid
--- the size of the estimated profit depending on the specified HighPrice & LowPrice
in the lower left corner
--- Buy - price levels for buy orders
--- Amount - the number of purchased coins in the corresponding order
--- Sell - levels of profit taking by the sum of market orders in the grid
--- $$$ - the sum of all orders in the grid, taking into account the last active order
--- TP - profit amount by the amount of orders in the grid
Custom IndexEnables users to create their own custom Stock Index with up to 29 tickers! Has included optionality to include/exclude certain sectors, plot sectors individually and measure in gold. Good for having a look at how your favorite tickers have performed (with your modification of course). Also has option to show Moving Averages for your convenience.
EPS Surprise (Working)Plots the EPS surprise between reported and estimate.
* This is a working version of the old EPS Surprise indicator here that seems to have been abandoned.
Forex Lot Size CalculatorTo use indicator you need to provide enter and stop prices(you can drag these lines also). Also you able to set your Account Size in USD, Risk in % and Commission you pay your broker per lot.
Indicator calculates all this information and provides you with Lot Size(with commission) you need to open a position and target prices for 2R and 3R(also includes commission).
Feel free to comment and request new features.