ALGOX V20_1_24_ONLY CRYPTOThis script implements an algorithmic trading strategy that focuses on managing trades with a stop-loss (SL) mechanism while removing the take-profit (TP) logic. Here's a detailed description of the updated functionality:
This setup is suitable for strategies where traders aim to capture larger trends without fixed profit targets.The stop-loss ensures that losses are controlled even if trades are left unattended.
Siklus
MoneyGang Advanced Weekly Visualizer (Español)**Title:**
🚀 MoneyGang Advanced Weekly Visualizer 🌟
**Description:**
Transform your charts with the **MoneyGang Advanced Weekly Visualizer**! This feature-packed indicator helps you stay on top of weekly market trends and intraday action like never before:
✨ **Key Features:**
- 📅 **Daily Highlights**: Easily spot trends with customizable day overlays.
- 🕒 **NY Open/Close Markers**: Automatically shows key session times on all timeframes.
This tool is designed for traders who want a clean, professional view of market movements—whether you're a swing trader, day trader, or just leveling up your charting game!
🔧 **Simplify your analysis and trade smarter today!** 🌟
MTF Fractal Bias Confluence DetectorMTF Fractal Bias Confluence Detector
This indicator, the MTF Fractal Bias Confluence Detector, is based on the idea that the market exhibits fractal behaviour. The origin of the idea traces back to 1963, when Benoit Mandelbrot analyzed the fluctuations in cotton prices over a time series starting in 1900, discovering that price changes exhibited scale-invariant patterns. This means that the curve representing daily price changes mirrored the shape of monthly price changes, highlighting the fractal nature of market behaviour. When applied to swing points across multiple timeframes (MTF), this concept suggests that swing points demonstrate similar patterns regardless of the timeframe being analyzed. These self-similar fractal structures provide traders with insights into market reversals and trends, making them a powerful tool for multi-timeframe analysis.
A Swing Point is made up of three main parts: a move away from the last Break level; forming a peak (pivot point) with a Fakeout of the peak (explained through an example later); and a subsequent move away from it. These swing points recur across all timeframes as part of cyclical momentum patterns, meaning each swing point gives rise to a new cycle of market movement. Due to the fractal nature of the market, larger cycles encompass multiple smaller ones.
The theory behind the Fractal Bias Confluence Detector utilizes the idea that the market movements are fractal in nature and illustrates how such swing points can be identified across MTFs. To do so, we examine the Peak Fakeouts within these cycles, as they form. It is not possible to know in advance how long each of these moves will last, but a Swing Point will often occur with a Peak Fakeout. Therefore, the most critical element is to identify the Peak Fakeout.
The snapshot below captures a Peak Fakeout, as discussed earlier.
Similarly, the following snapshot shows various possible breakdowns of Higher Time Frame (HTF) cycles into smaller Lower Time Frame (LTF) movements. The chart contains a white table(not part of the indicator and shown for illustration purposes only).
To further illustrate. Consider the combination of Time Frames (TF) from the 2nd row (from the above snapshot). Cycle TF (1M), Setup TF (1W), Momentum TF (1D) etc.
Price movements in the 1M TF highlight the direction in which HTF traders are pushing the market. Often, when markets have broken out of a level, they tend to form a peak and can then pull back towards the prior breakout level. Once the pullback is beyond the last breakout level, in the opposite direction, we may say the peak formation is created, and directional bias has changed. This is also called Peak Fakeout. Due to the fractal nature of the market, Swing Points on the HTF will often constitute multiple Swing Points on the LTF, though they are not always in sync. However, after such peak formation, there is a high probability that the price might move away from the peak for at least 1 candle (in the cycle TF). This theory illustrates that once a new cycle is in play, we can then look at 1W (Setup TF) to look for possible in-sync movements, at least within that 1 candle of the HTF. Repeating the same for further lower TFs, we may arrive at a confluence of Fractal Bias and see how the movements in LTF are driven by the HTF momentum.
Another example within the chart:
Note: The above examples are just for illustration purposes, and other permutations and combinations of movements across multiple TFs are also possible.
This indicator aims to help users identify such fractal-bias-confluences, so that they can leverage the fractal nature of the market to get a holistic view. To do so, the indicator displays how the market has moved across multiple time frames, with respect to different historical levels.
Features:
1. The bias summary table
The following snapshot depicts the bias summary table at the bottom right of the chart.
1.1. Workings: The table will display, for various TFs, in the first four (starting from "current" to Prev ) rows, one of the following.
"F/H" , " Acronym for the failed break of the previous high",
"F/L" , " Acronym for the failed break of the previous low",
"B/H" , " Acronym for the break of the previous high",
"B/L" , " Acronym for the break of the previous low",
"IN" , " Acronym for an inside candle (never broke high or low of perv candle)",
"OT" , " Acronym for an outside candle (broke both high and low of previous candle and closing price is in between previous high and low)".
Note: these acronyms are customizable according to the user's choice of terminology in any language, as shown in the snapshot below.
1.1.1 In the above snapshot, the 1st row, called "Current", shows how the current candle is evolving with respect to the previous one. The "previous" row shows how the previous candle closed with respect to the pre-previous one. The next two rows represent the bias of the pre-previous and pre-pre-previous in a similar manner. By default, the bias is updated in real-time, even for the already closed historical candles. For example, if the previous 4H candle closed as a B/H and the current price then comes below the pre-previous 4H candle high, then the bias of the previous candle will get updated to F/H. This informs the user that the break above the pre-previous high has failed. However, the user has the option to turn this off. The information in these four rows shows the user how the market is moving currently and how it evolved before reaching the current price levels.
Note: The calculation done by the indicator is to keep track of how the price is moving with respect to the last candle levels in real-time. This means if the price first goes above the previous high and then goes below the previous low, the indicator is equipped to display what happened in the most recent time. The snapshot below shows the option to turn on/off such updates in the bias summary table.
Note: While the bias summary table is turned on, the user also has the option to turn off Prev and Prev rows, as shown in the snapshot below.
1.1.2 The 2nd to last row, called CL/CS(Consecutive Long/Short), shows whether consecutive (2+) breaks of high/low happened or not in one direction without taking out the previous candle's range in the opposite direction. When conditions are met, it will show the number of times the price has been pushed in one direction (in the above manner), followed by "L" for long and "S" for short, for each TF, for example, "4L". It gets updated in real-time for each push in the same direction. Furthermore, a good analogy of "4L" on an HTF is 4 consecutive Break of Structure (BOS) (in the same direction) on LTF, without a Change of Character (CHoCH). Another example would be Stacey Burke's 3 consecutive rises that can be mapped in the indicator, if the conditions are met for "3L" for a given TF.
1.1.3 The last row, FRC/FGC, stands for the first red/green candle. It shows whether the last candle of a TF has closed as green (i.e., close>open) after posting two red candles (i.e., close<open). This helps understand possible short-term retracements in price movements.
1.2 Customizability
1.2.1 We provide a wide range of customizable options, including multiple time frames to choose from for each type of TFs. This is shown in the snapshot below.
1.2.2 All the acronyms on the summary table are customizable and can be user-defined, including text, background color and transparency. This is shown in the snapshot below.
2. High-low lines
2.1 We also show the high and low of various TFs, including the current high and low lines (which are updated in real-time. This can be observed in one of the previous snapshots.
2.2 Previous high, low and close lines can be extended (for Cycles, Setups and Momentum TFs). Their style and thickness are also customizable. This can be observed in one of the previous snapshots.
Note: The user has the option to turn all the lines off. Sub-options include turning off the current line only. Changing the color, thickness, and transparency of the lines. This can be observed in one of the previous snapshots.
3. Last known Break / Failed Break lines.
3.1 We also depict the last known Break and Failed break lines for the user to have all the important levels at their disposal. This can be observed in one of the previous snapshots.
Note: The user has the option to turn this on/off.
4. Magnifier Box
4.1 We have provided the user to look at thirty 1m candles inside a magnifier box while they are in a higher TF chart.
The user has the option to turn this on/off.
5. Moving Averages (MA)
We have also grouped some built-in MA options for the user to utilize along with other elements of the indicator to help them get another layer of confluence.
The user has the option to turn this on/off.
Disclaimer:
The indicator leverages pre-existing theories of market movements. These can be found in decades-old published materials (like books, journals, public lectures accessible over popular video-sharing websites, etc.). As such, we do not claim to have any exclusive rights over the underlying theories. There are many analogous theories and nomenclatures that users can map onto this indicator. Users may also use the indicator in combination with other indicators.
1. Educational Use Only
The "MTF Fractal Bias Confluence Detector" is provided for educational purposes only. It does not constitute an offer, or an obligation, or a guarantee, of profitable trades or loss prevention.
2. No Financial Advice
This tool should not be viewed as financial advice for either trading or investment(s).
3. User Responsibility
Users alone bear all risks associated with any decisions they make using this tool. Past performance does not guarantee future results.
By using the "MTF Fractal Bias Confluence Detector," you acknowledge that you have read, understood and accepted this disclaimer in its entirety.
Rosiz Support 2### **Indicator Name**: Custom RSI, Stochastic, and ADX
### **Description**:
This is a multi-functional indicator that combines three popular technical analysis tools—**RSI (Relative Strength Index)**, **Stochastic Oscillator**, and **ADX (Average Directional Index)**—into a single, customizable pane. This indicator helps traders analyze momentum, overbought/oversold conditions, and trend strength simultaneously, making it a powerful tool for making informed trading decisions.
---
### **Features**:
1. **RSI (Relative Strength Index)**:
- Measures the speed and change of price movements.
- Helps identify overbought (>70) and oversold (<30) conditions.
- Includes customizable length and source options.
- Background shading visually highlights overbought and oversold zones.
2. **Stochastic Oscillator**:
- Determines momentum by comparing a security's closing price to its price range over a specific period.
- Includes %K and %D lines for crossovers, which signal potential entry or exit points.
- Highlights overbought (>80) and oversold (<20) zones with background fill.
3. **ADX (Average Directional Index)**:
- Measures trend strength (higher values indicate stronger trends).
- Includes customizable smoothing and DI (Directional Indicator) length.
---
### **How to Use**:
- **RSI**: Look for overbought or oversold conditions for potential reversal points. Divergences between price and RSI may signal weakening trends.
- **Stochastic Oscillator**: Watch for %K and %D crossovers near overbought or oversold zones to confirm buy or sell signals.
- **ADX**: Use ADX values to assess trend strength:
- **ADX > 25**: Strong trend.
- **ADX < 20**: Weak or ranging market.
---
### **Customization Options**:
- **RSI Settings**: Adjust length, source, and visual parameters.
- **Stochastic Settings**: Modify %K and %D lengths and smoothing factors.
- **ADX Settings**: Fine-tune smoothing and directional index lengths.
---
### **Advantages**:
- Combines three indicators into one, reducing chart clutter.
- Customizable inputs for flexibility in various trading strategies.
- Visual enhancements (background fills and lines) for better readability.
This indicator is perfect for traders looking to combine momentum analysis, overbought/oversold signals, and trend strength in a single tool!
VWAP Breakout and Pullback StrategyThis Pine Script implements the following setups:
Breakout Trades:
A long breakout trade occurs when:
The price is above VWAP.
RSI > 50.
Volume is higher than the average volume (indicating a volume spike).
A short breakout trade occurs when:
The price is below VWAP.
RSI < 50.
Volume is higher than the average volume.
Pullback Entries:
A long pullback trade occurs when:
The price crosses above VWAP.
RSI > 50.
Volume is lower than the average volume (indicating a pullback with low momentum).
A short pullback trade occurs when:
The price crosses below VWAP.
RSI < 50.
Volume is lower than the average volume.
Features:
Signals: Buy and sell signals are plotted on the chart with breakout or pullback labels.
Alerts: Alerts are configured for each type of signal, enabling automation or notifications.
You can copy and paste this code into TradingView's Pine Script editor to test and use it for real-time
369 TPF369 Frequency using futures contracts.its using the 369 frequency lines to find the cycle for a buy or sell entry
Fractal Highs and LowsFractal Highs and Lows Indicator
This indicator identifies fractal highs and fractal lows based on strict price action rules:
Fractal High: A valid fractal high occurs when the high of the middle (second) candle is greater than the highs of both the first and third candles.
Fractal Low: A valid fractal low occurs when the low of the middle (second) candle is lower than the lows of both the first and third candles.
Features:
Tiny Fractal Markers:
Red triangles above valid fractal highs.
Green triangles below valid fractal lows.
Precise Placement: The markers are plotted directly above or below the middle candle (the fractal candle) for clarity and accuracy.
Designed for traders who prefer clean, price-action-based tools without additional noise.
Use Case:
This indicator is perfect for identifying potential turning points in the market, aiding in decision-making for entries, exits, or validation of market structure.
How to Use:
Add the indicator to your chart.
Look for red markers to identify potential resistance (fractal highs) and green markers for potential support (fractal lows).
Combine with other tools or strategies to confirm your trading decisions.
Kurtrillion Bitcoin Pi Cycle Top & Bottom IndicatorThe Pi-Cycle Top and Bottom Indicator is a popular technical analysis tool designed to identify Bitcoin’s major market cycle peaks (tops) and troughs (bottoms). It is called “Pi-Cycle” because one of its moving‐average ratios (350 / 111 ≈ 3.153) happens to be close to the number π (3.14159...). While no indicator can perfectly predict price movements, the Pi-Cycle models have historically shown uncanny timing around Bitcoin’s cyclical highs and lows.
Pi-Cycle Top Indicator
Key Components:
111-Day Moving Average (MA)
350-Day Moving Average (MA) × 2
How It Works:
Plot both the 111-day MA and (350-day MA × 2) on a Bitcoin price chart.
The indicator flashes a potential market cycle top signal when the 111-day MA crosses above the 350-day MA × 2.
Why “Pi”?
The ratio of 350 to 111 is roughly 3.153, close to the mathematical constant π (3.14159).
The original idea was that this near-π ratio appeared to coincide with market peaks in previous cycles.
Historical Performance:
The Pi-Cycle Top Indicator has historically called or come very close to calling several Bitcoin cycle tops:
April 2013 top
December 2013 top
December 2017 top
April 2021 top
It has sometimes signaled a top within a few days of the actual peak, though—as with any model—subsequent market conditions can deviate from historical patterns.
Pi-Cycle Bottom Indicator
Key Components (common version):
471-Day Moving Average (MA)
150-Day Moving Average (MA) (sometimes an EMA) multiplied by a constant factor (e.g., 0.745)
(Note: Variations exist. The constants and exact lengths can differ depending on who implements the model.)
How It Works:
Plot the 471-day MA and another moving average (often the 150-day MA or 150-day EMA) scaled by a specific factor (e.g., 0.745).
A potential bottom signal triggers when the scaled 150-day line crosses below (or above, depending on convention) the 471-day MA.
Historical Performance:
The Pi-Cycle Bottom Indicator has, in some form, identified or come close to several historical bear-market lows.
As with the Top Indicator, the Bottom Indicator is not perfect and can lag or lead actual bottom prices.
Bitmex_Binance_BTC_tam.ersan//@version=6
indicator("Bitmex_Binance_BTC_tam.ersan", overlay=true)
// Binance ve Bitmex fiyatlarını almak
binance_price = request.security("BINANCE:BTCUSDT.P", "1", close)
bitmex_price = request.security("BITMEX:BTCUSDT.P", "1", close)
// Al ve Sat sinyallerini belirlemek
buy_signal = bitmex_price > binance_price + 80
sell_signal = bitmex_price < binance_price - 80
// Grafik üzerine sinyalleri çizmek
plotshape(series=buy_signal, location=location.belowbar, color=color.green, style=shape.labelup, title="Al Sinyali", text="AL")
plotshape(series=sell_signal, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sat Sinyali", text="SAT")
// Sinyal durumlarını tablolara yazmak
var table tbl = table.new(position.top_right, 2, 2, border_color=color.black, frame_color=color.black, frame_width=1)
if (buy_signal)
table.cell(tbl, 0, 0, text="Al Sinyali", bgcolor=color.green)
if (sell_signal)
table.cell(tbl, 0, 1, text="Sat Sinyali", bgcolor=color.red)
// Sinyal durumlarını görüntülemek
plotchar(series=buy_signal, char="B", location=location.belowbar, color=color.green, title="Al Sinyali")
plotchar(series=sell_signal, char="S", location=location.abovebar, color=color.red, title="Sat Sinyali")
MoneyGang Advanced Weekly Visualizer (Español)**MoneyGang Advanced Weekly Visualizer (Español)** 🛠️📊
Take your trading charts to the next level with **MoneyGang Visual+**! This tool is perfect for traders who want to add custom labels, dynamic visuals, and a personalized watermark to their charts.
---
### ✨ **Features:**
✅ **Custom Week Labels**: Add labels for each day of the week. Toggle specific days and control how many weeks are displayed (up to 52!).
✅ **Highlight Days**: Automatically highlight days with unique colors for better chart organization.
✅ **ATR-Based Levels**: Displays dynamic levels based on ATR for quick insights into potential market moves.
✅ **Personalized Watermark**: Includes:
- Current Date 📅
- Asset Symbol + Timeframe (e.g., BTCUSDT | 60 Min) 💹
- A personal touch: *¡Puerto Rico Se Respeta Puñeta!* 🇵🇷
---
### 🌟 **Why Use This Script?**
- **Easy to Customize**: Simple toggles to adjust days, colors, and weeks shown.
- **Visual Impact**: Make your charts clear and visually appealing with dynamic colors and labels.
- **Built for Everyone**: Whether you’re trading Forex, crypto, or indices, this tool helps you stay organized.
- **Boricua Pride**: Inspired by the creator’s roots, blending functionality with style.
---
💼 **MoneyGang Traders, Inc**
Follow on IG: (www.instagram.com)
Puerto Rico Representando 🌴
Get ready to level up your charts with **MoneyGang Advanced Weekly Visualizer**! 📊🔥
Time & Date PanelIt shows the current time, date, and day. You can change font size, font color, and time zone.
[GrandAlgo] Impulse & Balance
The Impulse & Balance indicator identifies and labels three key levels—Impulse, Balance, and Apex—offering traders a structured and dynamic view of market behavior. Starting with the detection of Impulse levels, the indicator calculates corresponding Balance zones and Apex levels to provide actionable insights into price movement, potential reversals, and trend stability.
This indicator adapts seamlessly to all timeframes and market types, giving traders a powerful tool for understanding market dynamics and refining their strategies.
How It Works:
Impulse: Identifies critical price levels where significant market conditions occur. These Impulse levels serve as the foundation for calculating Balance and Apex levels.
Balance: Derived from Impulse levels, Balance zones mark areas of equilibrium where price tends to stabilize. These zones often act as key support or resistance areas.
Apex: The Apex is calculated as a pivotal level where price momentum within the Impulse reaches a peak, highlighting potential reversal or reaction points.
The indicator dynamically updates these levels in real-time as price evolves, ensuring that traders always have the most relevant data on their charts.
Key Features:
Automatically detects Impulse, Balance, and Apex levels for structured market analysis.
Continuously recalculates levels in real-time as price action evolves.
Offers customizable parameters for sensitivity and detection range.
Works seamlessly across all timeframes and market types.
Provides clear visual labels for effortless interpretation.
Use Cases:
Spot potential reversal zones or price reaction points using Apex levels.
Identify key price stabilizations with Balance zones for support and resistance analysis.
Monitor Impulse levels for insights into significant market conditions and momentum.
Suitable for various instruments, including Forex, crypto, stocks, and indices.
SY - Market Energy In this script:
- We track buying pressure (when the price closes higher with volume) and selling pressure (when the price closes lower with volume).
- We then calculate a momentum for each over the analysis period and plot them on the chart.
- Background colors indicate the prevailing momentum: green for buying and red for selling.
TKT v1This is a market session indicator. Please Private Message me for fixed time frames for optimal entries. We like to do things a tad differently.
Cruzamento de Médias Móveis Exponenciais com Coloraçãoindicador apenas para analise de tendencias de mercado
Month Separator
Month Separator Indicator
This Pine Script indicator separates each month on the chart by visually marking the change between months.
Features:
The indicator detects when the month changes.
It highlights the background with a semi-transparent blue color to differentiate the months.
A small red triangle is plotted at the top of the chart at the beginning of each new month, providing a clear visual cue.
Customization:
You can easily adjust the colors or styles in the script by modifying the bgcolor and plotshape functions.
The indicator works on all timeframes, but it is especially useful on higher timeframes (like daily or weekly charts) to track monthly transitions.
This script is ideal for traders who want a clear visual representation of month boundaries to analyze trends and key levels more effectively.
Fear and Greed Trading Strategy By EquityPath (Dev Hunainmq)Description:
🚀 **Fear and Greed Trading Strategy for TradingView** 🚀
Take your trading to the next level with this innovative and automated **Fear and Greed Index-based strategy**. 🎯 This strategy leverages the powerful **emotional drivers of the market**—fear and greed—to help you make smarter, data-driven trading decisions. Designed for traders of all experience levels, this tool provides seamless buy and sell signals to capitalize on market sentiment.
🔴 **Fear Zone:** Automatically triggers a sell when the market sentiment shifts toward extreme fear, signaling potential downturns.
🟢 **Greed Zone:** Automatically triggers a buy when the market sentiment trends toward extreme greed, signaling potential growth opportunities.
---
### **Features:**
✅ **Dynamic Buy and Sell Signals:** Executes trades automatically based on sentiment thresholds.
✅ **Position Management:** Trades a fixed quantity (e.g., 100 shares) for simplicity and risk control.
✅ **Threshold Customization:** Adjust fear and greed levels (default: 25 for fear, 75 for greed) to suit your trading style.
✅ **Visual Cues:** Clear labels and visual plots of the Fear and Greed Index on the chart for easy interpretation.
✅ **Fully Automated Execution:** Hands-free trading when connected to a supported broker in TradingView.
---
### **Who Is This Strategy For?**
📈 Crypto Traders
📈 Stock Traders
📈 Forex Traders
📈 Anyone looking to incorporate **market psychology** into their trading!
With sleek design and powerful automation, this strategy ensures you stay ahead of the market by aligning your trades with the ebb and flow of investor sentiment. Whether you're a beginner or an experienced trader, this strategy simplifies the process and enhances your edge. 💡
---
### Hashtags:
#TradingStrategy #FearAndGreedIndex #MarketSentiment #TradingAutomation #AlgorithmicTrading #CryptoTrading #StockMarket #ForexTrading #TechnicalAnalysis #SmartTrading #TradingTools #EmotionalTrading #GreedZone #FearZone #TradingSuccess #PineScript
Fear and Greed Trading Strategy by EquithPath (Dev Hunainmq)Description:
🚀 **Fear and Greed Trading Strategy for TradingView** 🚀
Take your trading to the next level with this innovative and automated **Fear and Greed Index-based strategy**. 🎯 This strategy leverages the powerful **emotional drivers of the market**—fear and greed—to help you make smarter, data-driven trading decisions. Designed for traders of all experience levels, this tool provides seamless buy and sell signals to capitalize on market sentiment.
🔴 **Fear Zone:** Automatically triggers a sell when the market sentiment shifts toward extreme fear, signaling potential downturns.
🟢 **Greed Zone:** Automatically triggers a buy when the market sentiment trends toward extreme greed, signaling potential growth opportunities.
---
### **Features:**
✅ **Dynamic Buy and Sell Signals:** Executes trades automatically based on sentiment thresholds.
✅ **Position Management:** Trades a fixed quantity (e.g., 100 shares) for simplicity and risk control.
✅ **Threshold Customization:** Adjust fear and greed levels (default: 25 for fear, 75 for greed) to suit your trading style.
✅ **Visual Cues:** Clear labels and visual plots of the Fear and Greed Index on the chart for easy interpretation.
✅ **Fully Automated Execution:** Hands-free trading when connected to a supported broker in TradingView.
---
### **Who Is This Strategy For?**
📈 Crypto Traders
📈 Stock Traders
📈 Forex Traders
📈 Anyone looking to incorporate **market psychology** into their trading!
With sleek design and powerful automation, this strategy ensures you stay ahead of the market by aligning your trades with the ebb and flow of investor sentiment. Whether you're a beginner or an experienced trader, this strategy simplifies the process and enhances your edge. 💡
---
### Hashtags:
#TradingStrategy #FearAndGreedIndex #MarketSentiment #TradingAutomation #AlgorithmicTrading #CryptoTrading #StockMarket #ForexTrading #TechnicalAnalysis #SmartTrading #TradingTools #EmotionalTrading #GreedZone #FearZone #TradingSuccess #PineScript
BTC ETF Inflows and Outflows with Combined BTC CorrelationThis script tracks Bitcoin Spot ETF inflows and outflows, calculating their correlation with Bitcoin's price to identify market trends and sentiment. It provides visual insights into ETF flows and the relationship with BTC price movements.
NOTE: The script relies on volume and opens / closes for calculating inflows and outflows. An ETF might issue more shares, which would skew the numbers.
My Strategy//@version=5
indicator("My Strategy", overlay=true)
length1 = input.int(60, minval=1)
length2 = input.int(30, minval=1)
ema1 = ta.ema(close, length1)
ema2 = ta.ema(close, length2)
crossover = ta.crossover(ema2, ema1)
plotshape(crossover ? close : na, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small)