Spot Index Generator - The Quant Science Create your own spot index and compare returns with a benchmark. With this tool you will be able to quickly check if your portfolio management is better than the benchmark. It is a professional tool suitable for medium to long-term investors who need to create a personal and custom index with only spot assets and need to compare it with the return of a specific market.
Features
You can create your own indexes using up to 10 different assets. Through the user interface you can adjust the weight for each asset, and the initial capital with which to build the index.
Quantitative Data
1. Index Return vs. Benchmark Return
Compare your personal index with the benchmark.
2. Index Average Return vs. Index Return
Compare the return of your index with the average of returns. You can adjust the averaging through the user interface.
3. Volatility Index Analysis using Index Return and Average Index Return
Show the volatility of your index move over key levels created using the average of your index returns.
For the example used in the chart, we created a custom index for the crypto market, including 8 different assets:
1. KUCOIN:ETHUSDT , 10%
2. BINANCE:BNBUSDT , 10%
3. BINANCE:MATICUSDT , 20%
4. BINANCE:AVAXUSDT , 5%
5. BINANCE:SOLUSDT , 5%
6. KUCOIN:GODSUSDT , 10%
7. KUCOIN:SANDUSDT , 10%
8. BITGET:SHIBUSDT , 30%
The reference benchmark is KUCOIN:SANDUSDT .
The period of analysis start at January 1, 2023 to today.
Timeframe selected: 5 min
Capital: 1000 USDT
Following the benchmark analysis, the built index (lime color) does not perform better than the benchmark (blue color). As can be seen, the index created a lower return than the benchmark.
Indextrading
[Pt] Premarket Breakout StrategyThis is a 1 trade per day strategy for trading SPY or QQQ index. By default, this is designed for 1 min time frame. This was an experimental script that seems to be profitable at the time of publication.
How it works:
Pre-market high and low is defined per trading day between 9:00 to 9:30 EST.
Then we looking for the first breakout on either PM high or PM low.
- Breakout high = long trade
- Breakout low = short trade
If long trade, we wait until Stochastic RSI D signal line to hit a lower threshold (18 by default). Then we enter long when K crosses above D line.
If short trade, we wait until Stochastic RSI D signal line to hit an upper threshold (82 by default). Then we enter short when K crosses below D line.
Stop loss for long
- set to PM low if entry is above PM high + %ATR buffer
- or set to PM range + %ATR buffer
Stop loss for short
- set to PM high if entry is below PM low + %ATR buffer
- or set to PM range + %ATR buffer
Profit target is set to 2x the risk by default.
*Note: Different Stochastic RSI lengths should be used if trading 5 min time frame. See tooltip.
Happy trading~~!
Index Reversal Range with Volatility Index or VIXWhat is the Indicator?
• The indicator is a visualization of maximum price in which the respective index can go up to in comparison with it's Volatility Index or VIX.
Who to use?
• Intraday
• Swing
• Position
• Long term Investors
• Futures
• Options
• Portfolio Managers
• Mutual Fund Managers
• Index Traders
• Volatility based Traders
• Long term Investors and Options Traders gets the maximum benefit
What timeframe to use?
• 1 Year: Position & Investors
• 6 Months: Position & Investors
• 3 Months: Swing & Position
• 1 Month: Swing & Position
• 1 Week: Swing
• 1 Day: Swing
• 1 Hour: Intraday & Swing
What are Upper and Lower lines?
• Upper Line: If the index price reach closer to the Upper line there is a high chance of reversal to Bearish trend.
• Lower Line: If the index price reach closer to the Lower line there is a high chance of reversal to Bullish trend.
• This need to be confirmed with multiple levels like Daily, Weekly, Monthly etc.
How to use?
• If the price reach closer to that level there is a high chance of reversal from the current trend.
• To identify the reversal zone of the index.
• To identify the trend.
• Option Traders can Sell a Call or Put Option from that level.
• Long term Investors, Position or Swing traders can plan for a Long entry.
• Intraday traders can use lower timeframes to do the same.
Indicator Menu
• Input VIX: Identify the VIX Symbol of your Index and type it in the box.
• For example for NIFTY Index chart type INDIAVIX in the box.
• Choose multiple timeframes according to your convenience.
How to turn on indicator Name and Value labels?
• Right side of the screen >
• Right click on the Price scale >
• Labels > Indicators and financial name labels, Indicators and financial value labels
Further Reading:
• Various videos and reading materials are available about this method.
Make Your Own Index!Intro
For my first script, I have released Make Your Own Index version 1. It has a long way to go so please stay tuned. Scroll down to read all the updates and notes as they come in.
Why it matters
Making your index is important to quickly see an index of symbols that you want to chart. Having the ability to assign weightings gives you the opportunity to make the index equal weighted or custom weighted. As we all know, indexes like the S&P 500 are NOT equal weighted, but more heavily weighted toward the winners. Now, you can make your own of a basket of symbols and make them custom weighted or equal weighted. Have some fun exploring this.
Features
You select the symbols of your choice and then chart them as one line with a specific weighting. This can be done in the settings menu once the indicator is selected. Use the symbol search field to add a symbol. From what I have tested, it works for any symbol whether it's stocks, crypto, FX and more. The default is set to stocks.
The Weight field in the settings menu is where you can assign a specific weight to the symbol of your choice. This way you can make an equal weighted index or a custom weighted index. By default each symbol is set to 10 or 10%. There are 10 symbols in the menu, so at 10%, they are equally weighted! In the script I have made it so each weighting is in percentage terms. So type in the percentage and you're good to go.
The chart is currently displayed in a separate window and not as an overlay. This may change in the future. The line can also be changed slightly and the color of it. Stay tuned for more on this.
Send in feedback
I am a Pine rookie in all regards and I am surely looking for support, feedback, and/or ideas. I want to add a lot more to this. If you look at the settings you will see have some input fields that are in their first iteration and currently needing to be improved. Rather than waiting to make them perfect, I just want to get this out there and update as I go. Also, as mentioned, I will definitely need a little support at adding more features that I have in mind.
Credit where credit is due
I used a lot of Open Source indicators as inspiration to quickly get going so thank you to the following people and accounts who share open source scripts that you can use to learn, test, and get started instantly:
@TradingView
@LucF
@PineCoders
@KioseffTrading
@norok
@RedKTrader
@NeoButane
And many others. That's the beauty of open source!
Closing note
Publishing it open source so people can fact check my code and thinking. One thing I know for sure is that this can probably be created in a more efficient way. Nonetheless, please a take look and let me know what you think - I am excited to make some updates over the coming weeks.
Thanks for reading!
Multiband - Market TimerThis strategy is made for market timing in the bull markets. Hence, more ideal to use it with index ETFs or high conviction large caps.
This makes use of different custom indicators:
Multi Band Channel - Overbought/Oversold Oscillator
VixFix Linear regression
Regular Linear Regression.
Multi Band Oscillator is used for identifying overbought/oversold state of the instrument. This is used in conjunction with VIXFix Linear Regression to to find market bottoms for entry conditions.
Few parameters are explained below:
CheckBandDistance - If checked checks for narrow bands and ignore signals when crossover happens in narrow bands.
ConsiderOversoldDaysCounter/ConsiderOverboughtDaysCounter - If checked, considers oversold and overbought crossovers only if instrument stays in oversold/overbought state for that many bars.
UseLinearRegressionToOpen/UseLinearRegressionToClose - If checked, combines linear regression along with overbought/oversold condition for entry and exits.
UseVixFixToOpen - Uses VixFixLinear regression to identify market bottom and this condition will be combined with oversold/overbought state. When using VixFixLinearRegression signal, we can allow generating entry signals during non crossover bars. Vix Fix Entry Range sets the max bar for multi band state to be for generating signal. For example, if Vix Fix Entry Range is set to oversold, signal is generated based on VixFix if price is below oversold.
ExitStrategy - This can be trailing/reversal or combined. If set to reversal, exit will happen on state moving out of oversold region. If set to Trailing, stop will be based on trailing stops. Indicator shows what is the present stop value. If set to combined, exit will happen on stages. 30% of the remaining position gets closed upon reversals. State may go into oversold and return back many times before having full exit. If this happens, each time, 30% of the position will be closed. Full position closure happens on hitting training stop.
Candles are colored based on linear regression.
Green -> positive and moving up
Lime -> Positive moving down
Orange -> Negative moving up
Red -> Negative moving down
Purple -> Possible VixFix peak - aka Market bottom
Another snapshot of the script along with Linear regression and VIXFix-LinReg indicators:
Related scripts are found here:
I have not put additional indicators to identify trend. But, can be combined with higher timeframe trend filters to generate better signals. Making this as invite only script as I find it very lucrative to time index ETFs. Please PM me if you want to try this script.
Assisted framework with the Algorithm Builder - INDEXHello traders
I. 💎 SCRIPTS ACCESS AND TRIALS 💎
1. For the trial request access, they have to be done through my website .
2. My website URL is in this script signature at the very bottom (you'll have to scroll down a bit and going past the long description) and in my profile status available here : Daveatt
Due to the new scripts publishing house rules, I won't mention the URL here directly. As I value my partnership with TradingView very much, I prefer showing you the way for finding them :)
3. Many video tutorials explaining clearly how all our indicators work are available on your website > guides section.
4. You may also contact me directly for more information
II. 🔎 Algorithm Builder INDEX 🔎
2.1 INDEX trading
Let's start with a quick definition.
Index Trading is a type of trading of a group of stocks that make up the index. An Index is a measurement of the value of a section of the stock market. It is computed from the prices of selected stocks. It may also be referred to as a group of stock market publicly-listed uppermost businesses within a region. There are numerous Stock Market Indices within the world such as Dow Jones/SPX500 (USA), DAX (Germany), S&P/ASX 200 (Australia), FTSE100 (London), CAC 40 (France), AEX index (Amsterdam), IBEX 35 and more.
2.2 🔗 Which brokers are compatible? 🔗
⚠️⚠️Please note we mostly tested those signals with FXCM broker.
You may use a different broker but you have to make sure your broker has a similar price quote with at most 2/3 pips difference with FXCM.
We chose a broker where the spreads are among the lowest across the board.
Disclaimer : we're not affiliated in any way with them.
2.3 Concept
This indicator is born because we identified 2 types of traders :
1) Those who want to play with the indicators and discover a sound system by themselves.
That's why we made the Algorithm Builders (Singles/Multiples) + Backtest suites
2) Those who want to be guided way more and get signals that actually are very coherent AND without too much configuration on their end.
We're very aware that this point is a big claim and to prove how confident we are with our Algorithm Builder (INDEX), we're sharing on TradingView the signals given by the tool at the end of each day.
Our new PREMIUM customers automatically get a 3 weeks trial to try out all of our indicators and see themselves how they perform.
We could show you all the track records/backtests in the world (which could easily be faked with very optimistic setups or photoshop) - instead, we'd like YOU to try our products yourselves during your Trial - as this would be the best proof you could ever get that our indicators could help your trading.
III. 🔅 The INDEX Framework 🔅
ALL signals are displayed because they have to be taken (unless invalidated or risk too big) because we cannot know before what signal will lead to big profits versus get invalidated.
Those signals were made such as :
- in case of a risk of losing capital, we would lose a small amount thanks to the invalidations/hard exits.
- give only signals where the Risk-to-reward is decent enough and the risk is not disproportioned compared to the potential reward.
- NOT a guarantee at all but we made those signals such as they'll reward the traders with about 30/50 pips gains per trade.
Assuming the Algo INDEX gives 5 trades a day and you applied it on 3 indexes and 1 trade per index is a loss (= likely invalidated with a small loss - a Stop Loss could always happen but we designed it to prevent those from happening), then we're not aware of any other trading method/system beating that on index trading. Period.
And we're actively monitoring what the competition is doing on a daily basis always to stay ahead.
I'll explain below which market condition is riskier and how to act (which is better than usually reacting in trading or in life in general).
IV. 📜 The 10 Commandments 📜
1️⃣ You shall read our guide on our website and look at the video tutorial .
URL available on this script signature (you'll have to scroll down a bit and going past the long description) and in my profile status.
I give way more details there and won't give too much info here because it will make this script description way too long.
2️⃣ You shall follow the method religiously and trade like a “MACHINE” .
All graphical elements displayed on the chart by our indicator is useful (= to be used) and has been thought of, tested and traded with for years.
We know that adopting someone else's method is a huge leap of faith but it's required sometimes to ask our clients to trust us.
3️⃣ You must always consider the supports and resistances.
We know it could be surprising to see so many S/R displayed by the indicator but you'll have to trust us on the following claim: They're all important and must be considered before entering a trade or not
4️⃣ You must Not change the recommended chart timeframe.
Even if the chart timeframe is 1 minute, the sub-indicators used are very smoothed and based on indicators in 15/30/1h timeframes.
Entering in a 1 min chart allows to enter sooner and this combined with multi timeframes indicators allows to enter when a trend is confirmed.
5️⃣ You Must NOT trade anything else than indexes with this indicator.
As said before, we're working really hard on releasing a similar assisted trading framework for cryptocurrencies and other asset classes (FOREX, COMMODITIES, ...) and we aim to release the Algo Builder CRYPTO before the end of this year.
We started with the ALGO INDEX because it's our specialty, there is a ton of liquidity in that market and a lot of traders asked for it - we would say almost as close as the number of traders asking us for an ALGO CRYPTO framework.
6️⃣ You shall know the Leading Trend displayed on your chart
- Signal in the same direction of the leading trend: i.e. green signal on a green chart background and red signal on a red chart background.
- Signal given regardless of the leading trend direction.
In other words, green/red signal may be displayed on either background color (green/red)
In that scenario, we recommend waiting for a pullback near the EMA(20) and set your SL to breakeven quickly.
⚠️ To be clear; ALL signals should be taken but those against the trend could require a pullback as explained above.
7️⃣ You shall know your trading profile
Trend confirmation when entering against the leading trend: You'll also notice that the leading trend is real and strong.
Let's assume a trader enters in a LONG position/RED background and then the chart background turns GREEN at some point later on.
You'll often see that this "event" will confirm even more the trend direction and that's when the trend could very likely accelerate.
8️⃣ You will embrace the Hard Exits philosophy.
The framework won't work as well as expected without them.
It's even the most important "commandment" and it requires to be rigorous and throw away to the bin whatever we might think and feel.
Not exiting a signal when invalidated because you feel differently will not work.
9️⃣ You must know the Risk and Money Management basis.
Each market is unique and cannot possibly be traded the same way.
We're happy to provide a few guidelines for the INDEX market just below.
- Know your macro events with the daily economic calendar.
- Stay consistent with your position sizing
- Stay consistent with your trade management
🔟 You Shall Test and Make your Own Conclusions.
You have a FREE TRIAL period to test because we know that many traders aren't full-time traders and have a family/job/life outside trading.
So take your time to visually backtest the signals, trade with small positions, follow our rules and learn from your own experience.
While we keep saying "do this, do that", we're not dogmatic at all and we welcome any feedback you might have that could benefit the community and we'll likely integrate it if we see a good value in your idea.
You can submit an idea/feedback/comment by contacting me directly.
V. 🧰 Features 🧰
5.1 Supports and Resistances
The indicator displays the main algorithmic supports and resistances according to our trading method for INDEX.
5.2 Choose your favorite risk management algorithm
1/ Pre-defined and recommended mode for this INDEX framework - Algo S/R method using:
- the nearest algorithmic resistances for the take profit levels.
2/ Define your own Stop-loss and Take-profits level in real-time
Stop-Loss Management
For what's following, let's assume that 2 is the stop-loss value you inserted in the indicator, and the Algorithm Builder gives a BUY signal.
This is NOT a recommendation at all, only an example to explain how this feature works.
- %Trailing: The Stop-Loss starts 2% away from the entry price - and will move up (because we're on a BUY trade as per our example) every time your trade will gain 2% profit
- Percentage: The Stop-Loss stays static 2% away from the entry price. There is no trailing here
- TP Trailing: This is a very awesome feature. The stop-loss is set 2% away when the trades start.
When the TP1 is hit, the stop-loss will be moved to the Entry price (also called breakeven).
When the TP2 is hit, the SL is moved to the previous TP1 position
- Fixed: Set the Stop-Loss at a fixed position (value should be in currency/units)
Take Profits Management
You can manage up to 2 take profit levels defined as a percentage or price value.
The expected input is in percentage value (for instance, setting the % target of TP1 to 2% will set the TP1 level 2% away from the entry price
5.3 Built-in Trade Manager
This is very likely the most loved utility script that we shared on TradingView.
It's included in your Algorithm Builder - Single Trend+, and will certainly help you immensely to analyze your charts and your trades.
We made sure that all the graphical elements on the chart will be updated in real-time whenever our user change anything on the indicator configuration.
You'll also be able to change the Trade Manager labels positions as you wish :)
5.4 Built-in Risk-to-Reward Panel
The good stuff doesn't stop here.
You'll notice that this sometimes green (when in a LONG), sometimes red (when in a SHORT) panel at the right of your chart.
It displays for the selected trading algorithmic (see 2.3.2 above), a ton of useful real-time analytics.
- Entry Price: the price when the Algorithm Builder will give a signal.
- The Trade PnL in percentage.
- Entry Stop Loss: Distance (in currency/units) between the selected stop-loss algorithm (percent, trailing, TP trailing, etc.) and the entry price.
- Entry TP1: Distance (in currency/units) between the entry price and the first take profit
- Entry TP2: Distance (in currency/units) between the entry price and the second take profit
- Risk/Reward TP1: Using the Stop-loss distance at entry, and Take Profit 1 at entry to compute the risk-to-reward ratio.
- Risk/Reward TP2: Using the Stop-loss distance at entry, and Take Profit 2 at entry to compute the risk-to-reward ratio.
For more details, please check the guides section of my website. Links are in my signature and profile status.
5.5 Built-in PnL real-time calculations
YES!!!! you read it correctly
The panel displays the risk-to-reward ratios but also the PnL (Profit and Loss in percentage value) of the current and last trade
VI. 🔔 Alerts 🔔
We enabled the alerts on the:
1. Main BUY/SELL entries
3. Exit Signals such as stop-loss, take-profit, hard-exits
VII. 🤖 Compatible with trading bots? 🤖
I'm very aware of all existing solutions out there allowing us to capture the TradingView alerts (Instabot, ProfitView, ...) and forwarding them to the brokers to automatize your trading.
You'll find a more detailed answer on our website.
If you have any doubt or question, please hit me up directly or ask in the comments section of this script.
I'll never claim I have the best trading methodology or the best indicators.
You only will judge and I'll appreciate all the questions and feedback you're sending my way.
They help me a ton to develop indicators based on all the requests I received.
Kind regards,
Dave
Greedy Bastard 2 v3GREAT script for trading any instrument and any Time frame.
this is a the BETA 2 part script, so you should get the other as well.
Greedy Bastard 2 v3GREAT script for trading any instrument and any Timeframe.
this is the BETA 2 part script
Greedy Bastard 1 v3GREAT script for trading any instrument and any Timeframe.
this is the BETA 2 part script
pooya AVG RSIThis is an RSI range for the most popular index in FOREX:
EUR
USD
GBP
JPY
AUD
CAD
CHF
NZD
comment your opinion