DMI Toolbox StrategyThe Directional Movement Index (DMI) was originally developed by J. Welles Wilder Jr. in 1978. Wilder introduced the DMI along with the Average Directional Index (ADX) in his book, “New Concepts in Technical Trading Systems,” which became a foundational reference for technical analysis.
The indicator can offer a myriad of signals for building a trading strategy. In an effort to provide the user with a meaningful way to evaluate these signals, this DMI Toolbox Strategy offers the chance to back-test various combinations and permutations of DMI signals on long trades. By default it will open a long position on the +DI (upward movement) crossing above the -DI (downward movement). By default, It exits long positions when the ADX (trend strength) reverses.
Suggested Use
Try a wide variety of long entry and exit signals across many different timeframes to see what is most effective for the item you wish to trade. There is a table in the upper right corner that will give a quick view of which signal is dominant across 5 timeframes, based on your current settings. Adjust the pyramidding, slippage, and commission values to more closely match your situation.
Visual Helpers
The DMI indicator has been altered to include a smoothed version of the ADX, as well as a colored background to show which signal is dominant (+DI or -DI). Small up arrows call your attention to ADX crossovers that may indicate a significant threshold in trend strength.
Indicators and strategies
EMA Kombine Strateji
EMA Combined Strategy is a flexible trading system that enhances EMA crossovers with RSI, MACD, ADX, volume, and ATR filters to generate more reliable signals, featuring ATR-based stop-loss and take-profit levels.
Extremum Range MA Crossover Strategy1. Principle of Work & Strategy Logic ⚙️📈
Main idea: The strategy tries to catch the moment of a breakout from a price consolidation range (flat) and the start of a new trend. It combines two key elements:
Moving Average (MA) 📉: Acts as a dynamic support/resistance level and trend filter.
Range Extremes (Range High/Low) 🔺🔻: Define the borders of the recent price channel or consolidation.
The strategy does not attempt to catch absolute tops and bottoms. Instead, it enters an already formed move after the breakout, expecting continuation.
Type: Trend-following, momentum-based.
Timeframes: Works on different TFs (H1, H4, D), but best suited for H4 and higher, where breakouts are more meaningful.
2. Justification of Indicators & Settings ⚙️
A. Moving Average (MA) 📊
Why used: Core of the strategy. It smooths price fluctuations and helps define the trend. The price (via extremes) must cross the MA → signals a potential trend shift or strengthening.
Parameters:
maLength = 20: Default length (≈ one trading month, 20-21 days). Good balance between sensitivity & smoothing.
Lower TF → reduce (10–14).
Higher TF → increase (50).
maSource: Defines price source (default = Close). Alternatives (HL2, HLC3) → smoother, less noisy MA.
maType: Default = EMA (Exponential MA).
Why EMA? Faster reaction to recent price changes vs SMA → useful for breakout strategies.
Other options:
SMA 🟦 – classic, slowest.
WMA 🟨 – weights recent data stronger.
HMA 🟩 – near-zero lag, but “nervous,” more false signals.
DEMA/TEMA 🟧 – even faster & more sensitive than EMA.
VWMA 🔊 – volume-weighted.
ZLEMA ⏱ – reduced lag.
👉 Choice = tradeoff between speed of reaction & false signals.
B. Range Extremes (Previous High/Low) 📏
Why used: Define borders of recent trading range.
prevHigh = local resistance.
prevLow = local support.
Break of these levels on close = trigger.
Parameters:
lookbackPeriod = 5: Searches for highest high / lowest low of last 5 candles. Very recent range.
Higher value (10–20) → wider, stronger ranges but rarer signals.
3. Entry & Exit Rules 🎯
Long signals (BUY) 🟢📈
Condition (longCondition): Previous Low crosses MA from below upwards.
→ Price bounced from the bottom & strong enough to push range border above MA.
Execution: Auto-close short (if any) → open long.
Short signals (SELL) 🔴📉
Condition (shortCondition): Previous High crosses MA from above downwards.
→ Price rejected from the top, upper border failed above MA.
Execution: Auto-close long (if any) → open short.
Exit conditions 🚪
Exit Long (exitLongCondition): Close below prevLow.
→ Uptrend likely ended, range shifts down.
Exit Short (exitShortCondition): Close above prevHigh.
→ Downtrend likely ended, range shifts up.
⚠️ Important: Exit = only on candle close beyond extremes (not just wick).
4. Trading Settings ⚒️
overlay = true → indicators shown on chart.
initial_capital = 10000 💵.
default_qty_type = strategy.cash, default_qty_value = 100 → trades fixed $100 per order (not lots). Can switch to % of equity.
commission_type = strategy.commission.percent, commission_value = 0.1 → default broker fee = 0.1%. Adjust for your broker!
slippage = 3 → slippage = 3 ticks. Adjust to asset liquidity.
currency = USD.
margin_long = 100, margin_short = 100 → no leverage (100% margin).
5. Visualization on Chart 📊
The strategy draws 3 lines:
🔵 MA line (thickness 2).
🔴 Previous High (last N candles).
🟢 Previous Low (last N candles).
Also: entry/exit arrows & equity curve shown in backtest.
Disclaimer ⚠️📌
Risk Warning: This description & code are for educational purposes only. Not financial advice. Trading (Forex, Stocks, Crypto) carries high risk and may lead to full capital loss. You trade at your own risk.
Testing: Always backtest & demo test first. Past results ≠ future profits.
Responsibility: Author of this strategy & description is not responsible for your trading decisions or losses.
Options Straddle Strategy Backtester 140% APR for 2025This script provides the most convenient manual tool for backtesting a straddle stagy in options.
The straddle is when you buy a call and a put option at the same price and the expiration date. You profit when the price movement at expiry (8 am UTC) in either directions surpass the price of the premium paid. The price of opening this straddle on ETH is always 1.6% of the current ETH price including fees.
In my example I use ETH options, I am buying a straddle at 8:30 UTC every day with the next day expiration date. In the script it looks like I am opening a long position on ETH at 8:30 and then close it the next days. We need to use 1 minute chart, chart time set to UTC for exact results and deep back testing function to go back in time.
Once the system generates a trade report - we need to download it and go to the list of trades sections, there we do the following:
1) remove all long entry lines leaving only long exit lines that have all the information we need.
2) We add one column that calculates the cost of premium for every trade: Position size*1.6%=cost of premium with fees.
3)We add a second column copying all Net PNL in USDT changing negative amounts to positive - since it doesn't matter for us which direction the move was towards.
The results are quite impressive: If you were buying straddles during 2025 that is not ended yet you will get 69% return on investment (11K paid in premiums, 19K return, 8K net profit). 2024 and 2025 combined: 53% (29 K, 45 K, and 15 profits).
Moreover, since you have the date of the trade in the table you can filter the results further to figure out if trading on some days is less profitable. Interestingly trades from Sun to Mon given are not profitable at -15% and most profitable days are Mon to Tue - 103%, Friday to Sat - 102 %. So if we remove Sun to Monday trades we will be at 89% for the first 221 days of the year or 140% APR.
SPY-2h (E.Trader) - Long-Only StrategySummary
Strategy on SPY, 2h timeframe (2000-2025).
Initial capital: 100,000 USD, 100% reinvest.
Long-only strategy with realistic commissions and slippage (Interactive Brokers: $0.005/share, 3 ticks).
Key results (2000-2025)
• Total P&L: +1,792,104 USD (+1,739.88%)
• CAGR: 11.4% (vs Buy & Hold: 6.7%) → ~1.7x higher annualized return
• Profit factor: 3.23
• Winning trades: 67.43%
• Max drawdown: 21.56%
• Time in the market: ~59% (trading days basis)
• Buy & Hold return: +358.61% → Strategy outperforms by ~4.8x
Strategy logic
• Restricted to SPY on ARCA, in 2h timeframe
• Long entries only (no shorts)
• Exploits two major biases: 1) trends and 2) overreactions
• Excludes very high VIX periods
• Implements calculated stop-losses
• Integrates commission and slippage to reflect real trading conditions (based on Interactive Brokers usage)
Focus 2008-2009 (financial crisis)
• Total P&L: +35,301 USD (+35.30%)
• Profit factor: 3.367
• Winning trades: 80%
• Max drawdown: 15.05%
Even at the height of 2008, the strategy remained profitable, while Buy & Hold was still showing a -22% loss two years later.
Focus 2020 (COVID crash)
• Total P&L: +22,463 USD (+22.46%)
• Profit factor: 4.152
• Winning trades: 72.73%
• Max drawdown: 9.91%
During the COVID mini-crash, the strategy still ended the year +22.46%, almost double Buy & Hold (+12.52%), with limited drawdown.
Observations
• Strong outperformance vs Buy & Hold with less exposure
• Robust across crises (2008, COVID-2020)
• Limited drawdowns, faster recoveries
Model validation and parameter weighting
To check robustness and avoid overfitting, I use a simple weighted-parameters ratio (explained in more detail here: Reddit post ).
In this strategy:
• 4 primary parameters (weight 1)
• 5 secondary parameters (weight 0.5)
• Weighted param count = 4×1 + 5×0.5 = 6.5
• Total trades = 267
• Ratio = 267 ÷ 6.5 ≈ 41
Since this ratio is well above the 25 threshold I usually apply, it appears the model is not overfitted according to my experience — especially given its consistent gains even through crises such as 2008 and COVID-2020.
Disclaimer
This is an educational backtest. It does not constitute investment advice.
Past performance does not guarantee future results. Use at your own risk.
Further notes
In practice, systematic strategies like this are usually executed through automation to avoid human bias and ensure consistency. For those interested, I share more about my general approach and related tools here (personal site): emailtrader.app
MuLegend's Break & Retest Strategy That worksThank you all for checking this out! This indicator works best on the 1 minute time frame for both MNQ & NQ. ES & MES it also can work too to help you be a sniper. Hopefully you will like it!!!
Alpha Buy/Sell Signal✅ High Accuracy – Signals are generated using advanced algorithmic conditions to highlight reliable trade opportunities and reduce false entries.
✅ Clear Visual Alerts – Buy and sell signals appear as distinct markers directly on your chart for easy interpretation.
✅ Easy to Use – Apply it directly to your charts without needing to adjust complex settings.
NG MOEX (TF 1 MIN) api NG MOEX (TF 1 MIN) api
Intraday strategy strictly for gas trading on the Moscow Exchange with the ability to trade via API channel directly to the broker. For all questions, write to telegram @yury020481
with respect, Yuri
Trendline Breakout Strategy [KedArc Quant] Description
A single, rule-based system that builds two trendlines from confirmed swing pivots and trades their breakouts, with optional retest, trend-regime gates (EMA / HTF EMA), and ATR-based risk. All parts serve one decision flow: structure → breakout → gated entry → managed risk.
What it does (for traders)
Draws Up line (teal) through the last two Higher Lows and Down line (red) through the last two Lower Highs, then extends them forward.
Long when price breaks above red; Short when price breaks below teal.
Optional Retest entry: after a break, wait for a pullback toward the broken line within an ATR-scaled buffer.
Uses ATR stop and R-multiple target so risk is consistent across symbols/timeframes.
Labels HL1/HL2/LH1/LH2 so non-coders can verify which pivots built each line.
Why these components are combined
Pure breakout systems on trendlines suffer from three practical issues:
False breaks in chop → solved by trend-regime gates (EMA / HTF EMA) that only allow trades aligned with the prevailing trend.
Uneven volatility across markets/timeframes → solved by ATR-based stop/target, normalizing distance so R-multiples are comparable.
First break whipsaws near wedge apices → mitigated by the optional retest rule that demands a pullback/hold before entry.
These modules are not separate indicators with their own signals. They are support roles inside one method.
The pivot engine defines structure, the breakout detector defines signal, the regime gates decide if we’re allowed to take that signal, and the ATR module sizes risk.
Together they make the trendline breakout usable, testable, and explainable.
How it works (mechanism; each component explained)
1) Pivot engine (structure, non-repainting)
Swings are confirmed with ta.pivotlow/high(L, R). A pivot only exists after R bars (no look-ahead), so once plotted, the line built from those pivots will not repaint.
2) Trendline builder (geometry)
Teal line updates when two consecutive pivot lows satisfy HL2.price > HL1.price (and HL2 occurs after HL1).
Red line updates when two consecutive pivot highs satisfy LH2.price < LH1.price.
Lines are extended right and their current value is read every bar via line.get_price().
3) Breakout detector (signal)
On every bar, compute:
crossover(close, redLine) ⇒ Long breakout
crossunder(close, tealLine) ⇒ Short breakdown
4) Regime gates (trend filters, not separate signals)
EMA gate: allow longs only if close > EMA(len), shorts only if close < EMA(len).
HTF EMA gate (optional): same rule on a higher timeframe to avoid fighting the larger trend.
These do not create entries; they simply permit or block the breakout signal.
5) Retest module (optional confirmation)
After a breakout, record the line price. A valid retest occurs if price pulls back within an ATR-scaled buffer toward that broken line and then closes back in the breakout direction.
This reduces first-tick fakeouts.
6) Risk module (position exit)
Initial stop = ATR(len) × atrMult from entry.
Target = tpR × (ATR × atrMult) (e.g., 2R).
This keeps results consistent across instruments/timeframes.
Entries & exits
Long entry
Base: close breaks above red and passes EMA/HTF gates.
Retest (if enabled): after the break, price pulls back near the broken red line (within the ATR buffer) and holds; then enter.
Short entry
Mirror logic with teal (break below & gates), optionally with a retest.
Exit
strategy.exit places ATR stop & R-multiple target automatically.
Optional “flip”: close if the opposite base signal triggers.
How to use it (step-by-step)
Timeframe: 1–15m for intraday, 1–4h for swing.
Start defaults: Pivot L/R = 5, EMA len = 200, ATR len = 14, ATR mult = 2, TP = 2R, Retest = ON.
Tune sensitivity:
Faster lines (more trades): set L/R = 3–4.
Fewer counter-trend trades: enable HTF EMA (e.g., 60-min or Daily).
Visual audit: labels HL1/HL2 & LH1/LH2 show which pivots built each line—verify by eye.
Alerts: use Long breakout, Short breakdown, and Retest alerts to automate.
Originality (why it merits publication)
Trades the visualization: many “auto-trendline” tools only draw lines; this one turns them into testable, alertable rules.
Integrated design: each component has a defined role in the same pipeline—no unrelated indicators bolted together.
Transparent & non-repainting: pivot confirmation removes look-ahead; labels let non-coders understand the setup that produced each signal.
Notes & limitations
Lines update only after pivot confirmation; that lag is intentional to avoid repainting.
Breakouts near an apex can whipsaw; prefer Retest and/or HTF gate in choppy regimes.
Backtests are idealized; forward-test and size risk appropriately.
⚠️ Disclaimer
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
Enhanced TMA Strategy[BMM]This strategy combines multiple moving averages with pattern recognition and dynamic coloring to identify high-probability trades. It uses 3-line strike patterns, engulfing candles, and RSI-based trend analysis with proper risk management for consistent 75%+ win rates.
Ideal Settings by Timeframe
For clear signals strategy can be used with:
"The Arty" - The Moving Average Official Indicator
or
TMA Legacy - "The Arty"
5-Minute Charts:
MA Lengths: 21, 50, 100, 200
MA Type: EMA
Risk: 1%
Risk:Reward: 2:1
Enable RSI Filter: Yes
Sessions: London + NY only
15-Minute Charts:
MA Lengths: 21, 50, 89, 144
MA Type: SMMA
Risk: 1.5%
Risk:Reward: 2.5:1
Enable RSI Filter: Yes
Sessions: All major sessions
30-Minute Charts:
MA Lengths: 13, 34, 55, 89
MA Type: EMA
Risk: 2%
Risk:Reward: 3:1
Enable RSI Filter: No
Sessions: London + NY only
Key Features to Enable:
Dynamic line coloring
Trend fill
All pattern signals
Session backgrounds
Strategy alerts
Trade only during major session overlaps for best liquidity and volatility.
Cs Fenix Us30The price unbalances the Asia and Frankfurt range and if there is a structural change it highlights a possible entry with a stop and target level.
Trend Following S/R Fibonacci StrategyTrend Following S/R Fibonacci Strategy
Trend Following S/R Fibonacci Strategy
High Accuracy Engulfing Strategy [PIPNEXUS]Indicator Description:
The PIPNEXUS Trend & Volume Continuation Indicator is built to identify trend continuation opportunities while filtering signals through volume analysis. It highlights moments when the market is most likely to sustain its direction, helping traders avoid false breakouts and weak moves. By combining price action with volume confirmation, this tool delivers more reliable entries and exits, making it ideal for both intraday and swing trading.
Key Features:
Detects potential trend continuation setups
Uses volume validation to filter out weak signals
Works seamlessly across multiple timeframes
Designed to reduce noise and improve overall trade accuracy
CoinGpt NQ策略# CoinGpt NQ 策略(MACD·多因子·可金字塔)
## 概述
**CoinGpt NQ策略**是一套面向 **纳指期货 NQ(建议:`CME_MINI:NQ1!`)30 分钟** 的可运行交易策略。
核心以 **MACD 趋势动量** 为骨架,叠加 **EMA 趋势过滤**、**可选金字塔加仓**、**三种出场模式(固定 TP/SL、追踪、追踪+TP)** 与 **风控上限**,提供三套一键预设(Balanced / Trend / Scalper),满足不同市场状态与风险偏好。
> 适配:期货/连续合约;仅做多(本脚本版本)。
> 时间框架:**30m**(可在“仅在 30m 生效”开关控制)。
---
## 进场逻辑
* **信号触发**:`MACD 上穿 Signal`(并要求直方图连续上升 2 根)。
* **趋势过滤**:价格位于 `EMA(p_emaLen)` 上方,且 `MACD>0 & Signal>0`(可关闭)。
* **时间框架限制**:默认仅在 30m 有效(可关闭)。
## 出场逻辑
* **固定 TP/SL**:按百分比计算限价止盈与止损。
* **追踪止盈**:默认以 **ATR 偏移** 跟踪;
* **追踪 + TP**:在拖尾的同时设置上沿 TP。
* **反向保护**:`MACD 下穿 Signal` 时市价平仓。
> 出场模式在输入项 **「出场模式」** 选择:
> `Auto(by preset) / Fixed TP/SL / Trailing / Trailing + TP`
---
## 金字塔加仓(可选)
* 仅在已有多单且不利回撤达到阈值时触发;
* 最多 `p_maxAdds` 层;每层在 **上次加仓价** 基础上按 `p_addStep%` 回撤触发;
* 目的:**拉低均价、提高持仓性价比**;采用小步长、有限层数控制回撤风险。
---
## 风险管理
* **当日最大亏损**:`strategy.risk.max_intraday_loss(p_maxDailyDD, %权益)`
* **单笔头寸上限**:`strategy.risk.max_position_size(p_posCapPct)`
* **订单量**(策略属性):默认 **90% 权益**。
* 实盘更建议:Balanced≈**40%**、Trend≈**35%**、Scalper≈**30%**(在“策略属性 → 订单大小”中调整)。
---
## 三套预设(参数一键生效)
| 预设 | MACD(fast/slow/signal) | 趋势EMA | 金字塔 | 加仓步长 | 固定TP/SL(%) | 追踪(ATR倍数) | 单笔上限 | 当日亏损 |
| ---------------- | ---------------------- | ----- | --- | ----- | ----------------- | --------- | ---- | ---- |
| **Balanced(默认)** | 8 / 21 / 5 | 233 | 2 层 | 0.12% | TP 0.22 / SL 0.15 | 1.2× | 50% | 1.5% |
| **Trend** | 10 / 24 / 7 | 200 | 3 层 | 0.10% | TP 0.25 / SL 0.18 | 1.6× | 45% | 1.2% |
| **Scalper** | 6 / 19 / 4 | 100 | 关闭 | —— | TP 0.18 / SL 0.12 | 1.3× | 35% | 1.0% |
> 说明:
>
> * Balanced:均衡型,适合多数时期;
> * Trend:顺势拉伸,持仓更久、盈亏比更高;
> * Scalper:快进快出、高胜率、不过度叠仓。
---
## 使用建议
1. **品种/周期**:`CME_MINI:NQ1!`(或当季主力合约),**30m**。
2. **手续费**:本策略默认 **1 USD/合约**(在“策略属性”可按实盘成本调整)。
3. **成交精度**:建议在“策略属性 → 高级设置”勾选 **Bar Magnifier**,提升限价/拖尾成交模拟精度。
4. **仓位**:策略默认 90% 仅为展示;回测与实盘更建议 **30%\~40% 权益**。
5. **风险**:金字塔仅做轻量、有限层数;若市场极端震荡,适当降低单笔上限与当日亏损阈值。
---
## 输入项(TradingView 右侧面板)
* **参数预设**:`Balanced / Trend / Scalper`
* **仅在 30m 周期生效**:开/关
* **出场模式**:`Auto(by preset) / Fixed TP/SL / Trailing / Trailing + TP`
> 其余细节参数由预设自动注入,无需手动繁杂调整,**开箱即用**。
---
## 注意事项
* 本脚本为研究与教育用途,不构成投资建议。期货与杠杆交易风险高,请在可承受范围内使用。
* 预设适配历史统计特征,未来表现不保证;建议结合自身风控与账户规模,先小仓/纸面验证。
* 仅做多版本;若需要双向(多空)或加入 RTH(美股盘中)/HTF(更高周期确认)等扩展,请在评论区留言。
---
**作者注**:
* 本策略在 Pine v6 编写,避免了常见的 v6 语法踩坑(如 `strategy.risk.max_position_size()` 仅 1 参、`plot` 标题需常量、追踪需成对参数 `trail_price + trail_offset` 等)。
* 欢迎在评论区反馈你的回测截图(区间、手续费、订单量),我会根据数据给出更贴合你的参数档。
# CoinGpt NQ Strategy (MACD · Multi-Factor · Optional Pyramiding)
## Overview
**CoinGpt NQ Strategy** is a ready-to-trade system for **Nasdaq-100 futures (NQ; recommended: `CME_MINI:NQ1!`) on the 30-minute timeframe**.
It uses **MACD momentum** as the backbone, adds an **EMA trend filter**, optional **pyramiding**, and **three exit modes** (Fixed TP/SL, Trailing, Trailing+TP) with built-in risk caps. Three one-click presets—**Balanced / Trend / Scalper**—cover different regimes and risk appetites.
> Instruments: futures / continuous contract
> Direction: **Long-only** (this script version)
> Timeframe: **30m** (toggleable)
---
## Entry
* **Trigger:** `MACD` line crossing **above** `Signal`.
* **Trend filter (optional):** price above `EMA(p_emaLen)` and `MACD > 0 & Signal > 0`.
* **Timeframe guard:** by default, signals are valid on **30m** only.
## Exit
* **Fixed TP/SL:** percentage-based limit and stop.
* **Trailing:** ATR-based trailing offset (or percent).
* **Trailing + TP:** trailing stop **and** a take-profit cap.
* **Protective flip:** when `MACD` crosses **below** `Signal`, close the long.
> Choose exit mode in **Inputs → “Exit Mode”**:
> `Auto(by preset) / Fixed TP/SL / Trailing / Trailing + TP`.
---
## Pyramiding (optional)
* Adds only **against adverse pullbacks** from the last add price.
* Up to `p_maxAdds` layers; each layer triggers at `p_addStep%` pullback from the **previous add**.
* Goal: **improve average price** with **small steps & limited layers** to keep drawdowns controlled.
---
## Risk Management
* **Daily loss cap:** `strategy.risk.max_intraday_loss(p_maxDailyDD, % of equity)`.
* **Per-trade size cap:** `strategy.risk.max_position_size(p_posCapPct)`.
* **Order size (strategy properties):** default **90% of equity** (for display).
* Practical suggestion: Balanced ≈ **40%**, Trend ≈ **35%**, Scalper ≈ **30%** (set in Strategy Properties → Order size).
---
## Presets (one-click)
| Preset | MACD (fast/slow/signal) | Trend EMA | Pyramiding | Add Step | Fixed TP/SL (%) | Trailing (ATR) | Pos Cap | Daily DD |
| ---------------------- | ----------------------- | --------- | ---------- | -------- | ------------------------- | -------------- | ------- | -------- |
| **Balanced (default)** | 8 / 21 / 5 | 233 | 2 layers | 0.12% | TP **0.22** / SL **0.15** | **1.2×** | **50%** | **1.5%** |
| **Trend** | 10 / 24 / 7 | 200 | 3 layers | 0.10% | TP **0.25** / SL **0.18** | **1.6×** | **45%** | **1.2%** |
| **Scalper** | 6 / 19 / 4 | 100 | Off | — | TP **0.18** / SL **0.12** | **1.3×** | **35%** | **1.0%** |
> **Balanced:** all-weather, stable.
> **Trend:** holds longer and targets higher R multiples.
> **Scalper:** quick in/out, higher hit-rate, no stacking.
---
## Usage Tips
1. **Symbol/TF:** `CME_MINI:NQ1!`, **30m**.
2. **Fees:** default **\$1 per contract** (adjust to your broker in Strategy Properties).
3. **Execution realism:** enable **Bar Magnifier** (Strategy Properties → Advanced) for more accurate limit/trailing fills.
4. **Sizing:** the script defaults to 90% only to showcase behavior—use **30–40%** in realistic tests.
5. **Pyramiding:** keep layers small & capped. In choppy regimes, reduce `p_posCapPct` and `p_maxDailyDD`.
---
## Inputs (right-panel)
* **Param Preset:** `Balanced / Trend / Scalper`
* **30m-only:** on/off
* **Exit Mode:** `Auto(by preset) / Fixed TP/SL / Trailing / Trailing + TP`
> All other parameters are pre-wired by the chosen preset for **plug-and-play** operation.
---
## Notes & Disclaimer
* Educational use only—**not** financial advice. Futures and leverage carry substantial risk.
* Presets reflect historical characteristics; **future performance is not guaranteed**. Start small or paper trade first.
* This version is **long-only**; if you need a two-sided (long & short) variant or extras (RTH/HTF filters), leave a comment.
---
**Author Notes**
* Written in **Pine v6** with common pitfalls avoided (e.g., `strategy.risk.max_position_size()` takes **one** arg, `plot` titles are **const strings**, trailing requires `trail_price + trail_offset`).
* Share your backtest screenshots (period, fees, order size) and I can suggest **tighter, data-driven knobs** for your setup.
TA Darvas Box Test🎯 Core Logic
1-Darvas Box Breakouts/Breakdowns → Entry when price crosses above the Top Box (long) or below the Bottom Box (short).
2-Trend Filter (MavilimW) → Longs only when price is above MAVW, shorts only when below.
3-Momentum Confirmations → ATR spike and Volume spike must confirm breakout strength.
🛠 Position Sizing (MaTriangle – Martingale by Qty)
1-Starts with Base Qty.
2-On losing trades → step-up size using Qty Multiplier, capped by Max Steps & Max Qty Cap.
3-On winning trades → optional reset back to Base Qty.
⚠️ Martingale sizing can increase drawdowns — use carefully.
⏱ Trade Gating
1-Backtest Window: Only trades between selected From – To dates.
2-Trade Cap: Limit trades Per Day / Per Week / Per Month (auto reset).
3-One Position at a Time (pyramiding = 0).
📉 Exit Rules
1-Protective Stops:
2-Long → Stop at Bottom Box.
3-Short → Stop at Top Box.
Profit Safeguard: If in profit, exit when RVI crosses against trade.
1-No fixed TP → trades ride until Box stop or RVI exit.
🔔 Alerts (Options Workflow)
1-Static Alerts: Fire on confirmed long/short signals (compile-safe).
2-Dynamic Alerts: Send ATM strike info, Qty, and Martingale step.
3-Auto ATM Mapping: BANKNIFTY, NIFTY, FINNIFTY, MIDCPNIFTY detected automatically; fallback to manual step.
⚙️ Suggested Defaults
Darvas Box Length = 5
ATR Len = 14, ATR SMA = 14, Mult = 1.0–1.5
Volume SMA = 20, Mult = 1.5–2.0
Base Qty = 1, Mult = 2.0, Max Steps = 3
Trade Cap = Per Day, 10–30 trades
✅ Works on any symbol/timeframe.
⚠️ High-risk position sizing (Martingale). Backtest thoroughly and use with caution.
Swing H/L with EMAIndicator uses pivot points to mark swing highs (LH/HH) and swing lows (HL/LL),this strategy detects swing structure (HH/LL) and confirms them with EMA crossovers where a ❤︎ symbol will be added above swing H and below swing L.
A Buy signal is generated after the Last H is broken and a bullish signal appears. When the condition is met, the indicator will place a label ‘B’.
A Sell signal is generated after the Last L is broken and a bearish signal appears. When the condition is met, the indicator will place a label ‘S’.
Buy or Sell signals will be recalculated each time when H or L is broken.
BSL/SSL Sweep + FVG Strategy Jobin (c) The New York ATM Model is a structured intraday strategy designed to capture algorithmic stop-hunts and reversals during the New York session open. It focuses on liquidity sweeps—either Buy-Side or Sell-Side—followed by a confirmation using Fair Value Gaps (FVGs).
📊 RSI Swing Reversal Strategy with Volume Spike FilterHi , i did test that on Hbar time frame 5min. please let me know if i did miss something .85% win rate. please get back test.
What Will This Strategy Do?
Use RSI cross over/under its MA + Swing High/Low + optional Trend Filter.
Enter long on bullish signals.
Enter short on bearish signals.
Exit on opposite signals or optional take-profit/stop-loss.
CyberTrading - InsideBar Strategy 02This is a strategy tester for entries based on the Inside Bar candlestick pattern.
Special conditions are applied based on ATR.
It is designed for the CyberTrading students of CollegePips.
CyberTrading - InsideBar Strategy 01This is a strategy tester for entries based on the Inside Bar candlestick pattern.
Special conditions are applied based on ATR.
It is designed for the CyberTrading students of CollegePips.
Delta Drift Allocator - StrategySummary
Bar-close, drift-based allocation alerts that keep exposure centered around a user-set base with full compounding by default. One alert per bar close. Non-repainting. Invite-Only.
Description
Delta Drift Allocator monitors how far current exposure drifts from a reference profile. When drift exceeds your threshold, it issues a single bar-close instruction (BUY/SELL with quantity) to nudge exposure back toward center. The emphasis is path discipline—rules that react to swings without predicting direction—plus a simple one-alert workflow.
A start-sync input lets you align the script with your actual initial fill so subsequent sizes match your account. Profit handling supports Reinvest (compound) or Skim to base (bookkeep excess).
How to use (overview)
Add to chart (recommended timeframe: 4h).
Set Inputs: drift threshold, min notional, start method (Auto or Manual sync at your bar-close time + filled units).
Create one alert: This strategy → Any alert() function call, Once per bar close. Leave Message empty.
Execute externally: place BUY/SELL for exactly the shown qty (manual or your own webhook executor outside TradingView).
Note: A detailled manual is provided after purchase.
Why traders choose it
Bar-close discipline (no intra-bar churn, non-repainting)
Drift-responsive adjustments that can harvest parts of oscillations
Full compounding by default; optional “skim to base” bookkeeping
Start-sync to match real fills; minimal panel plots you can hide
Access (Invite-Only)
To request access, send me a PM on TradingView. You’ll receive detailled information about the process.
Note: Requests for older strategies are no longer processed—please refer to this release only.
Compliance
Signals only; the script does not place orders or read balances. Backtests are approximations and are not indicative of future results. Markets involve risk, including possible loss. Extended one-way advances can lag all-in exposure; starting right after strong rallies may show initial drawdowns.