Stablecoins DominanceStablecoins Dominance
The purpose of the script is to show Stablecoin's strength in the crypto markets.
5 Largest Stablecoins divided by Total Market Cap
Educational
Altcoin Dominance (without ETH) Excluding Stablecoins UnsymetricAltcoin Dominance (without ETH) Excluding Stablecoins Unsymetric
The purpose of the script is to show Altcoin's strength without Ethereum once we exclude stablecoins.
So we look into all altcoins besides eth and besides stablecoins divided by a value of eth+btc
Altcoin Dominance Excluding EthereumAltcoin Dominance Excluding Ethereum
The purpose of the script is to show Altcoin's strength without Ethereum.
Pretty much shows Altcoin's Dominance in comparison to Market Cap once we exclude Ethereum.
ETH Dominance Excluding StablecoinsETH Dominance Excluding Stablecoins.
The purpose of the script is to show Ethereum's strength relative to other cryptocurrencies.
Pretty much shows ETH Dominance in comparison to Market Cap once we exclude the 5 largest stablecoins.
Position Tools [Lot,Profit,Loss,Entry,RR,Balance][Mir Nader]This indicator is the advanced version of the position tool in Trading View. When I opened a trade in Metatrader, I had to switch between the MetaTrader and Trading View programs for the amount of profit or loss, that's why I thought of writing an indicator that shows the exact amount of profit, loss, size and other values of the open trade. It came to my mind.
Also, when you use the reply section for backtesting, this indicator helps you to use all the necessary information in each Trade to accurately calculate Trades.
To enter, it is enough to specify the three entry points, target and stop loss according to the message that is displayed to you, so that all the necessary information will be displayed for you.
Well, let's get to the main explanation about how the indicator works :
The indicator consists of two parts :
1 - the calculation table
2 - trade on the chart
Calculation table
This table shows the exact calculations of your trade live.
As you can see, this table consists of 10 sections, which I will describe each.
1 - Your trade entry point on the chart
2 - Your Stop Loss point along with the loss Pip amount
3 - Your Take Profit point along with the Profit Pip amount
4- The fourth part of the table, which is the most important part in my view, shows your current profit amount according to the risk percentage and your Broker Commission per Lot you have defined for Trade, and according to the balance, risk, Tp and Sl value, just like a Risk Management. It suggests the volume of your input based on the lot.
5 - Show the percentage change of the main market according to your trade live
6 - Display the value of Risk to Reward both according to Target Profit and live
7 - This section and the next section of the table show the amount of profit live according to the amount of the lot determined by you and without the risk of the transaction.
8 - Display the current amount of your balance according to whether the trade is in profit or loss
trade on the chart
The second part of the indicator includes the events that are being displayed on your chart
This section supports three types of display modes for buying or selling trades.
The first condition of your trade is that the price has not yet reached the entry point.
The second state is your trade that has not yet hit your target or stop
And the third state of your trade is that your target or stop has been hit.
Further Details :
I am still working on many conditions to add to the indicator and this will take more time.
For example, showing RR live on the chart after each touch has been added for buying Trade but this part is still problematic for selling Trade In the picture below, you can see that your Trade has already passed 3R profit
I have placed three labels next to each Trade for you so that you can see the values of Tp, Stop and Live without needing a table. These values will soon be visible with more options.
All calculations with precise mathematical formulas for accurate performance have been done by myself.
I will be at your service soon with more updates, I will be happy if you send me your suggestions to improve the indicator.
PT Levels SessionsVersion 1.0 - PT Levels offers visual for Daily, Weekly, Monthly, Quarterly Yearly range.
Some sauces:
PT Range - Daily open, Monday High, Monday Low, Weekly Open
Weekend range, Wednesday range, CME Open, CME Close, NY Range, London Range & Asia Range
Strategy:
Price tends to gravitate between the Daily level when playing intraday scalps. If playing the weekly, you want to be above the weekly pivot to punt longs & under the weekly level to punt shorts. More likely than not, when the price hits a monthly or yearly level, we get a noticeable reaction off it.
These levels will give you an idea of where the price can react if reached. Consider them pivotal areas. We included a toggle that will help you go between the candle's High/Low to the candle's Open/Close. Both features are unique when scalping & swinging. The Level Sessions will paint a beautiful visual for your day-to-day trading & the Open/Close will help you determine where price maxed opened & closed for that specified timeframe.
If analyzing the crypto markets - Try to pay attention to price action on the weekend. We included a weekend range to offer a visual of the HIGH/LOW during the weekend when the volume is low & price is easier swayed.
Feel free to contact us for any suggestions. Check our indicator suite for the rest of our developed tools.
Nifty36ScannerThis code is written for traders to be able to automatically scan 36 stocks of their choice for MACD , EMA200 + SuperTrend and Half Trend . Traders can be on any chart, and if they keep this scanner/indicator on , it will start displaying stocks meeting scanning criteria on the same window without having to go to Screener section and running it again and again. It will save time for traders and give them real time signals.
Indicators for scanning stocks are:
MACD
EMA200
Supertrend
HalfTrend - originally developed by EVERGET
Combination of EMA200 crossover/under and MACD crossover/under has worked well for me for long time, so using this combination as one of the criteria to
Scan the stocks. Using Everget's Half Trend method confirms the signal given by MACD , EMA200 and Supertrend Crossover.
I have added 36 of my favourite stocks from Nifty 50 lot. Users of this script can use the same stocks or change it by going into the settings of this scanner.
The Code is divided into 3 Sections
Section 1: Accepting input from users as boolean so that they can scan on the basis of one of the criteria or any combination of the criteria.
Section 2: "Screener function" to calculate Buy/ Sell on the basis of scanning criteria selected y the user.
screener=>
= ta.supertrend(2.5,10)
Buy/Sell on the basis of Supertrend crossing Close of the candle
//using ta.macd function to calculate MACD and Signal
= ta.macd(close, 12, 26, 9)
using HalfTrend indicator to calculate Buy/Sell signals , removed all the plotting functions from the code of Half Trend
Bringing Stock Symbols in S series variables
s1=input.symbol('NSE:NIFTY1!', title='Symbol1', group="Nifty50List", inline='0')
Assigning Bull/Bear ( Buy/Sell) signals to each stocks selected
=request.security(s1, tf, screener())
Assign BUY to all the stocks showing Buy signals using
buy_label1:= c1?buy_label1+str.tostring(s1)+' ': buy_label1
Follow the same process for SELL Signals
Section 3: Plotting labels for the BUY/SELL result on the in terms of label for any stocks meeting the criteria with deletion of any previous signals to avoid clutter on the chart with so many signals generated in each candle
Display Buy siganaling stocks in teh form of label using Label.new function with parameters as follows:
barindex
close as series
color
textcolor
style as label_up,
yloc =price
textalign=left
Delete all the previous labels
label.delete(lab_buy )
STOCKS SELECTION
We have given range f 36 stocks from NIFTY 50 that can be selected at anytime,. User can chose their own 36 stocks using setting button.
INDICATORS SELECTION
1. MACD: It i sone of the most reliable trading strategy with 39.3% Success rate with 1.187 as profit factor for NIFTY Index on Daily time frame
2. EAM200 + Super trend : Combination of EMA200 crossover and Super trend removes any false positives and considered a very reliable way of scanning for Buy/Sell signals
3. HALF TREND: Originally developed as an indicator by Everget and modified as strategy by AlgoMojo, it generates Buy/Sell signals with 40.2% success rate with 1.469 as profit faction, on 15 minutes timeframe.
Sort array alphabetically - educational🔶 OVERVIEW
• This educational script will sort an array of tickers alphabetically and place these values in an table , together with the according current price value next to each ticker .
🔶 SORT ALPHABETICALLY
🔹 I. We make a User Defined Type (UDT) obj , with:
· ticker - the string name of the ticker
· price - the current price (close)
• From this UDT we make an object obj.new() for each ticker
🔹 II. 2 array's are made:
• array of objects aObj , containing obj type obj.new() for every ticker
• array of strings sort , the ticker part of each object obj.new()
🔹 III. Now we make an object of each ticker with the createObject(sym ) function
object_1 = createObject("TICKER")
• the object object_1 consists off:
· ticker -> "TICKER"
· price -> current Daily close through request.security("TICKER") (non-repainting)
• object_1 will be added to the aObj array
• "TICKER" ( string ticker part of object ) will be added to the sort array
🔹 IV. The latter array is sorted alphabetically by using array.sort_indices()
EXAMPLE
originalArray = array.from("B", "A", "C")
indicesArray = // sorted indices
array.get(originalArray, 1) -> "A"
array.get(originalArray, 0) -> "B"
array.get(originalArray, 2) -> "C"
IMPORTANT
Alphabetically sorting is case sensitive , just like Java compareTo(String anotherString) !
• The comparison is based on the Unicode value of each character in the string, the lowest "Dec" values are sorted first in line.
• Comparing the "Dec" values at unicodelookup explains why default CAPITAL lettres will be sorted first,
• Default you would get this (A= 65, B= 66, a= 97, b= 98)
Aa
Ba
ab
bb
• Adding str.lower(string) in the toLowerCase() function will result to the following:
Aa
ab
Ba
bb
• (A= 65 is transformed to a= 97, ...)
• As a side note, should you write "AMZN" as "ÀMZN" this would be placed at the end, even after transforming to lower case the "Dec" values are higher (À= 192, à= 224).
• You can toggle "To Lower Case" to verify.
🔹 V. Values are placed in a table , using these sorted indices.
• With the usage of UDTs and objects , the current price has the same index in the aObj as their ticker ,
giving the advantage it is fairly easy to place every value correctly next to each other.
• The same can be done by make 2 separate arrays , 1 for the current price , the other for "TICKER" .
🔶 OTHER TECHNIQUES USED
• Alternative technique for adding comment
Instead of
// this is a comment
You can also do this:
_=" this is a comment "
• Alternate colour
· During a loop , alternate colour when i is even or odd , using the modulo operation (%) .
· This is the remainder when dividing.
EXAMPLE
· 3 % 2 = 1 -> 3 / 2 -> 1 * 2, 1 left (remainder)
· 4 % 2 = 0 -> 4 / 2 -> 2 * 2, 0 left (remainder)
· 5 % 2 = 1 -> 5 / 2 -> 2 * 2, 1 left (remainder)
for i = 0 to 10
even = i % 2 == 0
col = even ? thisColor : otherColor
• Adjust colour in script by using colour picker
Cheers!
OKx USDT Hourly Lend Rate MAR 2022 - JAN 2023OKx USDT hourly lend rate from MAR 2022 to JAN 2023. Use with hourly chart
It's hard-coded external data from Okx API, so it does not auto-update .
Expect some compilation time when adding to the chart.
Will update later data in a separate script, since there is a variable limit in one script.
OKx USDT从2022年3月到2023年1月的余币宝每小时借贷利率。配合小时图使用
因为是从API调用得到的数据然后硬编码进来的,受限于Pine功能, 所以不会自动更新 。仅供复盘使用。
添加到图表时会有点卡。
后续时间的数据会加到另外的脚本中,因为每个脚本有变量上限,只能给这么多数据画线。
ICT Killzones [LuxAlgo]This script highlights ICT Killzones on the chart along with Fibonacci retracements constructed from each Killzone's price range, allowing traders to find more optimal entries.
Settings
Killzone Retracements
Show Retracements: Determines whether Fibonacci retracements are displayed on the chart.
Extend: Determines if the retracements are extended outside the Killzone.
Reverse: Switches the maximum and minimum levels for the calculation of the retracements.
Other settings allow disabling as well as changing the retracement value and color.
Usage
Killzones are introduced by forex trader ICT and represent different time intervals that aims at offering optimal trade entries. Killzones include:
New York Killzone (7:9 ET)
London Open Killzone (2:5 ET)
London Close Killzone (10:12 ET)
Asian Killzone (20:00 ET)
Note that using timeframes superior to 1h can highlight incorrect intervals
Fibonacci retracements on an active Killzone are subject to changes, if no Killzones are active then the associated Fibonacci retracements will stay at their current level.
Disabling specific Killzones while having extended retracements will allow them to extend further. In the image above the New York and Asian Killzones are disabled.
Basic Position Calculator (BPC)In trading, proper position sizing is essential to managing risk and maximizing returns. The script provided is a Basic Position Calculator that allows traders to quickly and easily calculate their position size, stop loss, take profit, and risk reward ratio for a given trade.
The script starts by defining several inputs for the user to customize the calculations. The first input is the "Account Size", which specifies the total amount of funds available for the trade. The next input is "Risk Amount %", which is the percentage of the account size that the trader is willing to risk per trade. The "Stop Loss" input specifies the maximum amount of loss that the trader is willing to accept, while the "Reward" input is the desired profit target for the trade. Finally, there is a "Position" input that allows the user to specify where on the chart the table of calculations will be displayed.
The script then calculates the position size, stop loss, take profit and risk reward ratio using the user-specified inputs. The position size is calculated by dividing the risk amount by the stop loss. The stop loss is calculated by multiplying the stop loss percentage by the close price, and the take profit is calculated by multiplying the stop loss percentage by the close price and the reward. Risk-reward ratio is the ratio of amount of profit potential to the amount of risk in a trade.
The script then creates a table and displays the calculated values on the chart at the specified location. The table includes the following information: account size, position size, account risk %, stop loss, stop loss %, take profit, take profit % and risk reward ratio. This allows the trader to quickly and easily see all the key calculations for their trade in one place.
Overall, the Basic Position Calculator script is a valuable tool for any trader looking to quickly and easily calculate their position size, stop loss, take profit, and risk reward ratio for a given trade. The ability to customize the inputs and display the calculations on the chart makes it a useful and user-friendly tool for managing risk and maximizing returns.
DS FLASH Volumetrade balance volume can show in under the chart. Trade balance, also known as the balance of trade, is a measure of a country's exports minus its imports. A trade deficit occurs when a country imports more goods and services than it exports, while a trade surplus occurs when a country exports more than it imports. The trade balance can be shown in a chart as a line graph, with the trade balance represented by the y-axis and the time period represented by the x-axis.
Live PnL v1.0Live P&L for multiple stocks, currencies, crypto and commodities can now be tracked for your favorite scripts, pair trading etc.
This indicator gives provision to add up to 3 stocks/futures/currency with Buy and Sell, Quantity (can be lot size or any other) and Entry Price and set as default so that every time you put back this indicator you can monitor the live Profit / Loss figure.
This indicator will help trade to evaluate and track tips/trades of experts on social media and Media platforms and check their accuracy themselves in an organized way.
Apart from paper trading a trade or multiple positions ones combined together it also gives a feeler of combined Mark to live Market Drawdowns or Profitability.
RLT GapsThis tool is meant to help you learn the different types of gaps:
GNG = Gap N Go (flag icon). This occurs
RTG = Retest Gap (x icon)
SETTINGS
Gap Size: Will display a green(bullish) or red(bearish) icon. The 2% (default) gap size will highlight gaps that are greater than the configured setting (2% up or 2% down).
NOTES
The gap size is measured from the previous day CLOSE to the current day OPEN and ignores the current days movement.
Multiple Divergences (UDTs - objects) - Educational█ OVERVIEW
This script highlights the usage of User-defined Types (UDTs) and objects , and bullish /bearish divergences.
Pivotpoints are used to find divergences, the result of this script will be different against other public multiple divergences scripts.
FOR Pine Script™ CODERS
Besides the information found in CONCEPTS , the comments in the script will, hopefully ), guide you through my thought process.
█ CONCEPTS
The main principle of this script are bullish /bearish divergences, this with 3 different oscillators ( RSI , CCI , MFI )
If you want to know more about divergences, have a look at some Education and Research idea's .
On every bar, an object HLs is made, containing bar_index , high , low , and 2 bool variables ( isPh , isPl ).
On every bar, an object Osc is made, containing bar_index , o (oscillator value), and 2 bool variables ( isPh , isPl ).
If a pivothigh (ph ) is found, isPh will be true on that bar, false otherwise.
If a pivotlow (pl) is found, isPl will be true on that bar, false otherwise.
These objects are added to an array, with limited size.
If a ph is found, the script draws a testline from that ph to every previous ph , found in the array.
Then every high in between these 2 points are checked if they don't pierce the testline .
If the testline isn't broken, the Reg_Div_Piv() function will give 4 values, 1 check (not pierced) variable and the 4 points of the line.
The testline is deleted.
Once a positive check is found, the script will perform the same, but now with the Osc objects.
The script will ONLY compare Osc pivots which are maximum 1 bar away from the high/low pivot .
If everything is confirmed, a line is drawn, visible on the chart.
█ REMARKS
A label will be visible with a number, this is the amount of divergences found with the according oscillator .
EXAMPLE
Div with RSI and CCI -> 2
Div with MFI alone -> 1
Div with RSI and CCI and MFI -> 3
...
Divergences should only be used when confirmed, this is after bar close .
As an aid, lines that are not confirmed will be dotted , if confirmed, they will be solid .
The divergence check start when a ph/pl is found, after which oscillator pivot are checked.
Optionally the same can be done, when a oscillator pivot is found and then check the ph/pl ,
this should give more results, although it can make the script slower.
█ SETTINGS
Left - amount of bars at the left which needs to be lower/higher
Right - amount of bars at the right which needs to be lower/higher
Max values - maximum values in array of objects
3 oscillator settings with
• ON/OFF
• Length
• color bullish divergence
• color bearish divergence
Have FUN !
Average Range @coldbrewroshTaking the average daily range from low to high or high to low isn't the "best" way to get an idea of how much to set targets. So, I made this indicator to make the system better.
This indicator calculates the daily range from Open to High on Bullish Days & Open to Low on Bearish Days .
Nobody can catch the absolute low of the day on bullish days and get out at the high but one can enter at a reasonable price around the open ( 17:00 EST ) .
To complement the Average Range, another table shows the movement in the opposite direction.
For Instance: On Bullish Days how much it moved from Open to Low so that we have an idea of where to put the stop loss and vice versa. The time ranges calculated are the last 5 days, last 1 month, last 3 months & last 1 year.
Note #1: Even though the date range is predefined, it has a different meaning. For Instance: date range of last 5 days means "calculation of the range of last 5 bullish daily candles & not last 5 days" .
Note #2: Exclusive to Forex at the time of posting this.
Elliot Wave Helper Table█ OVERVIEW
This indicator is intend to be helper to help Elliot Wave user to properly Elliot Wave tools according to correct degree such as 12345 or ABCWXY. The abbreviation changes according to timeframe.
█ FEATURES
1. Abbreviation degree adaptive to timeframe. Eg : Subminutte for 1 minute chart, etc.
2. Works for custom timeframe. Eg : Subminutte for 1 to 4 minute chart, etc.
3. Show reference table if necessary.
█ REFERENCE
Adaptive Elliot Wave Degree Chart
█ EXAMPLES / USAGES
Harmonic Pattern Table UDT█ OVERVIEW
This table indicator was intended as helper / reference for using XABCD Pattern drawing tool.
The values shown in table was based on Harmonic Trading Volume 3: Reaction vs. Reversal written by Scott M Carney.
Code upgrade from Harmonic Pattern Table (Source Code) and based on latest User-Defined Type (UDT) .
As a result, code appeared more cleaner.
█ FEATURES
1. List Harmonic Patterns.
2. Font size small for mobile app and font size normal for desktop.
3. Options to show Animal name in text, emoji or both.
█ USAGE
Similar to Harmonic Pattern Table (Source Code).
█ CREDITS
Scott M Carney, Trading Volume 3: Reaction vs. Reversal
Reverse Engineering RSI II - EMARSI and SMARSIThis is the Reverse Engineering EMARSI and SMARSI Indicator.
It’s based on the work of Giorgos Siligardos on Reverse Engineering RSI.
The Reverse Engineering EMARSI and SMARSI Indicator shows the Exponential Moving Average and the Simple Moving Average of the RSI line but plotted in the price chart.
This script is also a complement of "Reverse Engineering RSI, by Giorgos Siligardos" script by HPotter but can also be used alone.
By default the RevEngSMARSI is turned off.
The RevEngEMARSI is the white line.
I’ve also added to the indicator:
1) Simple Moving Average (MA) of the EMARSI (EMARSI SMA) - Orange Line
2) Standard Deviation Bands for the EMARSI SMA - turned off by default
Using the settings I left in default (Length's = 1), we can see that when the EMARSI SMA is horizontal the price rises and so does the EMARSI. Also when the EMARSI SMA rises that's a signal that there is a resistance/support at that price. We can observe such thing if we draw horizontal lines at those prices. We can use this to help us put stop-losses and take profits. Also, those resistance/suport prices are ALWAYS the closing price of the first red candle after a bullish trend (big or small trends). Interesting...
When the EMARSI SMA rises and touches the EMARSI 3 things can happen:
- Bullish Trend slows down
- Correction of price
- Trend reversal
So, when the EMARSI SMA rises that can be interpreted as a signal for taking profits.
We should always wait for the price to close in the timeframe we're using, because sometimes the EMARSI SMA rises before the closing price and flattens again when is about to close.
However we should never take decisions based on 1 indicator. Our trading decision should always take in consideration multiple sources of information.
Of course we can use other settings for the trading. And if we do that we will observe different behaviours. And we should also study those behaviours. We can then use the crosses between the lines.
If there is something wrong with the code or its calculations, please let me know.
If you want to modify or improve the code, feel free to do that, but please let me know the changes you made.
This Indicator works in all timeframes. I hope you enjoy it!
TradingView PartyNow you can enjoy TradingView as your very own personal party lights display!
This script is not designed to be seriously used for trading. It draws lines, boxes and labels randomly to simulate party lights. I recommend disabling other chart plots, including the price and also to use this script on a live chart (one on which the price is moving) with a low timeframe such as a 1 second or 1 minute chart, so that what you see will change often.
The point of this script is to have cool looking things appear on the chart somewhat randomly. Hue, saturation, lightness and transparency can be edited the settings. All colours are generated randomly within those constraints.
Thanks to @RicardoSantos and @HeWhoMustNotBeNamed for their contributions to the random colour generation in this ground breaking work.
CalculateEN:
Interactive script to calculate lot and position size.
You can also use multiple positions for the DCA strategy.
After adding an indicator and making an initial interactive selection on the chart, you can change the selection points by selecting the indicator and moving the points on the chart.
ICT Killzone by JeawThis is an indicator script for TradingView called "ICT Killzone". It is a useful tool for identifying the London and New York open and close sessions, as well as the Asian range on the chart. The appearance of the "killzones" can be customized by selecting colors and transparencies for each session. Boxes can also be displayed around each session and labels with additional information can be added. This script is compatible with intraday charts and time multipliers up to 60 minutes. It was created by Jeaw and is based on the ideas of the ICT (Institutional Cash Trades) methodology. This script can help traders avoid entering the market during high impact news events and periods of low liquidity. By identifying these potentially volatile times, traders can better manage their risk and improve their overall trading strategy.
VF-ST-EMA-CPRVolatility and Fibonacci table helps to identify support and resistance for the day/week. Similarly, the CPR (Central Pivot Range) table helps to identify the support and resistance for the day/week. Additionally use SUpertrend and EMA to identify trends.
Disclaimer:
This indicator is for educational or study purposes. There is no recommendation to buy or sell any scrip here. Take your own risks and rewards and you are only
responsible for any outcome after using this indicator.