Consensio Allocation ToolOriginally created and taught by Taylor Jenks, this indicator provides portfolio allocation suggestions based on the behaviour of price and 3 simple moving averages (4/10/40 by default)
(ie. when short & medium term SMAs are above the long term then allocation is to be 100%).
This percentage allocated to the stock/commodity is to be reduced as it passes below the SMA's, particularly as each moving average crosses.
Consensio is useful for scaling in and out of a position as the portfolio allocation will change according to the momentum of the asset.
The rules below are my own based on understanding of the trading system developed by Jenks and his online content.
This script has the following rules:
if fastAboveSlowMA and not mediumAboveSlowMA
allocation := 30.0
else if longAboveFastMA
allocation := 0.0
else if fastAboveMediumMA and fastAboveSlowMA
allocation := 100.0
else if not fastAboveMediumMA and fastAboveSlowMA
allocation := 80.0
else if not fastAboveMediumMA and not fastAboveSlowMA
allocation := 50.0
else if not mediumAboveSlowMA and fastAboveSlowMA
allocation := 50.0
// Calculate adjusted allocation percentage based on crossing moving averages
allocation := allocation + (priceAboveFastMA ? 10.0 : -10.0)
allocation := allocation + (priceAboveMediumMA ? 10.0 : -10.0)
Management
Average Cost (Costo Promedio)ENGLISH
This 'Average Cost' script allows the user to input and visualize profit or loss for different stocks (up to 50) with average cost and quantity data on a single chart. This is useful for tracking the profit or loss of each stock in real-time.
To use this script, the user should follow these steps:
1. Add the 'Average Cost' script to your TradingView chart.
2. In the script's configuration window, input the tickers, average costs, and quantity of shares for each ticker you want to monitor.
3. Click 'Accept' to apply the changes.
This script is primarily designed for stock markets, but can also be useful in other financial markets where the user is interested in tracking the performance of multiple assets.
ESPAÑOL
Este script de "Costo Promedio" permite al usuario ingresar y visualizar si hay ganancia o perdida para diferentes acciones (hasta 50) con los datos de costos promedio y cantidad de acciones en un solo gráfico. Esto es útil para realizar un seguimiento de la ganancia o pérdida de cada acción en tiempo real.
Para utilizar este script, el usuario debe seguir estos pasos:
1. Agregue el script "Costo Promedio" a su gráfico en TradingView.
2. En la ventana de configuración del script, ingrese los tickers, costos promedio y cantidad de acciones para cada ticker que desee monitorear.
3. Haga clic en "Aceptar" para aplicar los cambios.
Este script está diseñado principalmente para los mercados de acciones, pero también puede ser útil en otros mercados financieros donde el usuario esté interesado en rastrear el rendimiento de múltiples activos.
Altcoin PortfolioTrack your altcoin portfolio balance in Fiat currency.
Make sure to open the data window to the right of your charts, it makes everything alot easier to read at a glance.
To learn more about customizing this script to fit your portfolio, watch the video here: youtu.be
To get more cool scripts and up-to-date information about Autoview, join us in slack slack.with.pink
As per the usual, we hope this script helps with your trading venture.
Good luck, and happy trading.
TSG 5% Daily CalculatorThis is a calculator I've created to help visualize Target and Risk Levels based on leverage use to trade crypto.
How to use it ?
Basic Use:
- Set the Direction of your trade - either Long or Short
- Set the Leverage you use in your trade - it is crutial to define the risk and target levels
- Set the Risk Amount you want to risk (in %) of your total balance ( Advised 2-3% )
- Set the Target Amount you want to profit at the target (the idea of this is 5% daily, so 5%).
- Set Entry Price if you have opened a position, and you will visually see your progress. Otherwise the levels will be adjusted to the Close of the candle.
Additions:
- Set your Initial Balance - to help you visualize on the Table your progress
- Set your Current Balance - for visualization purposes on ongoing trades and on the Table
- Entry Date - Advised to set it when you open a trade - you will be tracking the progress of your trade since the candle on which you opened it
- Show Table - to show the table of 5% daily and the target it is set on per day
- Table Size - Set table to be small or normal
- Together with the Table you have a big blue area behind that ends on the day you will become a Millionaire based on the Initial Balance, Current balance and Target % in your inputs
RISK MANAGEMENTHi dear Traders,
Here I would present you my 'Risk Management' tool which is based on your buy orders, trading fees and your desired benefit.
Easily, fulfill the price and volume of each entries. Add to this, you can prepare the info about your next proposed entries, just let them not check at first and by meeting the prices then active the check-box beside it.
Two line will be presented on your candle-plot, one of the indicate the place that without any lose/win you can exit and also the desired exit position by considering user defined benefit.
Use it for free but please do not forget to boost the script.
Best regards and happy trading.
Shakib
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.
LevelsManagerLibrary "LevelsManager"
TODO: Track up to 6 TakeProfits and 1 StopLoss achievement for one or many of your buy/sell conditions.
manageTrade(bool, bool, bool, string, string, float, float, bool, bool, bool, bool, bool, bool, float, float, float, float, float, float, float)
Track TakeProfits and StopLoss achievement for one or many of your buy/sell conditions. CHECK the commented section: "Function @manageTrade" for Description
Parameters:
bool : useSignal.
bool : b_gameOVer.
bool : b_gameOVer.
string : bName.
string : sName.
float : buyEntrySource.
float : sellEntrySource.
bool : useTp1.
bool : useTp2.
bool : useTp3.
bool : useTp4.
bool : useTp5.
bool : useTp6.
float : tp1x.
float : tp2x.
float : tp3x.
float : tp4x.
float : tp5x.
float : tp6x.
float : slx.
Returns: check commented section: "Function @manageTrade".
showOnlyFirstOccurence(booleanInput)
Single out the occurence of a bool series between to 2 bool series.
Parameters:
booleanInput : to activate or deactivate occurences filtering.
Returns: filterred or not bool series.
Net New Highs CrossoverA lot of traders have a hard time to get in and out of the market at the right time.
Net New Highs of stocks can guide you to increase or decrease your exposure based on the current market health.
They are calculated by subtracting the new highs of the new lows, based on all stocks of the NYSE, NASDAQ and AMEX.
+ A positive value shows that the market is doing good, since more stocks are making new highs compared to new lows.
- A negative value shows that the market is doing bad, since more stocks are making new lows compared to new highs.
Combined with a moving average you can see crossovers that can warn you early when there is a change in the current market health.
Features
■ You can select different Net New High indices or combine them (NYSE, NASDAQ and AMEX)
■ You can specify a moving average line ( SMA / EMA and length)
■ Use single color or two colors for the moving average line to better spot the crossovers
Hints
*New highs and new lows index values currently only get updated at the end of the day
*Only works on daily timeframe
Risk Management & Position Size Dashboard ProThis version of the dashboard system factors in trading fees to your max risk to account per trade. This comes in handy when trading very low timeframes where trade risk can be tiny and leverage high where traditional position size calculations can yield huge position sizes where just the fees can far exceed your risk appetite. This system calculates your position size factoring in fees so you will never exceed your risk settings. Details below.
****
This indicator is designed to assist traders by instantly providing the necessary information to execute orders based on defined risk parameters. This is not an indicator that tells you WHEN to buy or sell, but HOW MUCH to buy or sell based on your risk appetite. The indicator is compatible with any strategy and any instrument
The indicator uses some great pinescript features, allowing you to drag and drop your levels directly on the chart for instant feedback from the risk management dashboard. Huge timesaver.
Instructions:
1. The first time you add the indicator to your chart, you will be asked to identify your Entry, Stop and Target levels by clicking on them directly on the chart. You can at any point adjust these levels directly on the chart, or you can manually enter them in settings
2. Setup your risk profile in the indicator settings:
(a) Current Capital: Enter the current value of your trading account
(b) Max Risk Per Trade: Enter the maximum % of your Capital you want to risk per trade
(c) Max Leverage: Enter the maximum leverage you want applied to your account. This comes in handy when you trade on very low timeframes where position sizes can become very large. No matter what you enter here, position size will never exceed Max Risk Per Trade
(d) Stop Ticks: Number of ticks to use above/below the identified high/low for stops
(e) % fee per trade: enter your brokers fees here to ensure the system takes this into consideration while calculating position size
(e) Use Current Price as Entry (Market Orders): By default, the system will use the entry level you have selected for limit orders. If you want to use the system to display data based on current price for market orders, select “Use Current Price as Entry (Market Orders)”
(f) number of TP levels: enter the number of TP levels you are planning to use to ensure the fees are calculated for them
3. Based on your stop and target levels, the system will automatically determine if you're looking to long or short and accordingly display all relevant data to you.
4. Display Free Trade Level: toggle this on to display the level you should exit 50% of your position to make the trade risk free
5. Dashboard / Text size / level colours and positions are customisable
The Dashboard displays the following information at all times:
1. Entry
2. Stop
3. Trade Risk (%): Percentage price difference between Entry and Stop
4. Max Risk ($): Currency value of loss if the trade is stopped out
5. Size: Position Size to execute your trade based on your risk profile/appetite
6. Size($): Position Size in currency value
7. Total Fees: Total fees for the trade based on settings above
7. P&L($): Potential profit to your Capital in currency value
8. P&L(%): Potential profit to your Capital in %
9. Risk to account: % risk to account - used as confirmation that the max risk to your account, factoring fees is circa your risk appetite
10. R:R: Risk to Reward Ratio
11. % to Target: Percent price needs to move to achieve your target
Hope this helps you with your trading. I built this as I was tired of wasting time opening up spreadsheets or calculators to execute trades - especially on lower timeframes. Making the code open source so if you do make improvements to this I'd love to hear from you. Also open to suggestions.
Happy Trading!
PrimeTrading ExposureThis indicator helps traders staying on the right side of the market and increasing their portfolio exposure as the market health improves.
Nothing kills more accounts than trying to pick a bottom by loading positions below all kma’s. What if the market rollover? Then you take a major hit on your p&l.
The goal is to increase your maximum allowable exposure as the market confirms his way above key moving averages (kma’s).
Market based maximum exposure PT rules:
■ Price < 50dma & Price > 5dma = 20%
■ Price < 50dma & Price > 21dma = 40%
■ Price > 50dma = 60%
■ Price > 50dma & Price > 21dma = 80%
■ Price > 50dma & Price > 21dma & Price > 10dma = 100%
Features
■ You can select the indices reference you prefer to calculate the max exposure ( IWM , QQQ , SPY )
■ You can see the price extension for kma’s (5,10,21,50 dma)
■ Use the current symbol or lock on your preferred reference indices
NDS RISK MANAGEMENT (V1.0)Here is a Risk Management Program that calculates stop loss and position sizing based on NDS analysis.
Inputs:
Entry: The First Symmetry Level T1.
Entry: The Second Symmetry Level T2.
Entry: The Node 1 Level
Entry: The Node 2 Level
Entry: The 86% Level
Target: The First Symmetry Level T1
Target: The Second Symmetry Level T2.
Target:
The Node 1 Level
Target: The Node 2 Level
Target: The 86% Level
Balance: Balance Amount
Risk Level: Percent that is risked of the Balance for one Trade
Output:
Risk Per Point
Stop Loss Price
Take Profit Price
Low Risk Entry Zone
Take Profit Zone
Disclaimer
The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such.
You declare to know the principles and risks of the financial markets. Therefore, you declare that you are aware of the financial risks involved in trading.
In this sense, the author can not be held responsible for errors, omissions, inappropriate investment, technical problems, events beyond his control, and, more generally, financial losses that you may realize, or results obtained in the practice of trading resulting from the markets.
Trading involves a high level of financial risk, and may not be appropriate because you may experience losses greater than your deposit. Leverage can be against you.
Do not trade with capital that you can not afford to lose. You must be aware and have a complete understanding of all the risks associated with the market and trading. We can not be held responsible for any loss you incur.
Trading also involves risks of gambling addiction.
سلب مسئولیت
این اندیکاتور /کد به منظور توصیه یا توصیه رسمی سرمایهگذاری توسط سازنده طراحی نشده است ، و همچنین نباید چنین تفسیر شود.
شما اعلام می کنید که از اصول و ریسک های بازارهای مالی مطلع هستید. بنابراین، شما اعلام میکنید که از ریسکهای مالی موجود در معاملات آگاه هستید.
در نتیجه، طراح در قبال اشتباهات، خطاها ، سرمایه گذاری نامناسب، مشکلات فنی، رویدادهای خارج از کنترل خود، و به طور کلی، خسارات مالی که ممکن است متحمل شوید هیچونگه مسیولیتی ندارد
معاملات دارای سطح بالایی از ریسک مالی است و ممکن است مناسب نباشد زیرا ممکن است زیان هایی بیشتر از سپرده خود داشته باشید. اهرم می تواند علیه شما باشد.
با سرمایه ای که نمی توانید از دست بدهید معامله نکنید. شما باید آگاه باشید و درک کاملی از تمام ریسک های مرتبط با بازار و معامله داشته باشید. ما نمی توانیم در قبال ضرر و زیان شما مسئولیتی داشته باشیم.
ترید یا معامله خطرات اعتیاد به قمار را نیز در بر دارد
Money Management_V2 [javadmhs]Hi every one
you can use this indicator in your trades for money and risk management.
Very easy to use. Just enter the requested information of your trade and see the amount of money you need to enter into a transaction. Also you can see your pnl%.
Risk = The amount of money that if you lose, does not matter to you. This will be a percentage of your total capital.
Balance = your total capital.
Leverage = If you trade in future, you can use this. set it 1 in spot.
Commision = The amount of exchange fee.
Usable Cap = The amount of money you should enter into a transaction, depending on your risk.
PNL% = Amount of profit and loss.
You Can use this for Short and Long.
Let me know if you see a problem.
Portfolio Tracker [Anan]█ OVERVIEW
A simple Portfolio Tracker to track your Profit/Loss for any ticker in any market (stock, futures, index, forex, crypto, fund, dr.).
You just need to input (Asset / Quantity / Avg. Buy/Sell Price) and the script will calculate everything.
Also, you can use it for paper trading, or even what-if cases..
█ FEATURES
- Up to 10 positions
- Track your position real-time price and 24H change %
- Calculate your position current value
- Calculate your position cost value
- Calculate Profit/Loss
- Calculate Profit/Loss %
- Change every color in the table as you like.
Status Symbol HUD***THIS IS NOT A TECHNICAL INDICATOR*****
***THIS IS A HUD (HEADS UP DISPLAY)*******
***TV MADE ME CHOOSE AN INDICATOR CATEGORY****
This is a Status HUD designed to be overlaid your live chart to help you keep track of important information regarding your current position as well as provide 'quick-glimpse' tools and information to help you make quicker, more informed decisions in the moment.
The HUD consist of a small label plotted to the right side of price action keeping your viewing area clean and clear.
The following inputs allow you to customize the information to suit your needs;
AE
This is the Average Entry of your trade. It is assumed that you have calculated this out on your own using external methods. If this is for a single buy-in/buy-out trade, this will just be your entry price
R
This is the percentage of your balance that you currently have in the open trade. This number also needs to be computed using external sources. If you are only interested in keeping track of the status of a single position as an isolated trade apart from your entire balance, you would enter 1 here.
AX
If you are scaling or laddering in and out of a position, this is how you would keep track of your average exit price, This also needs to be calculated externally.
BAL
Input your total balance here if this trade is used against your larger portfolio, this allows for live %PNL calculations on your balance as a whole.
SL
This the real price % you are comfortable allowing price to drop before exiting the position. Currently, the HUD does not calculate SL for you so you will need to calculate your own SL based on your portfolio risk and enter that number here. Future versions will have this baked in, however.
Fees
This is assumed to be a 'one-way' fee. For my personal use I am normally the taker, and my fees are relatively constant. Put in the one-way fee here and the HUD will double that number when necessary to account for 'round-trip' break even points and more accurate SL and target plots.
SPEC
The HUD also has a small selection of 'speculative' tools that can assist in quick information gathering and decision making. By selecting the first check box, this will show or hide the spec dialogue. This spec information appears in the same label as the main info.
Adjusted Average Entry Projection
One powerful feature of the HUD is that by inputting the amount of your next buy-in, you can see a live indicator showing the approximate location that your new average entry will be. This can be very helpful when trying to decide if it is worth employing DCA strategies or if you should simply cut and run.
STEP is a variable that plots the small grey lines above your entry. These are 5 targets, evenly spaced according to this variable. The default is 50, which means the grey target lines show you the price points equivalent to $50, $100, $150, $200, and $250 profit. These targets are fairly accurate when accounting for fees as well, meaning that the $50 target painted here is a REAL $50 with all fees covered!
By selecting the Spec SL box you will show/hide the speculative stop loss projection. This is a small black cross that prints under the current price. This represents your described SL as a function of current price. In other words, if you were to take a new trade at the current price, it shows you where your desired stop will be. This projection is an estimate and does NOT account for fees. It also will NOT work with DCA strategies. It is currently ONLY for new trades. Once you have entered a trade, it is better to turn this off. Future updates will include dynamic projections that account for fees. ;)
HUD Offset is the number of candles forward you wish to displace the HUD interface. If set to 0, the info box will be directly over the current candle.
The info that is on the HUD is as follows;
% = total %the trade has moved since your entry
PNL = Your personal PNL on balance
PNL (line 2) = Your personal PNL as real dollars
---------
MU = the makeup required for a negative trade. This calculates how far UP price must travel to make up the current lost percent. Because the makeup % is not always intuitively related to the loss percent, this can sometimes be handy. For instance, if price is down 20% from entry, you will need almost 26% increase from current price to reach your break even point.
Visual Tools that are plotted are as follows;
Green line = Trade Entry
Red line = SL
Purple Line = Break-even point for fees
Grey lines = profit targets based on 'STEP' increment
Risk ManagementThis indicator helps the trader to calculate the size of the buy or sell in relation to the accepted risk. The calculation includes the risk and the fees paid for the purchase, sale or stop.
The trader needs to enter his capital, the risk accepted in the trade and the fees charged by the broker. Inform the entry price and your stop loss .
You can change to trade on the sale and show your entry and stop loss on the chart.
The indicator will do the calculation and inform the percentage of gain or loss.
Chonky Floating R:RVisualize the floating R:R of an active position.
Input the stop loss and target to return live R:R
Position Size CalculatorThis is a script to help you determine your position sizing. I've attempted to make it as easy to use as possible.
Do you have a set 'R' that you risk per trade? Simply check the box for manual R and enter your risk amount.
If you do not have a set amount to risk, you can input your portfolio size and your percentage to risk per trade.
You'll select long or short and then input your entry and stop. If you do not enter a target then the reward will read NaN for Not a Number.
By default, calculations are done in USD. If you are using a different base currency to calculate positions, risk, or profits, simply un-check that box near the bottom of the inputs. You can also re-color the label or move the label around.
Gold-Stocks RatioA historic risk-off flag.
When the Gold-Stocks Ratio is above the 200 week moving average, investors may fair better holding gold and avoiding equities, as was the case for the last 20 years.
W5T Roller CoasterOur new Roller Coaster indicator is perfect for trading Stocks, Futures, Forex, Commodities, & Cryptocurrencies.
The Roller Coaster is a Stochastic/MACD Cross with Special EMA Points of Control for both Long and Short trades.
Our algorithm works everything out behind the scenes, keeping your chart clean.
With the purchase of our indicator, you will have access to:
Entry Price
Stop Loss Price
Trade Management
Trailing Stop Positions
Get in early on a Trend, or Trade Long & Short as an instrument moves with a range
Check out our signature to learn more!
(15) Trade Risk Reduction VS-132TRR calculates the volatility of your stock. This is just the magnitude of each days price fluctuations, or what technicians refer to as the True Range. TRR averages the True Range (ATR) over three different time periods.
Why three? You want a sensitive indicator that reflect both the long term historical volatility of the equity as well as what that volatility is right now. Obviously the most recent trading days are the most important. The three ATR periods and their weighting factors are:
1) We use a 251 day period which equates to 1 trading year because we want to know what the historical volatility is. This one year period is not weighted.
2) We utilize a 21 day period because the most recent weeks tells us what the stock volatility has been over the previous calendar month. This is weighted by a factor of 2.
3) Finally, we utilize the last weeks data, Last 5 days, (L5D) to provide us with the stocks movement in the most recent trading days. This is weighted by a factor of 4.
The total of ATR251*(1) + ATR21*(2) + ATR5*(4) is then divided by the total of all factors (7).
This results in the Weighted Average True Range that the Trade Risk Reduction utilizes to produce the dynamic bands on your charts as well as power the Risk and Stop loss calculators. These indicate where this indicator is currently recommending you place stops. In the Format options of the application you are provided with the ability to adjust these band. Keep in mind that each stock will act in it's own unique and characteristic way. Looking closely at the stock's historical data, both in longer and shorter time periods should provide you with some insight into the normal variations and fluctuations of this particular equity. Below EBAY provides an example of this.
Access this Genie indicator for your Tradingview account, through our web site. (Links Below) This will provide you with additional educational information and reference articles, videos, input and setting options and trading strategies this indicator excels in.
TAILSThis script confirms how to manage the trade. We use this alongside our other trading tools in Level 3.
Combo Month-to-Month % Return (July - December)This tool acts as Month-to-Month % Return but in Combo mode. Allows to compare the asset's monthly performances across the preferred years. It works everywhere but better in use on the daily timeframe.
Combo Month-to-Month % Return (January - June)This tool acts as Month-to-Month % Return but in Combo mode. Allows to compare the asset's monthly performances across the preferred years. It works everywhere but better in use on the daily timeframe.
Add More Usual 5 MAsAdd 5 more usual emas. Maintains coherence of the temporal framework that is being observed.