pinstraticoestrategia de compra y venta
................
.............
..........
........
.....
...
..
Padrões gráficos
Strategy EngulfingThis script implements a trading strategy that identifies "engulfing" candlestick patterns and uses the Supertrend indicator to enter and exit trades.
VWMA with Buy/Sell Signalshe VWMA (Volume Weighted Moving Average) is a technical indicator that averages prices over a specified period while giving more weight to periods with higher trading volumes. This makes the VWMA more sensitive to price movements during high-volume trading compared to a simple moving average (SMA).
Adding Buy/Sell Signals to a VWMA-based script involves identifying trends or crossover points that indicate potential entry (Buy) or exit (Sell) opportunities.
Core Features of the Script:
VWMA Calculation:
Uses the typical price ((High + Low + Close) / 3) or closing price for computation.
Weighting is based on the volume traded in each period.
Multi-Stock Cross SignalsBased on the high probability of future trading, use premium and discount to increase accuracy.
candle close alarmA simple Alarm to each candle close, helpfull to keep your eye in the right moment to open a position.
APE1 - Smart Money Concepts and EMAs This indicator is based on the SMC of Lux ALGO but I have added the exponential emas 9, 20, 50, 100 and 200, you can configure it as you like, including labels, prices and discount zones, balance and premium. IT WORKS IN ALL TIMEFRAMES.
Blue & White 4 MA 3 SMA w/Buy & Sell at crossover IndicatorKeeping this simple. I have used this on the 1HR and 4HR, however lower time frames could be good. The indicator works on the premise of a fast 4MA crossing over a 3 SMA putting out buy and sell signals at those crossovers. I have a 15 and 50 ma to use as direction cutter lines. Wherein "buys" ONLY qualify when above said 15 and/or 50 ma, and "Sells" ONLY qualify when signal is below 15 and/or 50 ma. The buy and sell price is indicated by the "Dotted" Line whereas the flag is there merely to indicate the line itself. As usual and with anything and everything consolidation is a killer...
Ebuka Moving Average Crossover Strategy with Volume FilterThe provided Pine Script defines a trading strategy that can generate buy and sell signals on TradingView charts. If you'd like to automate the strategy to trade on Binance while you sleep, follow these steps:
SQZMOM_LB StrategyUtiliza el indicador sqzmom, abriendo operaciones cuando el indicador cambia al color 3 y cerrandolas cuando cambia al color 1
Institutional Momentum IndicatorThe Institutional Momentum Indicator is a simple yet powerful tool designed for traders seeking clarity and precision in their trading decisions. This indicator combines key technical analysis elements to deliver actionable buy and sell signals:
Buy and Sell Signals: Clearly marked on the chart when the price crosses above or below the Exponential Moving Average (EMA), signaling potential upward or downward momentum.
Volume Spike Detection: Enhances reliability by considering high-volume activity, often indicative of institutional participation.
EMA Trend Analysis: Tracks price momentum with a customizable EMA length.
Visual Highlights: Background colors (green for buy and red for sell) make it easy to identify trading opportunities at a glance.
Alerts Ready: Stay informed with built-in alerts for both buy and sell signals.
This indicator is optimized for traders looking to capitalize on momentum-based strategies while simplifying decision-making. Perfect for intraday and swing trading across various markets.
[COG] Advanced School Run StrategyAdvanced School Run Strategy (ASRS) – Explanation
Overview: The Advanced School Run Strategy (ASRS) is an intraday trading approach designed to identify breakout opportunities based on specific time and price patterns. This script applies the concepts of the Advanced School Run Strategy as outlined in Tom Hougaard's research, adapted to work seamlessly on TradingView charts. It leverages 5-minute candlestick data to set actionable breakout levels and provides traders with visual cues and alerts to make informed decisions.
Features:
Dynamic Breakout Levels: Automatically calculates high and low levels based on the market's behavior during the initial trading minutes.
Custom Visualization: Highlights breakout zones with customizable colors and transparency, providing clear visual feedback for bullish and bearish breakouts.
Configurable Alerts: Includes alert conditions for both bullish and bearish breakouts, ensuring traders never miss a trading opportunity.
Reset Logic: Resets breakout levels daily at the market open to ensure accurate signal generation for each session.
How It Works:
The script identifies key levels (high and low) after a configurable number of minutes from the market open (default: 25 minutes).
If the price breaks above the high level or below the low level, a corresponding breakout is detected.
The script draws breakout zones on the chart and triggers alerts based on the breakout direction.
All levels and signals reset at the start of each new trading session, maintaining relevance to current market conditions.
Customization Options:
Line and box colors for bullish and bearish breakouts.
Transparency levels for breakout visualizations.
Alert settings to receive notifications for detected breakouts.
Acknowledgment: This script is inspired by Tom Hougaard's Advanced School Run Strategy. The methodology has been translated into Pine Script for TradingView users, adhering to TradingView’s policies and community guidelines. This script does not redistribute proprietary content from the original research but implements the principles for educational and analytical purposes.
Buy Signal with FVG Confirmation (1h,15m,5m)Key Changes:
FVG Conditions Added to buySignal:
The buy signal now requires FVGs on all three timeframes (1h, 15m, 5m) in addition to your original criteria.
buySignal = ... and fvg1h and fvg15m and fvg5m
Simplified FVG Detection:
The detectFVG function now only returns the fvgBullish boolean (no need to return price levels).
How to Use:
Apply to 1-Hour Chart:
The script works best on a 1-hour chart since it combines daily, hourly, and lower timeframe (15m/5m) logic.
Interpret Signals:
A green triangle appears below the price bar when all conditions align, including FVGs on 1h, 15m, and 5m.
Use the shaded FVG zones (teal, orange, purple) to visually confirm gaps.
Set Alerts:
Create an alert in TradingView to notify you when the buySignal triggers.
Important Notes:
Multi-Timeframe Limitations:
Lower timeframe FVGs (15m/5m) are fetched using request.security, which may cause slight repainting on the 1-hour chart.
FVGs are evaluated based on the most recent completed bar in their respective timeframes.
Strategy Strictness:
Requiring FVGs on three timeframes makes the signal very selective. Adjust the logic (e.g., fvg1h or fvg15m) if you prefer fewer restrictions
9/21 EMA_DSWThe 9 and 21 EMA strategy involves using the 9-day and 21-day exponential moving averages to identify potential buy and sell signals. A buy signal is generated when the 9 EMA crosses above the 21 EMA, and a sell signal is generated when the 9 EMA crosses below the 21 EMA.
Simple Swing Trader by CryptoMitchX How to Use the Simple Swing Trader by CryptoMitchX
How to Use:
The Simple Swing Trader indicator combines multiple tools to help you identify potential trading opportunities:
Moving Averages (MA 50 & MA 100): These are plotted as yellow and purple lines on the chart. Use these to determine trend direction and crossovers for potential trend changes.
Heiken Ashi Bars: Displayed with volume-based coloring for smoother visualization of trends. Look for changes in bar colors to identify potential shifts in momentum.
SuperTrend Buy/Sell Signals: Labels are placed on the chart to indicate "BUY" or "SELL" opportunities based on the SuperTrend calculation. Green labels signify potential buy zones, and red labels signify potential sell zones.
Volume Histogram: Shown in a separate pane, this provides an adjustable view of market activity. Use the "Volume Histogram Base Multiplier" input to customize its display.
Customization: All elements are editable for your trading preferences. Adjust colors, timeframes, and parameters as needed.
Features:
Multi-Tool Integration:
Combines trend-following, momentum-based, and volume-focused tools in one indicator.
SuperTrend Signals: Generates clear "BUY" and "SELL" labels to assist decision-making.
Heiken Ashi Visualization: Reduces noise and smoothens price data for better clarity.
Customizable Settings: Fully adjustable parameters to suit different trading styles and assets.
Volume Insights: An adaptable histogram that reflects market participation and activity.
Suggested Modifications
Alert Integration: Add alert conditions for BUY and SELL signals to receive real-time notifications.
Dynamic Color Customization: Enable dynamic coloring based on additional indicators, like RSI or MACD.
Optimization for Specific Assets: Fine-tune ATR and factor settings to align with the behavior of specific markets (e.g., crypto, forex, stocks).
Additional Indicators: Consider incorporating a momentum oscillator to enhance confirmation of trade setups.
This indicator is designed to work on any timeframe and asset. Experiment with different settings to optimize it for your trading strategy.
The Code
//@version=6
indicator("Simple Swing Trader by CryptoMitchX", overlay=true)
// Define moving averages
length50 = 50
length100 = 100
ma50 = ta.sma(close, length50)
ma100 = ta.sma(close, length100)
// Plot moving averages with specified colors and thickness
plot(ma50, title="MA 50", color=color.new(color.yellow, 0), linewidth=2)
plot(ma100, title="MA 100", color=color.new(color.purple, 0), linewidth=8)
// Moving Average Crosses
var float last_ma50 = na
var float last_ma100 = na
if (not na(ma50) and not na(ma100))
last_ma50 := ma50
last_ma100 := ma100
// Heiken Ashi style bars with volume-based coloring
ha_open = request.security(syminfo.tickerid, timeframe.period, math.avg(close , open ))
ha_close = math.avg(close, open, high, low)
ha_high = math.max(high, ha_open, ha_close)
ha_low = math.min(low, ha_open, ha_close)
var float last_volume = na
current_volume = volume
// Using plot for bar color indication without specifying color
plot(ha_close, title="HA Close", color=color.new(color.blue, 0), display=display.all, editable=true)
last_volume := current_volume
// Super Trend calculations for labels (but not plotting the line)
atrPeriod = 10
factor = 3.0
src = close
atr = ta.atr(atrPeriod)
upperband = src - (factor * atr)
lowerband = src + (factor * atr)
supertrend = na(upperband) ? na : upperband
supertrend := close > nz(supertrend ) ? math.max(upperband, nz(supertrend )) : math.min(lowerband, nz(supertrend ))
// Buy/Sell signals for SuperTrend with color (labels without plotting the line)
if (supertrend < nz(supertrend ))
label.new(bar_index, low, "BUY", color=color.new(color.green, 0), textcolor=color.new(color.black, 0), size=size.small)
if (supertrend > nz(supertrend ))
label.new(bar_index, high, "SELL", color=color.new(color.red, 0), textcolor=color.new(color.black, 0), size=size.small)
// Define histbase as an input
histbase_value = input.float(0.1, title="Volume Histogram Base Multiplier", minval=0.01, maxval=1, step=0.01)
// Display volume in a separate pane with modifications
plot(volume * histbase_value, title="Volume", color=color.new(color.white, 0), style=plot.style_histogram, linewidth=3, histbase=0, display=display.all)
Pivot Powerup indy for tradingviewThis script calculates and plots Pivot Points (P, R1, R2, R3, S1, S2, S3) on the price chart. Pivot Points are key levels used in technical analysis to identify potential support and resistance areas.
Features :
- Calculates daily Pivot Points using the standard formula.
- Plots Pivot Point (P), Resistance levels (R1, R2, R3), and Support levels (S1, S2, S3).
- Overlays the levels on the price chart for easy visualization.
- No user-configurable parameters in this version.
- This indicator is based on the previous day's data. It may not be accurate in highly volatile markets.
- Always use Pivot Points in conjunction with other technical analysis tools for better accuracy.
- To customize the indicator, modify the formula in the `calculate_pivot_points` function.
- You can also change the colors or line widths of the plotted levels by editing the `plot()` functions.
Created by chakrint. Feel free to use and modify this script.
Price Action + Support/Resistance with LabelsEntry Conditions:
Long Entry (BUY): Based on the bullish engulfing pattern and price being above the resistance level.
Short Entry (SELL): For demonstration, the short entry condition is set as price being below the support level and a bullish candle in the previous bar. You can modify this logic for your own use case.
Stop Loss and Take Profit:
Stoploss is plotted at the calculated stop loss level.
Target is plotted at the calculated take profit level.
Labels:
For long trades, labels are added with "BUY", "STOPLOSS", and "TARGET".
For short trades (if enabled), labels are added with "SELL", "STOPLOSS", and "TARGET".
Labels are placed using label.new at specific locations on the chart (above or below bars).
Alert Conditions:
Alerts are created for both long and short entry signals so you can get notified when the entry conditions are met.
How it works:
BUY label will appear below the bar when a long entry condition is met.
SELL label will appear above the bar when a short entry condition is met.
STOPLOSS and TARGET labels will appear at their respective levels when an entry signal is triggered.
The labels will appear on the chart to give you a clear visual cue of the entry, stop loss, and take profit levels.
How to Use:
Copy the script into your Pine Editor on TradingView and apply it to your chart.
Observe the labels that show up on the chart:
"BUY" will appear below the bar when long conditions are met.
"SELL" will appear above the bar when short conditions are met (if using short logic).
"STOPLOSS" will be plotted at the stop loss level.
"TARGET" will be plotted at the take profit level.
Optional Customization:
You can modify the short entry condition based on your preferred method.
You can adjust the length for the support/resistance calculation, the stopLossRR, and other parameters to fine-tune the strategy for Nifty 50 or any other asset.
Let me know if you have any further questions or need additional modifications!
Pivot Powerup (Indy)Pivot powerup(indy) Indicator for TradingView
This script calculates and plots daily Pivot Points (P, R1, R2, R3, S1, S2, S3) on the price chart. Pivot Points are key levels used in technical analysis to identify potential support and resistance areas.
Key Features
Calculates daily Pivot Points using the standard formula.
Plots Pivot Point (P), Resistance levels (R1, R2, R3), and Support levels (S1, S2, S3).
Overlays the levels on the price chart for easy visualization.
How to Use
Copy and paste the script into the Pine Script editor on TradingView.
Add the indicator to your chart.
The Pivot Points will be automatically calculated and plotted based on the previous day's high, low, and close prices.
Cautions
This indicator is based on the previous day's data. It may not be accurate in highly volatile markets.
Always use Pivot Points in conjunction with other technical analysis tools for better accuracy.
Customization
To customize the indicator, modify the formula in the calculate_pivot_points function.
You can also change the colors or line widths of the plotted levels by editing the plot() functions.
Credits
Created by Zhongli2566. Feel free to use and modify this script.