NuEdge EMA Retest StrategyThis strategy is designed for the 2-minute chart and performs best on highly liquid ETFs like SPY, QQQ, and IWM.
It combines:
PDH/PDL breaks (Previous Day High/Low)
13/48/200 EMA trend filtering
Pullback-to-EMA entries
R:R projections and dynamic visual coaching
Time-based filters (default: 9:30 AM to 4:00 PM EST)
Optional day filters (e.g., exclude Mondays or Fridays)
⚠️ Built for momentum conditions — not ideal during chop, premarket, or low-volume sessions.
📈 Optimized for SPY, QQQ, IWM, and also performs well on:
TSLA
AAPL
AMD
META
(All using 2-minute timeframe)
Toggles available for:
Entry/TP markers
R:R visualization
Session restrictions
Options
The Devils HandA Deep Dive into the Tools of Optimized Strategy
- Indicator Mashup: The Analytical Foundation
- Function: This tool integrates a selection of classic technical indicators—moving averages, MACD, and Bollinger Bands—into a unified display. Each indicator contributes its unique perspective on price trends, momentum, and volatility, presented visually on the chart.
- Why It’s a Good Trading Tool: The synergy of these indicators allows traders to cross-reference signals, reducing the likelihood of false positives and providing a more robust framework for identifying market conditions. Moving averages smooth out price noise to reveal trends, MACD highlights momentum shifts, and Bollinger Bands offer insights into volatility and potential reversals—together, they create a multi-dimensional view of market behavior.
- Possible Uses: Employ this tool to scan for periods of trend alignment across different timeframes, use it to pinpoint potential overbought or oversold conditions, or leverage it to refine your timing for entering or exiting positions based on volatility cues.
- Volume Profile: Mapping Market Activity
- Function: This feature constructs a visual representation of volume distribution across price levels over a defined lookback period, highlighting areas of significant trading activity known as high-volume nodes.
- Why It’s a Good Trading Tool: Volume profile serves as a window into market psychology, revealing where the majority of trades have occurred. These nodes often act as magnets for price, indicating strong support or resistance zones, which can be critical for anticipating price reactions and understanding market structure.
- Possible Uses: Utilize this to identify key levels for setting stop-losses or take-profits, observe how price interacts with these nodes during breakouts for confirmation, or use it to assess the strength of a trend by noting volume concentration.
- Option Analysis: Unlocking Derivative Insights
- Function: Designed for option symbols, this tool provides visual cues about whether an option is in-the-money (ITM) or out-of-the-money (OTM) based on the underlying asset’s price, alongside the price of the opposite option type (calls or puts) at the same strike.
- Why It’s a Good Trading Tool: Options data offers a unique angle on market sentiment and pricing expectations, which can complement equity or futures analysis. The ITM/OTM visuals help gauge the option’s intrinsic value, while the opposite option price can hint at counterbalancing market views, enriching your market perspective.
- Possible Uses: Apply this to monitor sentiment shifts in option-heavy markets, use the ITM/OTM data to assess potential price targets for the underlying asset, or compare opposite option prices to explore arbitrage or hedging opportunities.
- Risk Management: Tailoring Your Approach
- Function: This set of controls allows customization of trading behavior, including options to scale into positions (pyramiding), exit portions of a position (partial exits), and set protective stop-loss levels based on percentage thresholds.
- Why It’s a Good Trading Tool: Effective risk management is the cornerstone of sustainable trading. Pyramiding enables capitalizing on strong trends, partial exits provide flexibility to lock in profits, and stop-losses protect against adverse moves—together, they empower traders to adapt to varying market conditions while preserving capital.
- Possible Uses: Experiment with pyramiding during trending markets to maximize gains, use partial exits to secure profits in volatile sessions, or adjust stop-loss levels to align with your risk tolerance across different instruments.
- Visual Arsenal: Enhancing Decision-Making
- Function: This suite includes trend lines that adapt to market movement, dotted support and resistance levels derived from price pivots, and a comprehensive stats table displaying real-time metrics such as realized gains, volume categories, and VIX status.
- Why It’s a Good Trading Tool: Visual tools transform abstract data into intuitive insights. Trend lines offer a dynamic view of market direction, support/resistance levels provide structural context, and the stats table consolidates critical information into a single glance—streamlining analysis and reducing cognitive overload.
- Possible Uses: Track trend line breaks to anticipate reversals, use support/resistance levels to plan entry/exit zones, or monitor the stats table to gauge market health and adjust your strategy in real time.
- Chart Plots: Customization at Your Fingertips
- Function: This feature allows toggling of various visual elements, including candle drawing, moving averages, trend displays, support/resistance lines, setup labels, and bullish/bearish bands, giving you control over the chart’s appearance.
- Why It’s a Good Trading Tool: Customizability enhances focus by letting you emphasize the tools most relevant to your style. Candle drawing aids in price action analysis, moving averages clarify trends, and bands highlight confirmation zones—creating a personalized trading environment.
- Possible Uses: Disable non-essential plots during fast-paced trading to reduce clutter, enable setup labels to mark potential opportunities, or use bands to confirm signals across different market phases.
- Color Settings: Aesthetic and Functional Harmony
- Function: Offers adjustable colors for high-volume nodes, bullish/bearish bands, candles, support/resistance lines, and trend fills, allowing you to tailor the visual experience.
- Why It’s a Good Trading Tool: Color coding improves readability and emotional engagement with the chart. Distinct colors for bullish and bearish elements help quickly differentiate market states, while customizable hues align the tool with your preferences or screen setup.
- Possible Uses: Adjust colors to match your monitor’s lighting for better visibility, use contrasting shades to highlight key levels during live trading, or create a color scheme that enhances your psychological comfort.
- Practical Applications Across Trading Styles
- This suite of tools caters to a spectrum of trading approaches. Day traders can leverage the real-time stats and volume profile for quick decisions, swing traders can use trend lines and support/resistance for longer holds, and option traders can deepen their analysis with the option tools. The flexibility to toggle features and adjust settings makes it adaptable to scalping, momentum trading, or even positional strategies, inviting experimentation across market conditions and asset types.
Nifty Swing MomentumThis Nifty-based trading strategy—also effective on Bank Nifty—operates with a 40% hit ratio, which is intentionally low because the system does not book profits automatically. Instead, it only switches between buy/sell signals, which can result in small whipsaw losses during consolidating markets. However, the strategy maintains a strong risk-reward ratio of 2.5:1 and a Sortino ratio of ~1.5, allowing profitable trades to significantly outweigh the small losses. Users are expected to manage exits based on their own discretion, making it ideal for traders comfortable with signal-based entries and flexible profit-taking.
Inputs Required - SL points, which is 150 Points for Nifty, to give market noise some time, should be changed accordingly when using with BankNifty...
Green Line, acts as Support/Resistance after the trade is open from any side.
Apply it on 1min Chart only...
Use with ITM/ATM options for minimal transaction cost and charges...
BB 20-2 + RSI-10 + Stoch 14-3-3 | 5-minOn the 1-minute chart, using the indicators Stochastic %K/%D, RSI-10 and Bollinger Bands (20-period MA ± 2 σ):
Buy setup:
When RSI-10 is below 29, Stochastic %K/%D is below 19, and at least one candle touches the lower Bollinger band, open a long trade.
Sell setup:
When RSI-10 is above 72, Stochastic %K/%D is above 81, and at least one candle touches the upper Bollinger band, open a short trade.
Break & RetestBreak & Retest
Based on the “Break & Retest” strategy from Jdub Trades (www.youtube.com).
Features:
- Opening Range Box: marks the high/low of the first N minutes of the regular session and plots a red “risk” zone around it.
- Break & Retest Logic: waits for price to break above or below that range, then only enters when the bar re‑tests the breakout level.
- Automated Stops & Profit Targets: stops placed at the far side of the opening range; profit targets shown as green boxes at full or partial multiples of your risk distance.
- 1% Risk Sizing: automatically calculates position size so each trade risks a fixed percentage of equity.
- Partial Profit Option: optionally take 50% off at a first target, with the remainder left to ride to full reward.
- End‑of‑Day Cleanup: any open positions are automatically closed at session end to avoid overnight exposure.
- Customizable Inputs: opening‑range length, trade window after open, maximum trades per day, reward‑to‑risk ratio, enable/disable partial profit, require pullback into range before entry.
Usage Limitations & Best Practices:
- Establish a Clear Trend Bias
• Form a directional assumption on a higher timeframe—ideally the daily chart, or at minimum the 30‑minute chart—using moving averages, trendlines or other indicators.
- Trade with the Trend
• Only take long signals when the higher‑timeframe trend is up; only take shorts when it is down.
- Confirm with Supporting Indicators
• Seek confluence from momentum or volume indicators on the daily/30‑minute timeframe before acting on intraday break & retest setups.
Without that multi‑timeframe confirmation, false breakouts become more likely and performance may suffer. Always align your intraday entries with the “big picture” trend.
Momentum PulseMomentum Pulse Strategy for NIFTY & SENSEX CE/PE Options
This strategy is designed specifically for NIFTY and SENSEX Call (CE) and Put (PE) options. It generates long entry signals and long exits based on momentum filters, making it ideal for options with an opening price between 150-200.
Key Features:
Focus on CE and PE: The strategy should be applied on both CE and PE options of the same index.
Capital Allocation : Use 30% of your capital for CE and 30% for PE positions , ensuring balanced risk distribution.
Entry & Exit : The strategy signals only long entries and long exits based on momentum.
Stop-Loss : A 15% stop-loss is recommended to protect against excessive drawdown.
Note : This strategy is tailored for intraday trading, and it works best when used with disciplined risk management practices.
ATM Option Selling StrategyATM Option Selling Strategy – Explained
This strategy is designed for intraday option selling based on the 9/15 EMA crossover, 50/80 MA trend filter, and RSI 50 level. It ensures that all trades are exited before market close (3:24 PM IST).
. Indicators Used:
9 EMA & 15 EMA → For short-term trend identification.
50 MA & 80 MA → To determine the overall trend.
RSI (14) → To confirm momentum (above or below 50 level).
2. Entry Conditions:
🔴 Sell ATM Call (CE) when:
Price is below 50 & 80 MA (Bearish trend).
9 EMA crosses below 15 EMA (Short-term trend turns bearish).
RSI is below 50 (Momentum confirms weakness).
🟢 Sell ATM Put (PE) when:
Price is above 50 & 80 MA (Bullish trend).
9 EMA crosses above 15 EMA (Short-term trend turns bullish).
RSI is above 50 (Momentum confirms strength).
3. Position Sizing & Risk Management:
Sell 375 quantity per trade (Lot size).
50-Point Stop Loss → If option premium moves against us by 50 points, exit.
50-Point Take Profit → If option premium moves in our favor by 50 points, book profit.
Exit all trades at 3:24 PM IST → No overnight positions.
4. Exit Conditions:
✅ Stop Loss or Take Profit Hits → Automatically exits based on a 50-point move.
✅ Time-Based Exit at 3:24 PM → Ensures no open positions at market close.
Why This Works?
✔ Trend Confirmation → 50/80 MA ensures we only sell options in the direction of the market trend.
✔ Momentum Confirmation → RSI prevents entering weak trades.
✔ Controlled Risk → SL and TP protect against large losses.
✔ No Overnight Risk → All trades close before market close.
Trend Vanguard StrategyHow to Use:
Trend Vanguard Strategy is a multi-feature Pine Script strategy designed to identify market pivots, draw dynamic support/resistance, and generate trade signals via ZigZag breakouts. Here’s how it works and how to use it:
ZigZag Detection & Pivot Points
The script locates significant swing highs and lows using configurable Depth, Deviation, and Backstep values.
It then connects these pivots with lines (ZigZag) to highlight directional changes and prints labels (“Buy,” “Sell,” etc.) at key turning points.
Support & Resistance Trendlines
Pivot highs and lows are used to draw dashed S/R lines in real-time.
When price crosses these lines, the script triggers a breakout signal (long or short).
EMA Overlays
Up to four EMAs (with customizable lengths and colors) can be overlaid on the chart for added trend confirmation.
Enable/disable each EMA independently via the settings.
Repaint Option
Turning on “Smooth Indicator Lines” (repaint) uses future data to refine past pivots.
This can make historical signals look cleaner but does not reflect true historical conditions.
Turning it off ensures signals remain fixed once they appear.
Strategy Entries & Exits
On each new ZigZag “Buy” or “Sell” signal, the script closes any open position and flips to the opposite side (if desired).
Works with the built-in TradingView Strategy engine for backtesting.
Additional Inputs (Placeholders)
Volume Filter and RSI Filter settings exist but are not fully implemented in the current code. Future versions may incorporate these filters more directly.
How to Use
Add to Chart: Click “Indicators” → “Invite-Only Scripts” (or “My Scripts”) and select “Trend Vanguard Strategy.”
Configure Settings:
Adjust ZigZag Depth, Deviation, and Backstep to fine-tune pivot sensitivity.
Enable or disable each EMA to see how it aligns with market trends.
Toggle “Smooth Indicator Lines” on or off depending on whether you want repainting.
Backtest and Forward Test:
Use TradingView’s “Strategy Tester” tab to review hypothetical performance.
Remember that repainting can alter past signals if enabled.
Monitor Live:
Watch for breakout triangles or ZigZag labels to identify potential reversal or breakout trades in real time.
Disclaimer: This script is purely educational and not financial advice. Always combine it with sound risk management and thorough analysis. Enjoy exploring the script, and feel free to experiment with the different settings to match your trading style!
Smart DCA Invest LiteEnglish description:
📊 Smart DCA Invest – Features Overview
✅ Automated DCA strategy with dynamic profit targets, optimized risk management.
⚙️ Functionality:
🕒 Time Interval Settings
• 📅 Start Date and Time: The strategy activates only after the specified start time.
• 🔄 Auto Restart: Automatically restarts the strategy after a position is closed.
💵 Investment Amounts
• 🟢 Initial Investment Amount: The amount invested when the first position is opened.
• 🔄 Recurring Investment Amount: The amount invested periodically for subsequent purchases.
📊 Purchase Frequency
• ⏱ Interval Between Purchases: Specifies the minimum number of candles between two purchases to avoid overly frequent position expansions.
🛡️ Risk Management
• 📉 Loss Limit: The strategy halts additional purchases if the price does not drop below a predefined loss level, optimizing the average cost reduction.
• 🎯 Take Profit: A predefined profit target percentage, triggering position closure upon reaching it.
📈 Dynamic Take Profit (TP) Settings
• ⏳ TP Increase Frequency: The interval in days for dynamic TP growth.
• 📊 TP Growth Rate: The percentage by which the TP level increases at the end of each interval.
• ⚙️ Enable Dynamic TP: Allows the TP level to increase dynamically over time based on holding duration.
• 🧠 Smart Invest: Accumulates skipped purchases above the average entry or loss limit price and invests them when the price drops below the loss limit.
🎨 Visual Representation
• 📏 Average Price Line: Displays the average entry price in yellow.
• 🛑 Stop Limit Line: Displays the loss limit in red.
• ✅ Take Profit Line: Displays the dynamically updated profit target in green.
🎨 Visual Elements
• 📏 Average Price Line: Visualizes the average cost on the chart.
• 🛑 Stop Limit Line: Visualizes the loss limit level.
• ✅ Take Profit Line: Displays the TP level graphically.
• 📊 Statistics Table: Detailed data summary presented in a table at the end of the strategy.
📊 Statistics Table
• 📈 Average Price: The average entry price of the current position.
• 🛑 Stop Limit: The loss limit value.
• ✅ Take Profit: The profit target value.
• 📦 Position Size: The size of the current position.
• 💵 Max Invested Amount: The highest amount invested.
• ⏳ Longest DCA Period: The longest duration a DCA position was open.
• 💼 Current Investment: The amount currently invested.
• 🔄 Multiplier: Purchase multiplier value.
• 📊 Dynamically Adjusted TP %: The current dynamic Take Profit percentage.
- Recommended for retesting
Hungarian description:
📊 Smart DCA Invest – Funkciók Leírása
✅ Automatizált DCA stratégia dinamikus profitcélokkal, optimalizált kockázatkezeléssel.
⚙️ Működés:
🕒 Időintervallum Beállítások
• 📅 Kezdési dátum és idő: A stratégia csak a meghatározott kezdési időpont után aktiválódik.
• ⏳ Befejezési dátum és idő: A stratégia a meghatározott időpontig működik.
• 🔄 Automatikus újraindítás: Pozíciózárás után a stratégia automatikusan újraindulhat.
💵 Befektetési Összegek
• 🟢 Első befektetési összeg: Az első pozíció nyitásakor befektetett összeg.
• 🔄 Napi vásárlási összeg: Ismételt periódusonkénti vásárlások összege.
📊 Vásárlási Gyakoriság
• ⏱ Intervallum két vásárlás között: Meghatározza a minimális gyertya intervallumot két vásárlás között, elkerülve a túl gyakori pozícióbővítéseket.
🛡️ Kockázatkezelés
• 📉 Loss Limit: Ha az ár nem csökken egy meghatározott veszteségi szint alá, a stratégia nem vásárol tovább, hogy hatékonyabban csökkentse az átlagárat.
• 🎯 Take Profit: Előre meghatározott profitcél százalékos értéke, amely elérésekor a pozíció lezárul.
📈 Dinamikus Take Profit (TP) Beállítások
• ⏳ TP növelési gyakoriság: A dinamikus TP növekedésének időszaka napokban.
• 📊 TP növekedés mértéke: A TP szint százalékos növekedése az intervallum végén.
• ⚙️ Dinamikus TP engedélyezése: A TP szint dinamikusan növekszik a tartási idő függvényében.
• 🧠 Smart Invest: Kihagyott vásárlások felhalmozása (átlagos bekerülési vagy „Loss limit” feletti árfolyamnál), amelyek a „Loss limit” árszint alatt befektetésre kerülnek.
🎨 Vizuális Megjelenítés
• 📏 Átlagár vonal: Sárga színnel jelzi az átlagárat.
• 🛑 Stop Limit vonal: Piros színnel jelzi a veszteségi korlátot.
• ✅ Take Profit vonal: Zöld színnel jelzi a dinamikusan frissülő profitcélt.
🎨 Vizuális Elemek
• 📏 Átlagár vonal: Az átlagár megjelenítése a grafikonon.
• 🛑 Stop Limit vonal: A veszteségkorlátozási szint megjelenítése.
• ✅ Take Profit vonal: A Take Profit szint grafikai megjelenítése.
• 📊 Statisztikai táblázat megjelenítése: A stratégia végén részletes adatok jelennek meg egy táblázatban.
📊 Statisztikai Táblázat
• 📈 Átlagár: Az aktuális pozíció átlagos bekerülési ára.
• 🛑 Stop Limit: A veszteségkorlátozási szint értéke.
• ✅ Take Profit: A profitcél értéke.
• 📦 Pozícióméret: Az aktuális pozíció nagysága.
• 💵 Maximális befektetett összeg: A legnagyobb befektetett érték.
• ⏳ Leghosszabb DCA időszak: A leghosszabb időtartam, amíg egy DCA pozíció nyitva maradt.
• 💼 Aktuális befektetés: Az aktuálisan befektetett összeg.
• 🔄 Multiplikátor: Vásárlási szorzó érték.
• 📊 Dinamikusan beállított TP %: Az aktuálisan érvényes Take Profit százalékos értéke.
Demo GPT - Day Trading Scalping StrategyOverview:
This strategy is designed for day trading and scalping, utilizing a combination of technical indicators, candlestick patterns, and volume analysis to determine entry and exit points. It focuses on capturing short-term price movements while ensuring that trades are executed under specific market conditions.
Key Components:
Technical Indicators Used:
Exponential Moving Average (EMA): The strategy uses the 20-period EMA to identify the trend direction. The EMA smooths out price data, helping traders make more informed decisions about potential buy or sell signals.
Volume Weighted Average Price (VWAP): VWAP is used to measure the average price a security has traded at throughout the day, based on both volume and price. This indicator helps assess whether the current price is above or below the average trading price.
Camarilla Pivot Points: The strategy calculates four levels of Camarilla pivots (S2, S3, R2, R3) based on the highest and lowest prices over the last 14 daily candles. These levels act as potential support and resistance zones, guiding entry and exit decisions.
Candlestick Analysis:
Buy Condition: A buy signal is triggered when:
The first candle (previous candle) is green (close > open).
The second candle (current candle) is also green and opens above the first candle.
The volume of the current candle exceeds the 20-period moving average of volume, indicating strong buying interest.
Sell Condition: A sell signal is triggered when:
The first candle is red (close < open).
The second candle opens below the first red candle.
The volume of the current candle also exceeds the 20-period moving average of volume, indicating strong selling pressure.
Position Management:
The strategy enters a long position (buy) when the buy condition is met and closes the long position when the sell condition is met. This approach aims to capture upward momentum while avoiding extended exposure to downside risks.
Trading Settings:
Capital Management: The strategy uses 100% of available capital for each trade, allowing for maximum exposure to potential gains.
Commission and Slippage: The script includes settings for a commission rate of 0.1% and slippage of 3, accounting for trading costs and potential price changes during order execution.
Date Filtering: The strategy allows users to set a start date (January 1, 2018) and an end date (December 31, 2069) for trade execution, providing flexibility in backtesting and live trading.
Visualization:
The script plots the 20 EMA, VWAP, and the Camarilla pivot levels on the chart for visual reference.
Buy and sell signals are visually represented with shapes on the chart, making it easy to identify potential trade opportunities at a glance.
Volume is plotted in a separate pane to assess trading activity, and a horizontal line at zero provides a reference point.
Summary:
This Day Trading Scalping Strategy is designed to exploit short-term price movements by using a combination of EMAs, VWAP, and Camarilla pivot levels, alongside candlestick patterns and volume analysis. It is well-suited for traders looking to make quick trades based on real-time market conditions while maintaining a disciplined approach to entry and exit points. The strategy is highly visual, allowing traders to quickly assess market conditions and make informed trading decisions.
Feel free to modify or adjust any aspects of the strategy according to your specific trading goals or preferences!
Support Resistance Pivot EMA Scalp Strategy [Mauserrifle]A strategy that creates signals based on: pivots, EMA 9+20, RSI, ATR, VWAP, wicks and volume.
The strategy is developed as a helper for quick long option scalping. This strategy is primarily designed for intraday trading on the 2m SPY chart with extended hours. However, users can adapt it for use on different symbols and timeframes. These signals are meant as a helper rather than fully automated trading bots.
One of the key elements is its pivot-based calculation, driven by my integrated indicator "Support and Resistance Pivot Points/Lines ". It enables multi-timeframe pivot calculations which are used to generate the signals and offers customizability, allowing you to define rounding methods and cooldown periods to refine pivot levels. The pivots, in combination with EMA crossovers, VWAP trend, and additional filters (RSI, ATR, VWAP, wicks and volume), create an entry and exit strategy for scalping opportunities that is useful for 0/1 DTE options with an average trade time of six minutes with the default setup for SPY. Option trading should be done outside TradingView. At this moment of release there is no option trading support.
All parameters used in the strategy are tweaked based on deep backtests results and real-time behavior. Be mindful that past performance does not guarantee future results.
The strategy is designed for intermediate and advanced users who are familiar intraday option scalping techniques.
How It Works
The strategy identifies entries based on multiple conditions, including: recently above pivot, recent EMA crossovers, RSI range, candle patterns, and VWAP uptrend. It avoids trades below the VWAP lower band due to poor backtesting results in those conditions. It creates a great number of signals when it detects an uptrend, which entails: VWAP and its lower/upper band slopes are going up, and the number of next high pivot points is greater than the number of lower pivot points. This indicates that we hope it will keep going up. In historical testing, this showed favorable results. This uptrend criteria runs on 15m charts max (where up to the VWAP effectiveness is the greatest).
The strategy also checks for candle and volume patterns, identified in backtesting to improve entry levels on historic data. Which include:
A red candle after multiple green ones, hoping to jump on a trend during a small pullback
Zero lower wick
Percentage and volume is up after lower volume candles
Percentage is up and the first and second EMA slopes are going up
Percentage is up, the first EMA is higher than the second, the price low is below the second EMA and price close above it
The VWAP uptrend overrules the candle and volume conditions (thus lots of signals during those moments).
The above is the base for many signals. There is a strict mode that adds extra checks such as:
not trading when there is no next low or high pivot
requiring a VWAP uptrend only
minimum candle percentages
This mode is for analyzing history and seeing performance during these conditions. It is worth it to create a separate alert for strict mode so you are aware of these conditions during trading.
When no stop has been defined, exits will always happen on pivot crossunder confirmations. If a stop is defined (default config), the strategy exits a position when:
the position is negative or no trail has been set
at least 1 bar has past
OR no stop has been defined (overrules previous)
trail has not been activated
The second exit condition happens when the close is below first EMA(9 by default) and when:
the position has been above first EMA
the gap between close and last pivot isn't small
the position is negative or no trail has been set
OR no stop has been defined (overrules above)
trail has not been activated
There are some more variations on this but the above are the most common. These exit conditions are a safety net because the strategy heavily relies on and favors stops. The settings allow changing stops, profit takers and trails. You can configure it to always sell without the conditions above.
The script will paint the pivot lines, trailing activation/stops, EMAs and entry/exits; with extra information in the data panel. For a complete view add VWAP and RSI to your chart, which are available from TradingView official indicator library. The strategy will not rely on those added indicators since VWAP and RSI are programmed in. You can add them to track the behavior of the signals based on these filters you have configured and have a complete view trading this strategy.
As mentioned earlier, the default settings are built for SPY 2m charts, with extended hours and real-time data. Open the strategy on this chart to study how all input parameters are used. If you don't have real-time data you need to adjust the minimum volume settings (set it to 0 at first).
The backtest
The default backtest configuration is set up to simulate SPY option trading.
Start capital is set to 10,000 and we risk around 5% of that per trade (1 contract)
Commission is set to 0.005%. The reason: at the time of this publication the SPY index price is approximately $580. Two ITM 0/1 DTE options contracts, each priced around $280, which is approximately $560. The typical commission for such a trade is around $3. To simulate this commission in the backtest on the SPY index itself, a commission of 0.005% per trade has been applied, approximating the options trading costs.
Slippage of 3 is set reflecting liquid SPY
The bar magnifier feature is turned on to have more realistic fills
Trading
In backtesting, setting commission and slippage to 0 on the SPY 2m chart shows many trades result around breaking even. Personally, I view them as an opportunity and safety net to help manage emotional decisions for exits. The signals are designed for short option scalps, allowing traders to take small profits and potentially re-enter during the strategy’s position window. It's advisable to take small potential profits, such as 4%, whenever the opportunity arises and consider re-entering if the setup still looks favorable, for example price still above ema9. Exiting a long position below ema9 is a common strategy for 2m scalping.
The average trade duration is approximately 6 minutes (3 bars). The choice between ITM (in-the-money), ATM (at-the-money), or OTM (out-of-the-money) options will depend on your trading style. Personally, I’ve seen better results with ITM options because they tend to move more in sync with the underlying index, thanks to their higher delta.
It’s important to note that the signals are designed to be a helper for manual trading rather than to automate a bot. Users are encouraged to take small profits and re-enter positions if favorable conditions persist. Be mindful that past performance does not guarantee future results.
For the default SPY setup the losses will mostly be 4-10% for ITM options. Be mindful of extreme volatile conditions where losses may reach 30% quickly, especially when trading ATM/OTM options.
The following settings can be changed:
8 pivot timeframes with left/right bars and days rendered
Here you can configure the timeframes for the pivots, which are crucial. The strategy wants that a crossover has happened recently (so it might enter after a crossunder if the crossover was recent) or the price is still above the crossed pivot.
When you decide to use a pivot timeframe higher than your chart, make sure it aligns the same starting point as the chart timeframe. As stated in the 43000478429 docs, there is a dependency between the resolution and the alignment of a starting point:
1–14 minutes — aligns to the beginning of a week
15–29 minutes — aligns to the beginning of a month
from 30 minutes and higher — aligns to the beginning of a year
This alignment also affects the setting of rendered days. I recommend a max value of 5 days for 1-14 minutes timeframes.
Also make sure a higher pivot timeframe can be divided by the lower. For instance I had repaint issues using 3m pivots on a 2m chart. But 4m pivots work fine.
Please look up docs 43000478429 to make sure this information is still up to date.
Pivot rounding
The pivot rounding option is used to add pivots based on a rounded price and limit the number of pivots. While this feature is disabled by default it can be useful with tweaking strategy variations, because many orders are placed at rounded levels and tend to act as strong price barriers.
There are multiple rounding methods: round, ceil/floor, roundn (decimal) and rounding to the minimal tick.
The next feature is a powerful extension called "Cooldown rounding":
Pivot cooldown rounding
This rounds new pivot levels for a cooldown period to keep the previous pivot line instead of adding a new line when they match the rounded value within the cooldown period. The existing line will be extended. This feature is useful because it makes sure the initial line is added to the exact high/low pivot level but any future lines within the rounding will just extend the existing line. This limits the number of pivots while still having precise levels (which normal rounding lacks) and allows more precise pivot trading.
This feature also helps ensure that the number of rendered lines will not exceed 500 too much, which is the render limit on TradingView.
You can set a maximum minutes for the cooldown. The default is 3 years which will enable the cooldown rounding permanently on the intraday (due to the max bar limit).
Pivot always added when new higher/lower pivot
When using cooldown rounding, one may find it useful to override this behavior when a new lower or higher pivot level has been reached. When enabled the new level will be added despite the fact that they may be rounded the same in the cooldown check. This is a good balance between limiting pivots but also allowing preciser trading.
VWAP bands multiplier
This is used to tweak the inner VWAP working for the upper and lower band. The default VWAP multiplier (0.9) is set based on backtesting since it performed better on historic data (the strategy does not trade below the lowerband). When you add the VWAP indicator from the TradingView library to the chart, make sure it uses the same multiplier setting as within this strategy so you have a correct view of the conditions the strategy acts on.
ATR EMA smoothing length
Used to tweak the ATR EMA smoothing. By default it is set up to 4 based on deep backtesting historic data.
EMA lengths
Changing the EMA length allows you to fine tune the EMA crossing behavior. By default the strategy is set up to EMA 9 and 20 which are considered commonly used values on the 2-minute chart.
Trading intraday time restrictions
For intraday charts you can configure when the strategy starts trading after market open and when it stops, including a hard sell. This makes sure there are no open positions left for the day during backtesting and can also aid in your trading style. For example some scalpers will not trade in the first two hours. Having no signals during this time can be beneficial. It is possible to configure these settings based on the number of bars or minutes.
Not trading on days the market closes earlier
By default the strategy does not trade on days the market closes earlier in the US. This makes sure there are no open positions left open during backtesting. Make sure to change it when using it on such a day. The days are: day before independence day, day after thanksgiving, Christmas eve and new years eve.
Not trading below VWAP lowerband
Backtesting has shown poor performance when trading below the VWAP lowerband but you are free to allow it to trade in such conditions. Past performance does not guarantee future results.
Minimum volume
A minimum volume can be set up. The current value is based on better deep backtest results for SPY using real-time data (48000). When you do not have a data plan for SPY, please set it to 0 and tweak based on backtests.
Minimum ATRP
The strategy has shown during my trading that it is sensitive to higher ATRP values and more volatile market conditions. There is more chance the index moves and we can profit from this during option scalping (if it moves in your favor). The default is based on SPY backtesting (0.04%), as a balance to have a lot of trades but also capture minimal movement.
RSI range
A RSI range can be set using a minimum and maximum value so we can limit trading during overbought/oversold conditions. Backtesting for SPY has shown the strategy performs better on historic data within a tighter range, so a default range has been set to 40-65.
Allow orders on every tick (no effect on stop/profit/trail)
This setting is used to allow orders on every tick. The strategy has been developed without trading on every tick but you can change this, for example when you have configured a setup different than the default configuration that you know works well with this. The default setup will not work well with it due to too many constant signals.
Stop percentage + ATRP threshold
One of the most important settings for managing the risk. I recommend setting a stop percentage first and later the ATRP threshold where the stop is calculated based on the current ATRP value. The calculated value will only be in effect when it is greater than the normal stop--the normal stop acts as baseline. The default stop is low (0.03). With a default ATRP threshold stop of 1.12, the calculated value overrules the normal stop when the value is greater. 0.03 acts as a minimum value but in reality the stop will most likely be higher on average for SPY with the default ATRP threshold.
For the default SPY setup the losses will be around 4-10% for ITM options. Be mindful of extreme volatile conditions where losses may reach 30% quickly, especially when trading ATM/OTM options.
Profit taker percentage + ATRP threshold
Same principles as the stop percentage above, but for profit taking. There is a very high ATRP threshold of 4 set by default. Backtests showed that trailing stops perform better on historic data.
Trailing stop
Used to set up a trailing stop. A useful feature to secure profit after a run-up, or get out with a small loss after initial activation. It is important to not use too tight values because they will give unrealistic backtest results and trigger too fast in real-time. Both the trail activation level and trail stop itself can be configured with a percentage value and ATRP value. I recommend setting up the ATRP last. By default the values are 0.05 for activation and 0.03 for the stop based on SPY real-time behavior.
Always sell on pivot crossunder confirmation
The strategy includes pivot crossunder confirmations as sell condition. By default it will not sell on every crossunder confirmation but checks for different conditions (explained in detail earlier in this description). You can change this behavior.
Always sell below first EMA when position has been above
The strategy sells below the first EMA when the position has been above it. By default it will not always sell but checks for different conditions (mentioned earlier in this description). You can change this behavior.
Buy modes pivot
By default the strategy buys between pivots as long as there has been a pivot crossover and EMAs crossover recently or price is still above it. You can change the behavior so it only buys on pivot crossovers or pivot crossover confirmations. Backtesting on the default setup shows decreased performance but for other strategy variations and pivot setups this feature can be useful since many scalpers do not buy between pivots.
Strict mode
There is a strict mode that adds extra checks such as not trading when there is no next low or high pivot, requiring a VWAP uptrend only and minimum candle percentages. This mode is for analyzing history and seeing performance during these conditions. It is worth it to create a separate alert for strict mode so you are aware of these conditions during trading. The deep backtests improved with these setting but past performance does not guarantee future results.
In the strict mode section you can override the stop, minimum ATRP, set up a minimum percentage, only trade VWAP uptrends and to not trade candles without a wick.
A summary and some extra detail
At the time of release only long trades are supported
The strategy is meant for quick scalping but one might find other uses for it
Enable extended hours on intraday charts so it captures more pivots
It does not trade extended hours (pre and post market) since options do not trade during those times
real-time data is recommended and required if a symbol has delayed data by default
You can configure that it trades minutes after market open and hard sells minutes after market open
The entries have a specific label text, example: "833 LE1 / 569.71 / P:569.8". This means: / / . The condition number is only for development/debug purposes for me when you have an issue.
The strategy cannot be tweaked to work on multiple symbols and timeframes with a single config. So you will have to make a config for every timeframe and symbol. I recommend using the Indicator Templates feature of TradingView. This way you can save the settings per timeframe and symbol
The strategy is per default config very dependent on (trailing) stops because it trades between pivots too. It wants that a pivot and EMA crossover has happened more recently than a crossunder. But you can change this behavior to always force crossover buys and crossunder sells.
It’s recommended to set up alerts to notify you of entry and exit signals. Watching the chart alone might cause you to miss trades, especially in fast-moving markets.
Only a max of 500 lines can be rendered on the chart, but the strategy will function with more under the hood. When you exceed 500 you will notice the beginning of the chart has no pivots, but beneath everything functions for backtesting.
Changing settings
Changing the settings for a different symbol and/or timeframe can be a challenging task. Here's a how-to you could use the first time to help you get going:
Set commission and slippage to 0. I prefer to do this so it is more clear whether you are balancing on break-even trades
Enable the pivot timeframe equal or above your chart timeframe. Avoid repainting as discussed earlier by choosing timeframes that align with the same timeframe
Set all volume, ATR, stop, profit takers and trail values to 0
Make sure strict mode is disabled at the bottom of the settings
You now have a clean state and you should see the backtest results purely based on pivot and EMA conditions
Tweak the stop and profit taker, beginning with the simple values and then ATRP threshold
At the last moment tweak the trailing stops. Tight trailing stops create an unrealistic backtest so you will need to tweak them based on real-time behavior of the symbol you're using which you will have to monitor during signals while the market is open. The default values are low (2m intraday SPY). Only with the bar magnifier feature it is somewhat possible to tweak realistic with history data. The tighter they are, the more unrealistic your backtest results. As a starting point, set the trailing stop low and find the highest activation level that doesn't change the results drastically, then increase the stop to the value you think reflects real-time behavior.
Keep refining by testing it during real-time behavior. Does it exit too early according to your own judgment? You need to increase the stop and maybe the activation level.
I hope you will find this useful!
DISCLAIMER
Trading is risky & most day traders lose money. This indicator is purely for informational & educational purposes only. Past performance does not guarantee future results.
Strategy:Reversal-CatcherWhat
This is a plain and vanilla reversal based strategy for intraday (15m) timeframe on Futures prices of the assets.
Now what all it comprises of?
It finds out the dynamic support & resistance from Bollinger Band (20 period, 1.5 std dev).
It finds out the potential divergence of price deviation from 5 period exponential moving average (EMA).
If the previous candle (N-1) shows a divergence it confirms the reversal by checking the present candle (N) to be closed inside the Bollinger Band.
It confirms the momentum by checking RSI shows a crossover/crossunder to oversold (30) / overbought (70) region.
It also confirms whether the trend is up (then only reversal trade to short) or down (then only reversal trade to long). The trend is checked with EMA-21 and EMA-50.
Re-affirmation Condition : It re-affirms the position of two successive candles called as `hhLLong` and `hhLLShort` in the script.
Why
In Indian context, retail participants are pre-dominantly (yes- 80% of Indian daily volume) Options buyers mainly in weekly indices (Nifty, BankNifty, FinNifty, CNXMidcap, Sensex, Bankx .. well everyday is expiry now in India, except -- Thank God -- Saturday & Sunday).
And in Index Options the momentum plays a big role.
If one can catch a good reversal point the potential of high Risk-to-Reward trade (hence earn handsomely) is very likely (please note: there is no holy grail in trading. Nothing works 100%).
So this is the attempt to catch a reversal.
Re-affirmation of Reversal
hhLLong : It's a reversal point after an uptrend. It checks the relative positioning of current candle compared to that of previous candle. [The details are in the script. Check for variable hhLLong in script.
hhLLShort : It's a reversal point after a downtrend. It checks the relative positioning of current candle compared to that of previous candle. [The details are in the script. Check for variable hhLLShort in script.
Unique-ness
What's unique in it? Why we decided to publicly share this:
Already given the context of The Great Indian Options Buyers community. It should be helpful to them, we believe.
It takes Very Less Number of Trades with High Accuracy . Please check the result in NSE:NIFTY1! in 15m timeframe. 71% accuracy with roughly a trade in a month.
There is no point giving brokers' the brokerages taking 10 trades a day and ending not-so-good EoD. Better lets take less trades with better result possibility. .
Mention
There are many people uses this variation of Bolling Band, 5EMA
Many people use RSI, trends and relative positioning of candles.
--> We are grateful to all of them. It's really difficult to mention everyone's name. But all people somehow influence the thought process. Thanks for all of them.
Statutory Disclaimer
There is no silver bullet / holy grail in trading. Nothing works 100% time. One has to be careful about the loss (s)he can bear in case of the trade goes against.
We, as the author of this script, is not responsible for any trading or position decision one is taken based on the outcome of this.
It is our sole discretion to change, add, delete the portion or withdraw the whole script without any prior notice or intimation.
In Indian Context : We are not SEBI registered, will never be SEBI registered.
SPY 1 Minute Day TraderWhen scalping options, users are looking for where breakouts are going to occur instead of sitting thru areas choppy price action that drain delta and cause them to lose value even if price is up trending. This script tries to identify when a trend reversal is expected based on one minute price action on the SPY. It alerts users to prepare for potential breakout when 5 out of the 6 key optimized parameters are discovered by showing a white L or S. Once all six trigger, it informs the user at the close of that candle with a golden triangle with Pivot Up or Pivot Down. As scalping options is something that is expected to be short in duration, a take profit and stop loss of 30 cents of price actions is established. If five or more parameters occur after the pivot is initiated, then stop losses and take profits are adhered to; however, if there are less, then it waits to take profit or stop the trade, as likely it is just noise and it will finish trend with an additional breakout.
This script has been created to take into account how the following variables impact trend for SPY 1 Minute:
ema vs 13 ema : A cross establishes start of trend
MACD (Line, Signal & Slope) : If you have momentum
ADX : if you are trending
RSI : If the trend has strength
The above has been optimized to determine pivot points in the trend using key values for these 6 indicators
bounce up = ema5 > ema13 and macdLine < .5 and adx > 20 and macdSlope > 0 and signalLine > -.1 and rsiSignal > 40
bounce down = ema5 < ema13 and macdLine > -.5 and adx > 20 and signalLine < 0 and macdSlope < 0 and rsiSignal < 60
White L's indicate that 5 of 6 conditions are met due to impending uptrend w/ missing one in green below it
Yellow L's indicate that 6 of 6 conditions still are met
White S's indicate that 5 of 6 conditions are met due to impending downtrend w/ missing condition in red above it
Yellow S's indicate that 6 of 6 conditions still are met
After a downtrend or uptrend is established, once it closes it can't repeat for 10 minutes
Won't open any trades on last two minutes of any hours to avoid volatility
Will close any open trades going into last minute of hour to avoid large overnight random swings.
Jerry J8 30-123 SPY Scalping PROPlease watch the J8 Scalping Tutorial Video below for a walkthrough on how these indicators work.
---- STRATEGY
This study project is designed for scalping options that expire daily with bull put and bear call credit spreads on a 3 minute chart. The name 30_123 is a reference to 4 main criteria being met to give a green light for a potential trade. The 4 main criteria:
*30 = 30 minute trend
*1 = 3 minute trend
*2 = Moving average criteria
*3 = RSI criteria
4 = Secondary trend. Bonus if in sync but not a requirement.
* The strategy also utilizes momentum as a criteria.
This indicator is designed to trade options that expire daily including the SPY, IWM, QQQ, and NDX.
When 30_123 conditions are all green and all criteria are met a bull signal is created.
When 30_123 conditions are all red and criteria are met a bear signal is created.
The bull and bear signals are based on the stock/index price; BUT the actual orders are for option spreads that are normally based on a delta of approximately .15 to .25.
For example, if the SPY is at 400 we could have an order to sell a BULL PUT CREDIT SPREAD and I would likely sell the 398p and buy the 397p; The 398p delta would be approximately -.2. The spread position profits with any close over 398 and/or can be closed early with a bullish price move. IMPORTANT: If the SPY closed the day at $399 on the chart it would look like a loss based on the buy and sell orders but the spread would be a full profit since the close was above 398.
This script is used in conjunction with Jerry J8 30-123 Spy Scalping Dashboard Pro indicator which is the dashboard to give a visual for the 4 main criteria and makes things easier to understand.
---- TRADING TIME FRAME
The default time frame is 10:00 - 15:57 and can be controlled by the user. I do not enter trades in the first 30 minutes since that can be a very volatile period and you can easily configure the indicator and trading time frame based on how you trade.
---- MAJOR USER INPUTS
Paint Bars: Turns on/off the candle coloring for the trend
Exits: Open orders can be closed with 3 different exit criteria and all should be left on. These exits are needed to provide multiple entry signals throughout the day. However, you want to close the spreads based on your own criteria and not on the indicator.
Criteria: Trend, moving averages, RSI settings, and trading time frames can all be adjusted.
---- SETUP & HINTS
Add "Jerry J8 30-123 Spy Scalping Dashboard Pro” indicator to show J8 criteria dashboard
Add "Jerry J8 MACD Optimal Entry Zone” indicator to show best range of entry
I also like to add "Jerry Momentum Dream" indicator to see the momentum
With this indicator we’re looking for the 30, 1, 2, and 3 criteria to be met which increases our likelihood of success. IMPORTANT. Never automatically enter a position without reviewing the other indicators and drawing our own conclusions. You want to choose the entries that are the most appealing to you that take into account volume, time of day, and risk/reward. Positions should be closed based on your risk/reward goals.
Indicators are not a magic pill and should be used to support trading decisions, not to make them for you. Past performance is not a guarantee of future returns. The results of individual stocks/indexes with any strategy do not constitute proof they will repeat in the future.
DISCLAIMER: The information contained in our scripts/indicators/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. Trading and investing in the stock market and cryptocurrencies involves substantial risk of loss and is not suitable for every investor. I’m NOT a financial adviser. All trading strategies are used at your own risk.
Please Use the AUTHOR’s INSTRUCTIONS link below for more information.
NOTE: The PERFORMANCE SUMMARY below does not accurately reflect the trading strategy because the entry orders generated in the strategy are based on the stock price and our actual order is a credit spread that is profitable even if the price moves against us a little bit. What could show as a loss in the strategy could be a profit in the credit spread.
ichimoku Masters Backtester LightThis Indicator has so many options for build your own strategy
With this indicator you can build your own strategy using the options that we provided here
in the "Static Enter" Section you can choose where do you want to enter your position and customize it with "Enter Candle" Section,by specifying these options, the indicator will start opening the position for you and show you the backtest.
In the "Static Exit (SL & TP)" section you can choose where do you want to exit your positions with setting target and stop for your positions.
And at the end you can set alert on opening and closing position and be aware of that
We hope that you enjoy using ichimoku Masters Backtester Light
-Notice : The Sections: "Dynamic Enter" , "Dynamic Exit" , "9Br Enter" , "9Br Exit" , "Pre Cross" , "Cross Enter" , "Cross Exit" , "Chiko Enter" , "Break Enter" , "Pre Switch" , "Switch Enter" , "Switch Exit" , "Ichi Elements" , "Ichi Elements Order" and "Risk Management" are limited on this version and you are not able to use them
- the "Name" Argument is for naming your strategy
- Open Section has 3 options :
1 : Buy/Sell opens positions when ichimoku cloud and conversion and base line cross at the sametime
2 : 26BoxBr opens position when candle breaks the ichimoku 26 box that indicator builds on "Box" Section
3 : 52BoxBr opens position when candle breaks the ichimoku 52 box that indicator builds on "Box" Section
- Box Section has 6 options :
1 : Cr sets the box on conversion and base cross
2 : OldCr sets the box on conversion and base cross with the beginning candle
3 : PC sets the box on a cross which has no cross before until 26 candles
4 : 9Signal Box sets the box on 9 candles of open position candle
5 : 26Signal Box sets the box on 26 candles of open position candle
4 : 52Signal Box sets the box on 52 candles of open position candle
- Enter1% sets the percent of entry position
- Risk% sets the percent you want to risk your equity
- Max Leverage sets the maximum leverage you want to have on your positions
- S2S is for staying on the position and the indicator does not open the opposite position
- Enter Candle Section has 14 check boxes:
1 : Scandle means that our open position candle should be standard
2 : NoScandle means that our open position candle should not be standard
3 : Tr means that our open position candle should be green for long positions and red for short positions
4 : NoTr means that our open position candle should be red for long positions and green for short positions
5 : G means that our open position candle should be big candle
6 : NoG means that our open position candle should not be big candle
7 : 9Grd means that conversion line shoud be yellow for long positions and white for short positions
8 : No9Grd means that conversion line shoud not be yellow for long positions and white for short positions
9 : 26Grd means that base line shoud be yellow for long positions and white for short positions
10 : No26Grd means that base line shoud not be yellow for long positions and white for short positions
11 : 52Grd means that Lead2 line shoud be yellow for long positions and white for short positions
12 : No52Grd means that Lead2 line shoud not be yellow for long positions and white for short positions
13 : InCL means that our open position candle should be in ichimoku cloud
14 : OutCL means that our open position candle should not be in ichimoku cloud
- Static Exit (SL & TP)
- Sl Section has 6 Options:
1 : Middle26 sets the stop loss of the position on the middle of the box
2 : 9 Stop sets the stop loss of the position on the 9 candles box
3 : 26 Stop sets the stop loss of the position on the 26 candles box
4 : 52 Stop sets the stop loss of the position on the 52 candles box
5 : 26Double box sets the stop loss of the position on the Double of 26 candles box
6 : 52Double box sets the stop loss of the position on the Double of 52 candles box
- in TP we can set our targets from 1 to 20
- LogTp sets our target based on logarithm
- Multiple Enter:
in this section we can set our additional orders for open positions,for this you should turn on the "On" button and then set your orders base on box, for example:
when you put 50 on Enter2 and 10 on Enter2% ,then indicator sets an order on the 50 percent of box in 10% of your equity
- Multiple Exit:
in this section you can set your step exit of order, for this you should turn on the "on" button and set your steps on box targets, for example:
when you put 1 on Exit1 and 10 on Exit1% , then indicator exit 10 percent of your position on the target 1 of box
- RF Stands for risk free and you can risk free your positions using RF ,for example :
when you put 1 on RF and 10 on RF% ,then indicator place your stop on opening position candle when it touches the target 1 of the box and exits 10 percent of your position
- Ichi Numbers : in this section you can specify your ichimoku numbers
- C stands for Conv
- B stands for Base
- L stands for Lead2
- Visual Setting : in this section you can choose variable that you want to see on the chart
- Long TP/SL shows you the Long position target and stop
- Short TP/SL shows you the Short position target and stop
- Cloud shows you the ichimoku cloud
- Offset shifts the ichimoku clouds on 26 candles
- Conv shows you the conversion line
- Base shows you the base line
- Chiko shows you the chiko span line
- Pre shows you the point that conv prediction line and base prediction line cross each other and lead2 prediction line and lead1 prediction line cross too at the same time
- Cr shows you the cross point of conv and base lines
- PC shows the cross point of conv and base lines which has no cross up to 26 candles ago
- EqCr shows you the cross point of conv and base lines which the conv and base are equal
- Buy_Sell shows you the point that conv line and base line cross each other and lead2 line and lead1 line cross too at the same time
- Position Info shows you the information of position such as leverage and entry equity
- Enjoy :)
Grid Trading V.3Grid DCA Trading System (Spot) This strategy does not use indicators.
The Buy Point is the price that has come down from the previous Entry or CloseLong 1.3%(as configured) and the Point of Sale is the desired %.
This strategy will have a lot of stuck in the mountain so it is very capital intensive or should be used during the sideway market.
In this system can call Alert : {{strategy.order.alert_message}}
buy message
{"side":"buy","amount":"@0.052","joint_limit":"sell","price_limit":"270.6","symbol":"BNBUSDT","price":"0", "strategy":"Grid Trading V.3", "passphrase": "xxxxxxx"}
- joint_limit for set to sell at the time of purchase (trad Spot)
- price_limit for the sale price already calculated by the system.
sell message
{"side":"sell","amount":"@0.052","joint_limit":"sell","price_limit":"270.6","symbol":"BNBUSDT","price":"0", "strategy":"Grid Trading V.3", "passphrase": "xxxxxxx"}
This message is for bots that are already designed.
----------------------------------------------------------------------------------------------------------------------
ระบบเทรด Grid DCA (Spot) กลยุทธ์นี้ไม่ได้ใช้ indicators
จุดซื้อคือราคาที่ลงมาจาก Entry หรือ CloseLong ก่อนหน้า 1.3% (ตามที่กำหนดค่า) และจุดขายคือ % ที่ต้องการ
กลยุทธ์นี้จะมีไม้ดอยจำนวนมาก จึงใช้ทุนมาก หรือ ควรใช้ช่วงตลาด sideway
ในระบบนี้สามารถเรียกใช้ Alert : {{strategy.order.alert_message}}
message ซื้อ
{"side":"buy","amount":"@0.052","joint_limit":"sell","price_limit":"269.438","symbol":"BNBUSDT","price":"268.9","strategy":"Grid Trading V.3", "passphrase": "xxxxxxx"}
- joint_limit สำหรับ ตั้งขายตอนซื้อ (trad Spot)
- price_limit สำหรับ ราคาขายที่ระบบคำนวนให้แล้ว
message ขาย
{"side":"sell","amount":"@0.052","joint_limit":"sell","symbol":"BNBUSDT","price":"268.6","strategy":"Grid Trading V.3", "passphrase": "xxxxxxx"}
message นี้ผมใช้กับบอทที่มีการออกแบบใว้แล้ว
enjoy.
APIBridge Nifty Options Algo StrategyUsing Pinescript, we will use charts of Cash/Future to trade in Options. Note this strategy works well with even the free version of TradingView.
The Relative Strength Index ( RSI ). Is a momentum oscillator that measures the speed and change of price movements. The RSI oscillates between zero and 100. Increasing RSI shows increasing bullish momentum. Decreasing RSI shows increasing bearish momentum. We take RSI upper bound as 80 to indicate bullish momentum and RSI lower bound as 20 to indicate bearish momentum.
We use the above premise to create options buy-only strategy which trades in ATM strikes by default. This strategy requires very less margin (Minimum Rs . 15000).
Since this strategy uses underlying data (cash/future) to place trades in Options, please ignore the backtest of this strategy given by TradingView. TradingView does not provide options data but this strategy bypasses it.
Strategy Premise
The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. The RSI oscillates between zero and 100. Increasing RSI shows increasing bullish momentum. Decreasing RSI shows increasing bearish momentum. We take RSI upper bound as 80 to indicate bullish momentum and RSI lower bound as 20 to indicate bearish momentum.
We use the above premise to create options buy-only strategy which trades in ATM strikes by default. This strategy requires very less margin (Rs. 15000 should be sufficient).
NSE Options Algo Strategy Logic
Long Entry: When RSI goes above 80, send LE in an auto-calculated option strike Call. When RSI goes below 20, send LE in auto-calculated option strike Put.
Long Exit: When we hit Stop loss or Target. In case SL/TGT does not hit and reverse RSI goes above 80 send Long Exit in auto-calculated option. Put as per last trade; RSI goes below 20, send LX in auto-calculated option call as per last trade.
For Long and Short entry the order is fired in the option buying side with auto strike price selection.
Option Strategy Parameters for TraingView Charts
RSI Length(Mandatory): Number of bars used to calculated RSI.
Upper Band(Mandatory): To specify upper band of RSI.
Lower Band(Mandatory): For specifying lower band of RSI.
Use reversal from Upper Band (Optional): This will enable short entry when RSI is falling below 80 from upper band. Recommended to keep unchecked initially.
Use reversal from Lower Band (Optional): This will enable long entry when RSI is raising above 20 from lower band. Recommended to keep unchecked initially.
Quantity: We use this specify the trade quantity (for Nifty min 75)
Custom Stop Loss in Points: Movement in chart price against the momentum which will trigger exit in options positions
Custom Target in Points: Movement in chart price against the momentum which will trigger exit in options positions
Base symbol: This is the base instrument symbol like NIFTY or BANK NIFTY.
Strike distance from ATM: Our default strike selection is considered as first ATM option (with nearest distance, only 100s are considered ). This strike distance allows to calculate ATM options which are at fixed distance.
Expiry: Expiry of option. Weekly and monthly both expiry are allowed.
Instrument: For index instrument will be OPTIDX, for stock instrument will be OPTSTK
Strategy Tag: The Strategy of Nifty options configured in Api bridge.
Setting Up Alert
Before setting up the alert make sure that you have selected desired script, time frame, strategy settings, and APIbridge configuration. Click in settings add alert and paste {{strategy.order.comment}} in message box.
Important: Do not change any settings during live trading. It may break the sequence of exit for the correct call/put.
Simple Moving Averge StrategySimple Vs. Exponential Moving Averages
Formula for Exponential Moving Average (EMA)
\begin{aligned} &\begin{aligned} EMA_{\text{Today}}=&\left(\text{Value}_{\text{Today}}\ast\left(\frac{\text{Smoothing}}{1+\text{Days}}\right)\right)\\ &+EMA_{\text{Yesterday}}\ast\left(1-\left(\frac{\text{Smoothing}}{1+\text{Days}}\right)\right)\end{aligned}\\ &\textbf{where:}\\ &EMA=\text{Exponential moving average} \end{aligned}
EMA
Today
=
(Value
Today
∗(
1+Days
Smoothing
))
+EMA
Yesterday
∗(1−(
1+Days
Smoothing
))
where:
EMA=Exponential moving average
While there are many possible choices for the smoothing factor, the most common choice is:
4 Pack Scalping ToolThe 4 Squeeze Scalp tool is a tool that I have developed over the past few years. I was always fascinated by the fact that most people don’t know where price is heading. While Fibonacci and other linear type methods work it never gelled with me. I started by going deep into the fundamentals of momentum with an understanding that an object in motion heading in a particular direction tends to stay heading in that direction (until something derails it). Price, in my opinion, is no different.
Price can move up, down and sideways. And it moves in a wave, getting stronger over time until eventually pulling back and starting over again. In my mind, the compression of price and the relationship of that pressure to various lengths of time as well as RSI, ADX and DMI across these same time frames gives you a view on how the underlying price momentum is building up and releasing. For trading you want to be building a trade when pressure starts to build and you want to take profits when the wave starts to pull back and build for the next cycle.
Each dot represents a length of the momentum indicator and the line inside the oscillator is a weighted composite of the underlying momentum structure for each of the lengths selected. A trade follows the directional alignment of the line (red = down, yellow = neutral / chop, green = up) and the dots should be aligned from the bottom to the top (bright green = very bullish, dark green = neutral / bullish, dark red = neutral / bearish, bright red = very bearish). When the line and the dots are aligned you will have a high probability trade.
The backtest results below are based on 2 years of backtesting, using a 2 contract trade on a 100K account. While the absolute return is not meaningful the win rate and PF are great for a trade on CL on this timeframe. The tool can be used on any asset over any timeframe in a multitude of combinations.
To get access to the tool, please contact the author.
Strategy BackTest Display Statistics - TraderHalaiThis script was born out of my quest to be able to display strategy back test statistics on charts to allow for easier backtesting on devices that do not natively support backtest engine (such as mobile phones, when I am backtesting from away from my computer). There are already a few good ones on TradingView, but most / many are too complicated for my needs.
Found an excellent display backtest engine by 'The Art of Trading'. This script is a snippet of his hard work, with some very minor tweaks and changes. Much respect to the original author.
Full credit to the original author of this script. It can be found here: www.tradingview.com
I decided to modify the script by simplifying it down and make it easier to integrate into existing strategies, using simple copy and paste, by relying on existing tradingview strategy backtester inputs. I have also added 3 additional performance metrics:
- Max Run Up
- Average Win per trade
- Average Loss per trade
As this is a work in progress, I will look to add in more performance metrics in future, as I further develop this script.
Feel free to use this display panel in your scripts and strategies.
Thanks and enjoy :)
Strategy: Combo Z ScoreStrategy version of Combo Z Score
Objective:
Can we use both VIX and MOVE relationships to indicate movement in the SPY? VIX (forward contract on SPY options) correlations are quite common as forward indicators however MOVE (forward contract on bonds) also provides a slightly different level of insight
Using the Z-Score of VIX vs VVIX and MOVE vs inverted VIX (there is no M of Move so we use inverted Vix as a proxy) we get some helpful indications of potential future moves. Added %B to give us some exposure to momentum. Toggle VIX or MOVE.
If anyone has a better idea of inverted Vix to proxy forward interest in MOVE let me know.
Noticeable delta is that Vix only approach over the back test period is slightly better. Questions would be, what is the structure and nature of the market over the test period and in a bear market would MOVE or combined perform better.
RSITrendStrategyI don't know if there is any strategy based on RSI cross over. The strategy is designed based on RSI crossover, considering RSI(5) and RSI(11), with RSI(6) to identify highs & lows.
I used this strategy to trade in Nifty 50 & Nifty bank indices. Whenever there is long mentioned on chart, I go for buying call option with premium near to 300, and placing stoploss of 50 on candle closing basis, vice versa.
Target is open until short is mentioned on the chart. Sometimes, i used standard pivot points as well to mark my targets and also to trail my trades.
Double Bollinger Binary OptionsThis script uses 2 Bollinger bands and rsi oversold and overbought region to give signals. Basically, it detects those conditions where the market gets spiked in one direction aggressively(mostly during news) and then reverses back, although signals occur less frequently, this strategy is worth trying. Keep the timeframe for 5 minutes and trade for 5 candles i.e. 25 minutes :)