MACD Histogram Strategy (Green Buy, Red Sell)This is a simple strategy based on the MACD histogram.
🟩 A long entry is triggered when the histogram crosses from red to green (bullish momentum starts).
🟥 The position is closed when the histogram crosses from green to red (bearish momentum starts).
Features:
- Customizable MA type: EMA or SMA
- Adjustable fast, slow, and signal lengths
- Plots MACD, Signal, and Histogram for visual reference
⚠️ This script is for educational and demonstration purposes only.
It does **not constitute financial advice**.
Please backtest thoroughly and use it at your own risk.
这是一个基于MACD直方图的简单策略。
🟩 当直方图由红变绿(看涨势头开始)时,触发多头入场。
🟥 当直方图由绿变红(看跌势头开始)时,平仓。
特点:
- 可自定义移动平均线类型:EMA或SMA
- 可调整快速、慢速和信号长度
- 绘制MACD、信号和直方图以供直观参考
⚠️ 此脚本仅用于教育和演示目的。
它**不构成财务建议**。
请进行彻底的回测,并自行承担使用风险。
指標和策略
淘宝店铺“加密资本”1. Only targeting the 15 minute level chart pancake strategy
2. Spot mode, the optimal solution for spot mode. Try to have as many pyramid patterns as possible
3. The current parameters do not need to be adjusted
Broke Degen Dynamic HFT/Trend BotThis strategy was born from a simple yet powerful question: How can we consistently catch the biggest moves in the market?
After extensive testing and iteration, we found that the most effective way to capitalize on large price movements is to maximize market exposure — essentially, to always have a position open. But with greater exposure comes greater risk, so we needed a system that could minimize risk while maintaining high exposure.
The solution? A hybrid scalping bot designed to ride trends for as long as possible, while making quick entries and exits when momentum shifts. The bot uses a unique logic that keeps positions open until a valid exit signal is triggered and immediately flips to the opposite side when the conditions reverse. When a potential large move is detected, the bot dynamically adjusts its exit strategy to lock in bigger gains.
Now, you might be wondering: Doesn’t flipping positions instantly risk giving up profits?
It’s a fair question — but remember, the core objective is to capture big moves. The purpose of this mid-move flip isn’t to maximize every minor gain, but to stay positioned for the larger move. Surprisingly, our results showed that this approach not only protected us during choppy conditions but also generated more than just breakeven while helping to catch majority of big moves.
🤖 Automated or Manual – Tailored to Your Style
This strategy is versatile — ideal for both automated trading and manual control:
Automated Mode:
In full automation, the bot can take around 669 trades in a 10-day period, generating approximately $60,000 in cumulative profit, assuming a 1-contract position size. It's built for high-frequency environments where precision and consistency matter.
Manual Mode:
For more selective traders, the strategy can be used with reduced frequency — about 120 trades in the same period, while still producing around $40,000 in profit. This allows traders to stay in control while benefiting from the system’s core logic.
⏱ Why 1-Minute Timeframe?
This strategy performs best on the 1-minute chart. Due to limitations in Pine Script (no access to live tick data), higher timeframes can lead to slippage when long candles trigger entries or exits and pine script executes on the candle close which is not representative of real market conditions. On lower timeframes, these inaccuracies are significantly reduced, making the bot’s signals far more accurate and efficient.
NOTE=
currently works best on GC for 1 minute time frame, the part that auto calculates calues for each asse is still under development.
SOL Daily Crypto StrategyTested on multiple parameters on AI algo specific for high probability wins on SOLANA daily TF.
Green Dots Strategy - FinalEnters when the cipher b prints dots respecting the threshold levels, and exits on the customizable opposite color dots.
Daily Close + RSI & EMA Filter (Improved)**Strategy Name:** Daily Close + RSI & EMA Filter (Improved)
**Brief Description:**
This strategy operates based on confirmed directional movement from the daily chart, filtering entries using EMA on the hourly timeframe, RSI, MACD, and volatility (ATR). The strategy is tailored for intraday and short-term trading, functioning on charts of any timeframe (recommended from 5 minutes and above), and focuses on trend dynamics with intelligent entry without looking ahead.
---
**Trading Logic:**
1. **Direction Signal (Core):**
The closing prices of the last two days are compared (daily close). If the current day's price is above the previous day's — a long position is considered. If below — a short position.
2. **EMA Filter:**
The EMA from the 1H timeframe checks whether the current price is above (long) or below (short) the average. This filters entries against the trend.
3. **Volatility Filter (ATR):**
Entry is permitted only with sufficient volatility. If the ratio of ATR to price exceeds a specified threshold — the signal is deemed significant.
4. **RSI Filter (Optional):**
Overbought/oversold conditions are filtered. A long position is possible if RSI > 50 but < overbought. A short position is possible if RSI < 50 but > oversold.
5. **MACD Filter (Optional):**
Additional momentum confirmation: long — if MACD > signal line, short — if MACD < signal line.
6. **Anti-Flood Protection:**
Opening a position is prohibited if a similar signal has occurred in the last 3 candles.
---
**Entry Conditions:**
-- **Long:** Daily candle growth + price above EMA + high volatility + RSI within acceptable range + MACD > signal
-- **Short:** Daily candle decline + price below EMA + high volatility + RSI within acceptable range + MACD < signal
**Exit Conditions:**
On signal reversal (direction change)
Close the current position if an opposite signal appears
---
**Configurable Parameters:**
- EMA Length (default: 50)
- ATR Length and Threshold (ATR/Close)
- RSI: Length, overbought and oversold levels
- Activation Flags for RSI and MACD
---
**Indicators and Visualization:**
- EMA 1H displayed on the chart (orange line)
- Entry markers: green triangles — long, red — short
- ATR, RSI, and MACD available in data window (can be displayed on separate panels)
---
**Advantages of the Strategy:**
- No "looking ahead": all data is sourced with lookahead=off and a shift of
- Suitable for manual trading and automation
- Utilizes multiple independent confirmations
- Versatile: applicable to any liquid assets (futures, crypto, stocks)
**Recommended Timeframe:** 5m–1h
**Recommended Trading Style:** Intraday / Short-term
**Testing:** The strategy demonstrates realistic results when all filters and constraints are activated
---
**Advice:**
Add stop-loss and take-profit if planning to trade automatically, or adapt them manually to the instrument's volatility.
Название стратегии: Daily Close + RSI & EMA Filter (Improved)
Краткое описание:
Эта стратегия торгует на основе подтверждённого направленного движения с дневного графика, фильтруя входы с помощью EMA на часовом таймфрейме, RSI, MACD и волатильности (ATR). Стратегия адаптирована под интрадей и краткосрочную торговлю, работает на графике с любым таймфреймом (рекомендуется от 5 минут и выше), и ориентирована на трендовую динамику с умным входом без заглядывания в будущее.
---
Торговая логика:
1. Сигнал направления (основа):
Сравниваются цены закрытия двух последних дней (daily close). Если цена текущего дня выше предыдущей — рассматривается лонг. Если ниже — шорт.
2. EMA-фильтр:
EMA с 1H таймфрейма проверяет, находится ли текущая цена выше (лонг) или ниже (шорт) средней. Это фильтрует входы против тренда.
3. Фильтр волатильности (ATR):
Вход разрешён только при достаточной волатильности. Если отношение ATR к цене выше заданного порога — сигнал считается значимым.
4. RSI-фильтр (по желанию):
Фильтруются перекупленные/перепроданные условия. Лонг возможен, если RSI > 50, но < overbought. Шорт — если RSI < 50, но > oversold.
5. MACD-фильтр (по желанию):
Дополнительное подтверждение импульса: лонг — если MACD > сигнальной линии, шорт — если MACD < сигнальной линии.
6. Анти-флуд защита:
Запрещается открытие позиции, если аналогичный сигнал уже был в последние 3 свечи.
---
Условия входа:
-- Лонг: рост дневной свечи + цена выше EMA + высокая волатильность + RSI в допустимом диапазоне + MACD > сигнала
-- Шорт: падение дневной свечи + цена ниже EMA + высокая волатильность + RSI в допустимом диапазоне + MACD < сигнала
Условия выхода:
По реверсу сигнала (смена направления)
Закрытие текущей позиции, если появляется противоположный сигнал
---
Настраиваемые параметры:
- EMA длина (по умолчанию: 50)
- Длина ATR и порог (ATR/Close)
- RSI: длина, уровни перекупленности и перепроданности
- Флаги активации RSI и MACD
---
Индикаторы и визуализация:
- EMA 1H отображается на графике (оранжевая линия)
- Метки входов: зелёные треугольники — лонг, красные — шорт
- ATR, RSI и MACD доступны в data window (можно вывести на отдельные панели)
---
Преимущества стратегии:
- Без «заглядывания в будущее»: все данные берутся с lookahead=off и сдвигом \
- Подходит для ручной торговли и автоматизации
- Использует несколько независимых подтверждений
- Универсальна: можно применять на любых ликвидных активах (фьючерсы, крипта, акции)
Рекомендуемый таймфрейм: 5m–1h
Рекомендуемый стиль торговли: Интрадей / краткосрок
Тестирование: Стратегия показывает реалистичные результаты при активации всех фильтров и ограничений
---
Совет:
Добавьте стоп-лосс и тейк-профит, если вы планируете торговать автоматически, или адаптируйте их вручную под волатильность инструмента.
Hiz_ManFX_Money_Printer🧠 Hiz_ManFx Money Printer — Precision-Powered Algorithmic Tool
The Hiz_ManFx Money Printer isn't just another indicator — it's a smart, adaptive tool engineered with sophisticated algorithms that analyze market behavior with surgical accuracy. It leverages complex mathematical logic and dynamic filtering to offer high-quality insights that can support informed trading decisions.
This tool is built for those who appreciate precision. It doesn't rely on simple signals — it reacts to nuanced changes in momentum, volatility, and trend structure using deeply refined computational logic. Whether you're watching for shifts in momentum or filtering out market noise, this indicator operates under the hood with intelligent automation.
💡 Please note: This is not financial advice. The indicator is a technical analysis tool designed for educational and informational purposes. Always do your own research and use proper risk management when trading any financial markets.
MMTools - Backtester❖ Overview
Backtester is a script implemented as a strategy, featuring multiple conditions and tools to offer an alternative way to work with Catcher. It supports both backtesting and algorithmic trading, allowing you to evaluate the indicator's performance on historical data for any instrument using the Strategy Tester.
❖ Settings
⚙️ Custom Conditions and Signals
This section is intended to provide flexibility when working with Catcher. (If you intend to use Catcher alone, this section can be disregarded). You may combine the primary indicator (Catcher) with additional custom indicators to define entry and exit signals. Simply add the custom indicator to your chart, display it and then select its name in the corresponding dropdown menu. By default, the 'Close' option is selected, meaning custom conditions are disabled.
Operator 'OR': An entry order is activated when either your custom signal or the primary signal occurs.
Operator 'AND': An entry order is activated only when both the custom and primary signals occur simultaneously.
If both 'AND' and 'OR' operators are used, enabling the 'Only Primary' option will apply the 'AND' operator only to the primary indicator.
Custom Exit: Allows the strategy to close a position based on a custom signal, in addition to standard exit conditions. The first condition met will trigger the exit.
Note: The strategy executes orders at the open of the next bar after the custom condition is met.
⚙️ Confirmation
When enabled, the strategy will enter a position only if a specified number of signals occur within a defined lookback period.
⚙️ Exits
Two types of exit mechanisms are available for take-profit and stop-loss:
Timeout: Sets a maximum duration (in bars) that a trade can remain open. If this limit is exceeded, the strategy will close the position.
Percentage-Based: Exit positions based on a specified percentage move.
⚙️ Start Date
Specifies the starting point for the backtest.
⚙️ Plotting
The green line represents the take-profit level, while the red line indicates the stop-loss level. Plotting is limited to the last 250 bars.
⚙️ Other Settings
Remember to configure additional parameters under the “Properties” tab, including commissions, slippage, and pyramiding. Default commission is set at 0.05%.
❖ Access
Please refer to the Author's Instructions field to request access to the script.
-----------------------------------------------------------
Disclaimer
The information provided by my scripts is for informational purposes only and does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making financial decisions.
Smart AI Reversal Hunter🧠 Smart AI Reversal Hunter: Precision Trading with Adaptive Intelligence
In the fast-moving world of technical trading, reacting swiftly isn’t enough—you must adapt intelligently. Enter the Smart AI Reversal Hunter, a next-generation trading strategy engineered to identify key market reversals with surgical accuracy, powered by adaptive volatility logic, multi-timeframe awareness, and a deep understanding of market structure.
Whether you're a scalper, swing trader, or systems developer, this strategy offers a powerful edge—filtering out market noise and zeroing in on high-conviction turning points without emotional bias.
________________________________________
🚀 Why Smart AI Reversal Hunter Stands Out
📈 Built for Turning Points
This strategy excels at catching early reversals, allowing you to enter positions before the crowd, with smart confirmation from momentum, fractals, and volume surges.
🧠 Adaptive Intelligence at the Core
At the heart of the system lies a dynamic trend engine that automatically recalibrates itself based on prevailing volatility. It slows down in quiet markets and speeds up in wild ones—mimicking how a human would adjust instinctively, but with mathematical consistency.
🧩 Multi-Layered Filtering
The strategy doesn’t rely on a single signal. Instead, it layers multiple confirmation systems to validate each trade:
Directional momentum
Breakout fractal structure
Volatility regime analysis
Volume confirmation
Macro-trend alignment from a higher timeframe
📊 Built-In Visual Dashboard
A sleek diagnostics panel sits quietly in the corner, showing you all the internal metrics—volatility state, momentum shifts, higher timeframe bias, and volume strength—so you’re never guessing.
________________________________________
🔍 Technical Description
📌 Core Engine: Adaptive Reversal Detector
Based on a custom smoothed trend indicator with triple-weighted filtering logic (a proprietary formula deliberately concealed here for uniqueness).
The length of this engine adapts to market volatility using a real-time ATR-to-SMA ratio, then clamps the value between minimum and maximum bounds to prevent overfitting.
This ensures the trend detector is neither too sluggish in explosive markets nor too reactive during sideways zones.
⚙️ Entry Logic
Bullish Entry: Triggered when the adaptive trend line crosses above its own historical value, alongside:
Positive momentum (Rate of Change > 0)
Price above recent fractal high
Price above lower Keltner Channel boundary
Not in a low-volatility regime
Higher timeframe confirming a bullish bias
Current volume exceeding average volume × multiplier
Bearish Entry: Symmetric to the above, in reverse.
🧰 Customization Tools
Toggle each filter (momentum, fractals, volume, etc.) individually
Choose between “Only Long”, “Only Short”, or “Long & Short” trading styles
Adjustable timeframes for higher-timeframe confirmation
Reversible volume strength criteria
📈 Exit Logic
Longs are closed on bearish signals (and vice versa), with optional logic for one-sided trading.
________________________________________
📌 Final Thoughts
In an era of overcomplicated indicators and noise-heavy signals, the Smart AI Reversal Hunter brings clarity and logic to the chart. It doesn’t chase candles. It listens, adapts, and then strikes with conviction.
Whether you're automating your trades or visually analyzing reversals, this strategy equips you with everything needed to stay ahead of the curve—and let your strategy think before it trades.
⚠️ Safety & Disclaimer Notice
The Smart AI Reversal Hunter strategy is designed for educational and research purposes only. While every effort has been made to optimize its logic for identifying potential market reversals, past performance is not indicative of future results.
Please keep the following safety points in mind before using this or any trading strategy:
📌 Not Financial Advice
This script does not constitute financial, investment, or trading advice. Always perform your own due diligence.
📌 No Guaranteed Profits
Markets are inherently uncertain. This strategy uses probabilistic logic—not prediction. Losses are possible, and trading carries risk.
📌 Consult a Professional Advisor
Before taking any live positions, especially with real capital, consult with a certified financial or technical advisor who understands your risk profile and financial goals.
📌 Test Before You Trade
Always backtest thoroughly and paper trade in real-time market conditions before deploying on live accounts.
📌 Understand the Logic
Blindly using automated strategies without understanding their conditions can lead to significant loss. Read the code, understand the filters, and adapt to your own trading style if necessary.
IFVG Advanced StrategyThis is a multi-timeframe mean-reversion strategy designed to capitalize on price returning to FVG zones after liquidity grabs. The visual elements make it easy to identify trading signals while the ATR-based stops adapt to market volatility.
IronBreaker High Performance Strategy (free trial)This is the free trial for the IronBreaker Strategy, which is a Paid Subscription strategy which offers high returns and low downside risk for both Coins and Stocks.
This trial version of the strategy currently allows to trade based on two tickers-coins (make sure to put the full name of the ticker):
INDEX:BTCUSD 1D Timeframe
MEXC:FARTCOINUSDT 4h Timeframe
You can test and use this trial version and trade based on it (at your own risk of course), you can even integrate its alarms with platforms like wundertrade to automate them
The idea is that you can get a feeling of how good it is, and maybe even make some money or lose less money on the process.
The full version is available for all the coins and all the timeframes, if you are interested contact me on X: x.com
📈 Supertrend + Volume Spike Strategy (AAPL Optimized)🚀 Overview
This strategy is specifically optimized for AAPL on the 45-minute timeframe, combining the Supertrend indicator with volume breakout confirmation and dynamic ATR-based trailing exits. Designed for high-frequency, low-drawdown performance, it maintains strong win rates with smart trade timing.
Whether you're trading tech stocks, indices, or crypto, this logic adapts well to trending markets and offers scalable position control for automated systems or manual traders.
🔍 How It Works
✅ Entry Conditions:
Supertrend flips bullish or bearish
Volume spike confirms move (volume > 1.3 × SMA(20))
Short cooldown to reduce noise
🔁 Exit Logic:
Trailing stop-loss based on ATR
Optional exit on opposite signal to lock gains or cut losses
📊 AAPL 45min Backtest Highlights
✅ Total P&L: +$278,454.67
✅ Profit Factor: 7.384
✅ Win Rate: 98.72%
✅ Drawdown: 1.15%
✅ Total Trades: 2,658
✅ Timeframe: 45-minute
✅ Symbol: AAPL (NASDAQ)
📌 Settings may be fine-tuned per asset or timeframe for maximum edge.
💡 Strategy Settings
ATR Period: 10
Supertrend: ATR = 10, Factor = 3.0
Volume Spike Threshold: 1.3 × SMA(20)
Cooldown Between Trades: 2 bars
Trailing Stop: 1.2 × ATR with offset
🧠 Generated by AI
This strategy was developed using an AI Pine Script Generator, trained to optimize trade logic for trend-based setups with visual clarity and risk control.
It combines real-time analytics with consistent logic tested across various assets and sessions.
🛠 How to Use
Add the script to AAPL 45m or similar trending asset
Adjust cooldown or trailing multiplier as needed
Enable alerts or automation for live setups
Test across assets like TSLA, BTC, QQQ, or ETHUSDT
💬 Final Thoughts
This system is ideal for trend-followers, breakout traders, and semi-automated setups. Use it as-is or evolve it with your own filters or dashboards.
Feedback and ideas are welcome — comment or reach out!
Trend Surge with Pullback FilterTrend Surge with Pullback Filter
Overview
Trend Surge with Pullback Filter is a price action-based strategy designed to enter strong trends not at the breakout, but at the first controlled pullback after a surge. It filters out noise by requiring momentum confirmation and low volatility conditions, aiming for better entry prices and reduced risk exposure.
How It Works
A strong upward trend is identified when the Rate of Change (ROC) exceeds a defined percentage (e.g., 2%).
Instead of jumping into the trend immediately, the strategy waits for a pullback: the price must drop at least 1% below its recent high (over the past 3 candles).
A low volatility environment is also required for entry — measured using ATR being below its 20-period average multiplied by a safety factor.
If all three conditions are met (trend + pullback + quiet volatility), the system enters a long position.
The trade is managed using a dynamic ATR-based stop-loss and a take-profit at 2x ATR.
An automatic exit occurs after 30 bars if neither SL nor TP is hit.
Key Features
- Momentum-triggered trend detection via ROC
- Smart pullback filter avoids overbought entries
- Volatility-based filter to eliminate noise and choppy conditions
- Dynamic risk-reward ratio with ATR-driven exit logic
- Time-limited exposure using bar-based exit
Parameter Explanation
ROC Length (10): Looks for short-term price surges
ROC Threshold (2.0%): Trend is considered valid if price increased more than 2%
Pullback Lookback (3): Checks last 3 candles for price retracement
Minimum Pullback % (1.0%): Entry only if price pulled back at least 1%
ATR Length (14): Measures current volatility
Low Volatility Multiplier (1.2): ATR must be below this multiple of its 20-period average
Risk-Reward (2.0): Target is set at 2x the stop-loss distance
Max Bars (30): Trade is closed automatically after 30 bars
Originality Statement
This strategy doesn’t enter at the trend start, unlike many momentum bots. Instead, it waits for the first market hesitation — a minor pullback under low volatility — before entering. This logic mimics how real traders often wait for a better entry after a breakout, avoiding emotional overbought buys. The combined use of ROC, dynamic pullback detection, and ATR-based environment filters makes it both practical and original for real-world trading.
Disclaimer
This strategy is intended for educational and research purposes. Backtest thoroughly and understand the logic before using with real capital.
3 EMA Trend Strategy (Locks Trailing Stop Tightening)How I Created a Smart Trading Strategy Using 3 EMAs + Trailing StopLoss with help of ChatGPT
Ever wondered if AI can really help with trading? I put it to the test by asking ChatGPT to build a strategy using 3 Exponential Moving Averages (EMAs). Here's what I got:
✅ Custom Pine Script
✅ Trend-based entry logic
✅ Clean exits using Trailing Stop Loss
✅ Backtested on multiple tickers (QQQ, NVDA, SPY, AAPL)
I wanted to say anyone create the strategies with their ideas. Just take help of chatGPT and tweak for better results.
Here’s a quick summary of what the strategy does:
Condition Action Taken
==============================================
EMAs aligned + pullback Enter LONG (Buy)
Trade reaches 10% profit Trailing Stop set to 5%
Trade reaches 20% profit Trailing Stop locked at 2%
Price drops to stop level Exit Trade
I've fine-tuned the code, which is available to public. It is been tested , see the performance on chart. More detailed description and shared all insights in my latest blog post on
eemanispace.com
Let me know your comments / feedback.
ShunK MFFSShunK Multi-Factor Flexible Strategy: Combines built-in moving averages (EMA, SMA, etc.) with up to 5 external indicator signals, generating buy/sell signals via AND/OR logic. Supports long/short trades, stop-loss/take-profit, hybrid exit mode, customizable signal intervals, and backtest periods, suitable for diverse trading needs.
ShunK 多因子灵活策略:结合内置均线(支持EMA、SMA等)和最多5个外部指标信号,通过AND/OR逻辑生成买卖信号。支持多空方向、止损止盈、混合模式平仓,灵活设置信号间隔与回测时间,适用于多样化交易需求。
EURUSD 90% Win Rate Strategy with Risk Control//@version=5
strategy("EURUSD 90% Win Rate Strategy with Risk Control", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
emaFast = ta.ema(close, 5)
emaSlow = ta.ema(close, 20)
rsi = ta.rsi(close, 14)
// Entry Conditions
longCondition = ta.crossover(emaFast, emaSlow) and rsi < 70
shortCondition = ta.crossunder(emaFast, emaSlow) and rsi > 30
// Risk Settings
accountBalance = 5000 // starting capital
maxLossPerTrade = 250 // risk 5% per trade
stopLossPerc = 0.01 // 1% stop loss
takeProfitPerc = 0.02 // 2% take profit
// Calculate position size dynamically
riskPerUnit = close * stopLossPerc
positionSize = maxLossPerTrade / riskPerUnit
// Entry & Exit Logic
if (longCondition)
strategy.entry("Long", strategy.long, qty=positionSize)
strategy.exit("TP/SL Long", from_entry="Long", limit=close * (1 + takeProfitPerc), stop=close * (1 - stopLossPerc))
if (shortCondition)
strategy.entry("Short", strategy.short, qty=positionSize)
strategy.exit("TP/SL Short", from_entry="Short", limit=close * (1 - takeProfitPerc), stop=close * (1 + stopLossPerc))
EURUSD 90% Win Rate Strategy with Risk Control//@version=5
strategy("EURUSD 90% Win Rate Strategy with Risk Control", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
emaFast = ta.ema(close, 5)
emaSlow = ta.ema(close, 20)
rsi = ta.rsi(close, 14)
// Entry Conditions
longCondition = ta.crossover(emaFast, emaSlow) and rsi < 70
shortCondition = ta.crossunder(emaFast, emaSlow) and rsi > 30
// Risk Settings
accountBalance = 5000 // starting capital
maxLossPerTrade = 250 // risk 5% per trade
stopLossPerc = 0.01 // 1% stop loss
takeProfitPerc = 0.02 // 2% take profit
// Calculate position size dynamically
riskPerUnit = close * stopLossPerc
positionSize = maxLossPerTrade / riskPerUnit
// Entry & Exit Logic
if (longCondition)
strategy.entry("Long", strategy.long, qty=positionSize)
strategy.exit("TP/SL Long", from_entry="Long", limit=close * (1 + takeProfitPerc), stop=close * (1 - stopLossPerc))
if (shortCondition)
strategy.entry("Short", strategy.short, qty=positionSize)
strategy.exit("TP/SL Short", from_entry="Short", limit=close * (1 - takeProfitPerc), stop=close * (1 + stopLossPerc))
MNQ EMA StrategyThis strategy is not perfected yet. ONE MINUTE TIMEFRAME
The goal is to take Longs above the 5 ema when price is above all the 200, 30, and 5 ema.
Short side is when candle closes below the 5 ema and price is below the 300, 30, and 5 ema.
I use candle range blocks for different time zones to avoid excess orders from being triggered. As well as blocks when stoploss is hit or after a profitable trade of certain ticks.
There is an RSI to avoid trades when there isn't too much movement.
My goal is to get an entry when price trades above the 5 ema and then next candle passes it by .25 instead of entering immediately. The stoploss as the low of candle before entry and TP as 3 times the stoploss. I've tried a million times to make it like this but I don't know how to use pine script or Code.
The sell side is basically the same, enter at candle close below 5 ema wait for low to get swept to enter and stoploss above previous high, with TP 3 times the stoploss.
Publishing in hopes anyone knows how to adjust this
CAUTION THIS STRATEGY WORKS WITH CURRENT PRICE ACTION DUE TO ME USING RECENT TICK COUNT RATHER THAN BASED ON CANDLES OR PERCENTAGES. THIS WILL ONLY WORK AS LONG AS MARKET MOVES AS IT HAS BEEN SINCE 2024. CME_MINI:MNQ1!
STM Cyber Strategy v1STM Cyber Strategy v1
Main Features
✅ Trading System
Supertrend Modified Indicator: Core component based on a modified Supertrend algorithm with enhanced signal filtering and trend confirmation.
Multi-level Take Profit System: Up to 5 configurable TP levels with customizable position sizing.
Adaptive Stop Loss: Signal line based or fixed percentage stop loss.
RSI Integration: Additional signal filtering and partial position closing based on RSI extremes.
✅ Alert System
Custom Text Alerts: Text notifications with customizable format.
JSON Data Transmission: Full data output via TradingView's native order-filled events.
✅ Take Profits & Stop Loss
Use Take Profits: Master toggle for take profit system.
TP Levels (1-5): Individual toggles and percentage settings for each take profit level.
Position Sizing: Configurable percentage of position to close at each take profit level.
Auto-distribute volume: Evenly distribute volume between active take profit levels.
Close partial position on RSI signals: Option to use RSI signals for partial exits.
Fixed SL: Toggle between fixed percentage and signal line-based stop loss.
Custom Alert Message: Fully customizable alert template with support for placeholders.
✅ Advanced Configuration
For volatile markets: Increase confirmation thresholds and enable regulated inertia.
For trending markets: Lower sensitivity value and use auto-distributed take profits.
For sideways markets: Increase sensitivity and use RSI-based partial exits.
Hammer + EMA Strategy with Tick-based SL/TPWhat This Script Does:
Detects Hammer (bullish reversal) and Inverted Hammer (bearish reversal) patterns
Requires a simple trend context (using 2 bars back)
Confirms price position relative to EMA 50
Applies tick-based SL and TP
Plots buy/sell signals on chart with emoji labels
Contrarian PRO - Smart MoneyContrarian PRO - Smart Money" for TradingView detects liquidity sweeps and CHoCH signals to enter against the crowd, with dynamic TP/SL based on ATR and proper risk management per trade.
You can test it on BTC or gold using the 1H or 30M timeframe.