5-8-13 EMAs Strategy (Andrew's Trading Channel)============
ENGLISH
============
- Description:
This strategy was designed by "Andrew's Trading Channel" (credits to him for the base strategy).
A lot of improvements have been added to the strategy, more conditions, trailing stop, custom stop loss and take profit, everything explained below.
- CONDITIONS FOR ENTERING A LONG:
EMA 5 crossovers EMA 8.
- EXIT LONG:
EMA 8 crossovers EMA 8 and closing price goes below EMA 13.
- CONDITIONS FOR ENTERING SHORT:
EMA 8 crossovers EMA 5.
- EXIT SHORT:
EMA 5 crossovers EMA 8 and closing price goes above EMA 13.
- Visual:
All EMAs are visible (5, 8 and 13 periods) with different and customizable colors/width.
Position start price, take profit, stop loss and trailing stop (if present) are shown automatically.
Background color shows green when LONG conditions are met (and of course, position is opened on the next candle), same for SHORT but red.
- Usage and recommendations:
As this is a coded strategy, you don't even have to check for indicators, just open and close trades as the strategy shows.
There're various customizable settings like optional take profit/stop loss, trailing stop (both based on ATR or any of the EMAs), open only LONGs/SHORTs or both, date range...
Take profit and stop loss ATR default values have been tested for scalping on 5 min charts, however feel free to check strategy results and increase the winning rate/profit for your favorite asset.
- Customization:
As usual I like to make as many aspects of my indicators/strategies customizable, indicators, colors etc., feel free to ask if you feel that something that should be configurable is missing or if you have any ideas to optimize the strategy.
============
ESPAÑOL
============
- Descripción:
Esta estrategia fue diseñada por "Andrew's Trading Channel" (créditos a él por la estrategia base).
Se han añadido muchas mejoras a la estrategia, más condiciones, trailing stop, stop loss y take profit personalizados, todo explicado a continuación.
- CONDICIONES PARA ENTRAR EN LONG:
Cruce de EMA 5 con EMA 8 ascendente.
- SALIR DE LONG:
Cruce de EMA 8 con EMA 5 ascendente y el precio de cierre se sitúa por debajo de la EMA 13.
- CONDICIONES PARA ENTRAR EN SHORT:
Cruce de EMA 8 con EMA 5 ascendente.
- SALIR DE SHORT:
Cruce de EMA 5 con EMA 8 ascendente y el precio de cierre se sitúa por encima de la EMA 13.
- Visual:
Todas las EMAs son visibles (5, 8 y 13 períodos) con colores/anchos y personalizables.
El precio de inicio de la posición, el take profit, el stop loss y el trailing stop (si están presentes) se muestran automáticamente.
El color de fondo es verde cuando se cumplen las condiciones de LONG (y por supuesto, la posición se abre en la siguiente vela), lo mismo para SHORT pero en rojo.
- Uso y recomendaciones:
Como esta es una estrategia programada, ni siquiera tienes que comprobar los indicadores, sólo abrir y cerrar las operaciones como te muestra la estrategia.
Hay varios ajustes personalizables como el take profit/stop loss opcional, el trailing stop (ambos basados en el ATR o en cualquiera de las EMAs), abrir sólo LONGs/SHORTs o ambos, rango de fechas...
Los valores por defecto del take profit y el stop loss ATR han sido probados para scalping en gráficos de 5 minutos, sin embargo, siéntase libre de comprobar los resultados de la estrategia y aumentar la tasa de ganancia / beneficio para su activo favorito.
- Personalización:
Como siempre me gusta hacer personalizables todos los aspectos de mis indicadores/estrategias, indicadores, colores, etc., siéntase libre de preguntar si cree que falta algo que debería ser configurable o si tiene alguna idea para optimizar la estrategia.
Recherche dans les scripts pour "scalping"
MZ HTF HFT ROCit Bot - Non Repainting Scalper v1.2 ADX RSI MOM This is a new iteration based on my Momentum trading bot.
This is an original script meant to be a high frequency trader that works on higher time frame calculations.
I came up with the idea that using calculus I can figure out the actual rate of change and momentum with different calculations than the momentum indicator that is provided by trading view. Once momentum is shifted on a small time frame, it will provide an entry signal. The script is meant to be used on an algorithmic trading system for scalping purposes. It should be run on a one minute time frame. Unfortunately due to various plotting constraints in Pinescript, you cannot plot the rate of change and momentum and price in the same pane. To counter this, I have a showdata toggle to give you values of the indicators at each entry.
This version has two main entry settings toggled with a checkbox. There is the ROC (rate of change) version and the MOM (momentum) entry signals.
The rate of change version is meant to take a look at your moving average and try to trigger when it hits a certain rate of change point. This can be helpful if you rather play it safer. I have noticed that you can get slightly better entry points but also does not give you as many entries. The momentum algorithm will give you faster entry points and might work best with a slight offset (use your back test to help you figure it out).
I have started to add tooltips to help you along. If you have suggestions please let me know.
How does it work?
Let's just assume that you are looking at a one minute chart. I recommend using the one minute for bots because it will give you the fastest execution for entries. Pinescript has an issue where the signal is not usually sent until the end of the bar/beginning of next bar. If the signal was triggered at the beginning of a 15 minute bar, it might not actually send the signal until the following 15 minute bar. If you are trading on small time frames, this can make all the difference. If you are using an algo platform that trailing stops, stop losse, take profits, etc. I would recommend you use that platform to close your trade. The close trade message will work, but pinescript does not know the exact entry price you received, so if you are trying to collect small profits, it is best that intermediary platform does that calculation for you. If you are dealing with larger moves, instead of small 1-3% scalps, you are probably fine to use the close message setting from pinescript.
Ok, so to take an example. I like to use the 3L and 3S tokens on Kucoin. This gives you a lot of volatility to work with compared to other tokens and coins. However, it can also meas that you are likely taking a higher risk. However, there are some things that can help with that (more on that later).
So we have a token we want to run, and have it on the 1m chart.
First, be sure that all of your filters are OFF when you start playing with the back test. This allows you to see how to best optimize the bot.
Use the show data to show you additional data when you are backtesting. This can allow you to try to filter out results or market conditions that do not work. I typically work with the RSI and use the 30 minute and 15 minute RSIs. I make sure that it is trading within a certain band - about 40-75. You can try the inverse and only buy during really low RSI's as well.
www.dropbox.com
Find the source of your data with the variant drop down. You can use any time frame, open, close. high, low, olc4. Open is pretty much guaranteed to not have any repainting issues - although all the other calcs use a custom isbarconfirmed security repaint calculation. I have been finding that Open and SMA work well, but feel free to explore. If you use a source like open, close, high, low, etc - the interval will not change anything further. If you use a variant such as an sma, you should try to find an interval that works well for that token. For instance, try an sma of 8-11 minutes and see which gives you the best backtest result without changing anything else. Offset ALMA/LSMA parameters are only used for those specific variants. These specific parameters will also affect the ALMA and LSMA if you use that variant in the trend filter. In other words, you can skip these if you are not using those types of moving averages.
www.dropbox.com
Configure the ROC and MOM intervals. If you are using a source such as open, close, etc- this is where you set the interval for your change. So consider using OHLC4 or a interval of 5 thru 15 and see what works best. The Momentum inverval usually works best in the 2-5 bars. There is a custom calculation I added in to try to filter out false entries as momentum is waning. This calculation works best in 2-5 bar interval.
Configure the trigger point and offset. If you are using rate of change, the best settings will likely be between -1 to 0.5. If you are using momentum, you will likely want -20 to 10. This is where you will notice the entries will shift a bit. Try to find a balance between your backtest settings and actually finding what you thin will be the best entries based on a slight delay from trading view, to algo, to your trading platform. This can likely be a minute (maybe even) or so- so be sure to not get too caught up between the backtest results and be sure to finesse the entries to actually fit nicely - maybe a bar earlier than you would likely think. If your entries are coming in too early, you can use the offset to delay your entry by a few bars. This is both science and an art form- don't get too caught up on the back test results as that is based on having all the data tha already transpired, it's not based on how it will actually perform during deployment.
Take profit and stop loss. This should be self explanatory. This script can toggle between static take profit and a trailing profit. For scalping, you will likely want to limit it below 2% to get a good win ratio. Stop loss should be at least 5-6% for these types of 3L/3S tokens to give the strategy some room to move (if the token goes down 2% before it shoots back up, the price will go down 6%). This does not yield the best R/R ratio from a traditional trader perspective, but the statistical probabilities are in your favor for these events will happen. If you have better ideas for how to set this all up, feel free to contribute your ideas in the comments as we can all learn from each other. You can definitely set a much tighter stop loss with a larger take profit to get a lower win rate but in turn might get much better returns. It's all up to you.
FILTERS www.dropbox.com
These filters require you to know a bit about each indicator and how you want to use them. I will only go over the general idea.
Variant Filter - this is especially useful if you want to trade above a moving average. Say for instance you only want to take trades when we are over the 100 Day moving average. Or above a 30 minute, 30 bar EMA, etc. Although originally ported over from my other scripts, this is not a filter that I use often in conjunction with this script.
RSI - perhaps you want to buy when we are below the 30 line on the 30 minute RSI, or we want only want to have the strategy work when we are above the 50 RSI, this can all be configured here. I typically like to try a few different rationales here.
Now with brand NEW ADX filter - this is a brand new idea that seems to work rather well. Based on your ADX settings you can also turn on the "only uptrend" which will try to calculate if you are in an uptrend based on your ADX config. Please keep in mind that uptrend is based relatively on the ADX settings.
- There is a sprinkle of RSI magic in the entry signal to make sure that rsi is not declining in the calculation, so this can affect how many entries you get.
Some other tips:
Forward test.
Set up your algo bot on a one minute interval.
Set up take profit and stop loss on your algo trading platform.
Don't use the exact settings as your backtest, maybe try a slightly more conservative approach from the algo trading platform to make sure you are within range of triggering your events with a slight delay from signal to execution. If you have a 1.6% take profit, perhaps try 1.5% on your platform first.
By using these scripts you agree that you are trading at your own risk. I make no guarantees of returns or results. I just provide tools to help you trade better. However, I hope this ROCit will take you to the moon. And if it does, be sure to give me a shout as well as some tips of your own.
Send me a message with any questions or suggestions.
Customizable Non-Repainting HTF MACD MFI Scalper Bot Strategy v2Customizable Non-Repainting HTF MACD MFI Scalper Bot Strategy v2
This script was originally shared by Wunderbit as a free open source script for the community to work with. This is my second published iteration of this idea.
WHAT THIS SCRIPT DOES:
It is intended for use on an algorithmic bot trading platform but can be used for scalping and manual trading.
This strategy is based on the trend-following momentum indicator . It includes the Money Flow index as an additional point for entry.
This is a new and improved version geared for lower timeframes (15-5 minutes), but can be run on larger ones as well. I am testing it live as my high frequency trader.
HOW IT DOES IT:
It uses a combination of MACD and MFI indicators to create entry signals. Parameters for each indicator have been surfaced for user configurability.
Take profits are now trailing profits, and the stop loss is now fixed. Why? I found that the trailing stop loss with ATR in the previous version yields very good results for back tests but becomes very difficult to deploy live due to transaction fees. As you can see the average trade is a higher profit percentage than the previous version.
HOW IS MY VERSION ORIGINAL:
Now instead of using ATR stop loss, we have a fixed stop loss - counter intuitively to what some may believe this performs better in live trading scenarios since it gives the strategy room to move. I noticed that the ATR trailing stop was stopping out too fast and was eating away balance due to transaction fees.
The take profit on the other hand is now a trailing profit with a customizable deviation. This ensures that you can have a minimum profit you want to take in order to exit.
I have depracated the old ATR trailing stop as it became too confusing to have those as different options. I kept the old version for others that want to experiment with it. The source code still requires some cleanup, but its fully functional.
I added in a way to show RSI values and ATR values with a checkbox so that you can use the new an improved ATR Filter (and grab the right RSI values for the RSI filter). This will help to filter out times of very low volatility where we are unlikely to find a profitable trade. Use the "Show Data" checkbox to see what the values are on the indicator pane, then use those values to gauge what you want to filter out.
Both versions
Delayed Signals : The script has been refactored to use a time frame drop down. The higher time frame can be run on a faster chart (recommended on one minute chart for fastest signal confirmation and relay to algotrading platform.)
Repainting Issues : All indicators have been recoded to use the security function that checks to see if the current calculation is in realtime, if it is, then it uses the previous bar for calculation. If you are still experiencing repainting issues based on intended (or non intended use), please provide a report with screenshot and explanation so I can try to address.
Filtering : I have added to additional filters an ABOVE EMA Filter and a BELOW RSI Filter (both can be turned on and off)
Customizable Long and Close Messages : This allows someone to use the script for algorithmic trading without having to alter code. It also means you can use one indicator for all of your different alterts required for your bots.
HOW TO USE IT:
It is intended to be used in the 5-30 minute time frames, but you might be able to get a good configuration for higher time frames. I welcome feedback from other users on what they have found.
Find a pair with high volatility (example KUCOIN:ETH3LUSDT ) - I have found it works particularly well with 3L and 3S tokens for crypto. although it the limitation is that confrigurations I have found to work typically have low R/R ratio, but very high win rate and profit factor.
Ideally set one minute chart for bots, but you can use other charts for manual trading. The signal will be delayed by one bar but I have found configurations that still test well.
Select a time frame in configuration for your indicator calculations.
Select the strategy config for time frame (resolution). I like to use 5 and 15 minutes for scalping scenarios, but I am interested in hearing back from other community memebers.
Optimize your indicator without filters : customize your settings for MACD and MFI that are profitable with your chart and selected time frame calculation. Try different Take Profits (try about 2-5%) and stop loss (try about 5-8%). See if your back test is profitable and continue to optimize.
Use the Trend, RSI, ATR Filter to further refine your signals for entry. You will get less entries but you can increase your win ratio.
You can use the open and close messages for a platform integration, but I choose to set mine up on the destination platform and let the platform close it. With certain platforms you cannot be sure what your entry point actually was compared to Trading View due to slippage and timing, so I let the platform decide when it is actually profitable.
Limitations: this works rather well for short term, and does some good forward testing but back testing large data sets is a problem when switching from very small time frame to large time frame. For instance, finding a configuration that works on a one minute chart but then changing to a 1 hour chart means you lose some of your intra bar calclulations. There are some new features in pine script which might be able to address, this, but I have not had a chance to work on that issue.
StocasticRSI EMAs ATR StrategyA scalping based strategy thats works well with EUR/USD 30 minute time frame.
This strategy uses stochasticRSI for trade entry. Uses two exponential moving averages for trend detection. The strategy uses Average True Range for stop loss and for two profit targets.
We only trade with the trend if the 50 period exponential moving averages is above the 200 period exponential moving averages. StocasticRSI must cross below 30 level by default for a long entry if the rend is up. Likewise with a short entry the stochasticRSI must crossover above 70 level and if the trend is down.
This script does not trail your stop loss as I have noticed it does not give me good results. Stop loss is a fix stoploss based on Average True Range and so are the profit targets.
This script has risk management, it risk a certain percent of the inputed capital amount in the setting. See settings for more details.
Green line is 50 period exponential moving averages and red line is the the 200 period exponential moving average. Blue line is stoploss for short trade and black line stop loss for buy trade.
Since this is a scalping strategy be caution with the commission and slippage. I have inputed 1 for commission and 1 for sllipage.
Many Thanks,
Honest Trader
Crypto EMA Trend Reversal StrategyThis is an EMA crossover strategy which involves 5 EMAs to trigger trades. The strategy has two take profit settings and uses a stop loss.
TP1 and SL are based on ATR and TP2 is an EMA crossover.
The strategy goes both long and short and the default settings work particularly well as a scalping strategy for ETHUSDT on the 5M time frame.
I have also created another version with tweaked settings for scalping LINKUSDT on the 5M with very similar results.
There is an option to add a volume condition parameter within the script on lines 26-28 which can be added to the end of lines 34-35 in the following format: and vol_cond
I personally don't currently use the volume condition parameter.
Bitcoin (BTC) Scalp / Short-term Short IndicatorThe purpose of this scalping Indicator is to help identifying Sell signals for short term trades on Bitcoin (Spot, Features, etc.) .
This script is working with more indicators and everything is balanced by hard work on (back)testing.
Result for users is a simple signal to SELL.
You can use it as easy indicator in your graph or create alerts.
I have the best results on 1min graph, with leverage and stop-loss feature.
This is my own version of scalping Sell Script / Indicator, which is a combination of few indicators, for example RSI , BB and price levels (actual and average) and works on standard candles.
SELL signal paints above the candle and you can set your target / trailing / stop-loss in the settings and check how it works in Strategy Tester.
Settings of this Indicator:
Take Profit
Stop Loss
Trailing Stop Loss
Trailing Stop Loss Offset
Initial Capital
Base Currency
Order size
Pyramiding
Commissions
Slippage
Average price lines (colors and visibility)
Plot background
These signals can be often observed at the beginning of a strong move, but there is a significant probability that these price levels will be revisited at a later point in time again.
Therefore these are interesting levels to place limit orders.
A Sell signal is defined as the last up candle before a sequence of down candles.
In my trading settings I have more but small positions, one safety limit order (for price averaging = better entry - easier close in profit) and stop-loss.
Sometimes trailing-profit feature have very nice profits.
Settings depends on your own money-management and free capital.
Don't ignore UP / DOWN trend. For UP trend I have an Indicator too (check my profile).
In addition to the upper/lower limits of each line, also average value is marked as this is an interesting area for price interaction and better view.
PM me to obtain access, more informations or support.
NOTICE: By requesting access to this script you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script.
Bitcoin (BTC) Scalp / Short-term Long IndicatorThe purpose of this scalping Indicator is to help identifying Buy signals for short term trades on Bitcoin (Spot, Features, etc.) .
This script is working with more indicators and everything is balanced by hard work on (back)testing.
Result for users is a simple signal to BUY .
You can use it as easy indicator in your graph or create alerts.
I have the best results on 1min graph, with leverage and stop-loss feature.
This is my own version of scalping Buy Script / Indicator, which is a combination of few indicators, for example RSI, BB and price levels (actual and average) and works on standard candles .
LONG signal paints below the candle and you can set your target / trailing / stop-loss in the settings and check how it works in Strategy Tester .
Settings of this Indicator:
Take Profit
Stop Loss
Trailing Stop Loss
Trailing Stop Loss Offset
Initial Capital
Base Currency
Order size
Pyramiding
Commissions
Slippage
Average price lines (colors and visibility)
Plot background
These signals can be often observed at the beginning of a strong move, but there is a significant probability that these price levels will be revisited at a later point in time again.
Therefore these are interesting levels to place limit orders.
A Buy signal is defined as the last down candle before a sequence of up candles.
In my trading settings I have more but small positions, one safety limit order (for price averaging = better entry - easier close in profit) and stop-loss.
Sometimes trailing-profit feature have very nice profits.
Settings depends on your own money-management and free capital.
In addition to the upper/lower limits of each line, also average value is marked as this is an interesting area for price interaction and better view.
PM me to obtain access, more informations or support.
NOTICE: By requesting access to this script you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script.
RSPRO StrategyStrategy for RSPRO indicator
Based on resistance/support and bollinger band fluctuations this indicator also has filter with x bars after RSI overbought/oversell zones from settings.
There are two types of entries and signals: early (usually before trend changes) and main (when trend started to reverse)
Fits for BTC and any altcoins. And any assets. Good for both scalping and position trading (depends on timeframe that you use)
Best use it with big timeframes: 45 and 90min, 2 and 4 hours for position trading.
For scalping 5-30min timeframes are good too.
In Script settings you can specify:
1) RSI period, 14 by default.
2) Show early entries (squares), enabled by defaults.
3) Show main entries (triangles), enabled by defaults.
4) Enable/Disable filter to show main entries only after RSI overbought/oversell regions
Disabled by defaults and RSI is 67 for upper zone and 33 for lower zone.
You can also specify how many bars back before current bar this filter must do. It's 10 by default, you can vary it up to 90.
+With customisable start/end date, take profit and stop-loss.
This is invite only script. PM me if you want to test it.
ck - CryptoSniper Longs Only (Strategy) v1Hey all,
This is a new script I have been working on and is in Beta testing stage.
It is best used for scalping 1/3/5/10/15 minutes.
Default settings are great for scalping, changing the “Period” will allow you to tweak for swing trades.
To use manually, you will get a Green triangle to alert you to be prepared to place an order.
This will happen 1 candle before the strategy paints an “open long” label on the chart.
BB+AO STRATto be used with AO indicator, based on forex strat --
www.forexstrategiesresources.com
works on 1/3/5/15/30 candles, buy signals are best when the black 3 fast ema crosses up through the red mid band
BB+AO STRATto be used with AO, based on forex strat --
www.forexstrategiesresources.com
works on 1/3/5/15/30 candles
MonkHey all!
I am back again with another script to scalp the ES! "Monk" is my newest scalping script that is the result of several weeks of R&D. This script was designed specifically for trading on 1-minute charts on a specific instrument.
As some of you will remember, I published several scalping scripts months ago that had very favorable profit factors. Of these scripts, the only one to truly stand the test of time was my "Little Scalper" script. In the creation of "Monk" I believe I have come up with another script that has the workings of a strategy that can remain profitable forever.
In this script I have employed the use of VWAP but in a very non-conventional way. I have also employed several other filters that will remain under wraps. Unlike my other scripts, "Monk" has a defined profit target AND a defined stop loss (Little Scalper has no stop loss). As always, this script DOES NOT repaint. If you would like access, please leave a comment. I will open up access to this script for the next 1-2 weeks for parties who are interested.
On another note, many users have messaged me about access to "Little Scalper". I am considering selling access to "Little Scalper" on a monthly basis for those who are interested.
Best,
-Ian
趋势Scalping(多时间框架动能策略)策略概述
本策略是一个基于多时间框架动能的短线交易策略,通过结合短期与长期趋势指标、RSI超买超卖判断以及时间过滤机制,在趋势明确时入场,并在特定条件或时间点退出交易。策略适用于股票、期货、加密货币等高频波动的市场。
输入参数说明
数据源(Source)
默认使用 hl2(最高最低价的平均值),也可选择其他价格数据。
短期趋势周期(Short Term Trend)
默认值为5,用于计算短期RSI,捕捉近期价格动量的变化。
长期趋势周期(Long Term Trend)
默认值为60,用于计算随机指标(Stochastic)的周期,判断中长期趋势方向。
长期趋势平滑周期(Smooth Long Term Trend)
默认值为13,对长期随机指标进行平滑处理,减少噪音。
近期回调检测周期(Clear Short Term Pullback Appears Recently)
默认值为15,用于检测短期是否出现明显回调。
RSI超卖阈值(Threshold of Short Term Pullback Clear)
默认值为35.0,RSI低于该值视为短期超卖,可能出现反弹。
RSI回调结束阈值(Threshold of Short Term Pullback End)
默认值为50.0,RSI回升至此表示短期回调结束。
条件失效时退出(Exit if Reason Over)
若启用,当入场条件不再成立时自动平仓。
交易时间范围
可设置策略运行的开始与结束时间(以小时和分钟为单位),仅在指定时间段内交易。
策略逻辑
指标计算:
随机指标(Stochastic):基于长期周期计算,反映价格在近期区间内的位置。
平滑随机值(y_k):对随机指标进行移动平均平滑处理。
RSI指标:基于短期周期计算,反映近期价格动量的强弱。
多空判断:
多头信号(y_upper):
当平滑随机值高于50、RSI高于结束阈值,且近期出现明显超卖回调时,触发做多信号。
空头信号(y_lower):
当平滑随机值低于50、RSI低于结束阈值,且近期出现明显超买回调时,触发做空信号。
时间过滤:
策略仅在用户设定的时间范围内(例如7:00至15:10)运行,避免在波动性较低或非主力交易时段操作。
强制平仓机制:
每天下午16:10(或指定时间区间)强制平仓所有头寸,避免隔夜风险或尾盘波动。
图表显示
策略在副图中绘制以下三条线:
随机指标(红色)
平滑随机值(蓝色)
RSI指标(黄色)
水平线50:作为多空分界线参考。
使用建议
本策略适合在流动性高、波动性强的市场中运行。
建议配合止损机制使用,以控制单笔交易风险。
用户可根据不同品种调整参数周期和阈值,优化入场时机。
Strategy Overview
This is a short-term trading strategy designed to capitalize on momentum shifts within a broader trend. It combines multiple technical indicators across different timeframes—including Stochastic, RSI, and custom trend logic—to generate entry and exit signals. The strategy incorporates a time filter to operate only during specified high-liquidity hours and includes a mandatory end-of-session close-out to avoid overnight risk. It is suitable for volatile markets like equities, futures, and cryptocurrencies.
Input Parameters
Source
The price data used for calculations. Default is hl2 (the average of high and low prices).
Short Term Trend (x_len_a)
The period for the short-term RSI calculation. Default is 5. Used to capture recent price momentum.
Long Term Trend (x_len_b)
The period for the Stochastic Oscillator calculation. Default is 60. Defines the medium-to-long-term trend context.
Smooth Long Term Trend (x_k_b)
The smoothing period applied to the Stochastic value (K). Default is 13. Reduces noise for a clearer trend signal.
Clear Short Term Pullback Appears Recently (x_changk)
The lookback period to identify a recent significant pullback. Default is 15.
Threshold of Short Term Pullback Clear (x_rsi_ct)
The RSI level indicating an oversold (for longs) or overbought (for shorts) condition. Default is 35.0.
Threshold of Short Term Pullback End (x_rsi_ft)
The RSI level signaling that the short-term pullback has concluded and momentum is reversing. Default is 50.0.
Exit if Reason Over (x_exit_if_reason_over)
A boolean switch. If enabled, the strategy will automatically close a position if the original entry condition is no longer valid.
Time Filter (Start/End Hour & Minute)
Defines the specific intraday window during which the strategy is active (e.g., 7:00 to 15:10). All trades are initiated and managed only within this window.
Strategy Logic
Indicator Calculation:
y_stoch: The raw Stochastic Oscillator value calculated over the x_len_b period.
y_k: A smoothed version of the Stochastic (y_stoch) using a Simple Moving Average with period x_k_b.
y_rsi: The Relative Strength Index calculated on the Source price over the short-term period x_len_a.
Entry & Exit Conditions:
The core logic generates a composite signal (y_upper for long, y_lower for short) based on three components:
The deviation of the smoothed Stochastic (y_k) from its midpoint (50).
The deviation of the RSI (y_rsi) from its pullback-end threshold (x_rsi_ft).
The extremity of the recent RSI move compared to the pullback-clear threshold (x_rsi_ct) over the x_changk period.
Long Entry (LE): Triggered when the composite signal y_upper is greater than 0 AND the current time is within the allowed trading window.
Short Entry (SE): Triggered when the composite signal y_lower is less than 0 AND the current time is within the allowed trading window.
Conditional Exit: If x_exit_if_reason_over is true, long positions are closed if y_upper <= 0, and short positions are closed if y_lower >= 0.
Time-Based Filter:
The strategy only evaluates entries and exits if the current bar's time falls within the user-defined start_time and end_time range.
Mandatory Close-Out:
A critical risk management feature: All open positions are automatically closed at 16:10 (4:10 PM) based on the chart's timezone, ensuring no positions are held overnight or into the late session.
Plotting
The strategy plots three key series in the indicator pane:
Stochastic (y_stoch): Red line.
Smoothed Stochastic (y_k): Blue line.
RSI (y_rsi): Yellow line.
A hline at 50 serves as a visual midpoint reference for both Stochastic and RSI.
Usage Recommendations
This strategy performs best in markets with high volatility and strong trending characteristics.
It is highly recommended to use this script with a brokerage account that supports and enforces stop-loss orders on the strategy's behalf, as the script itself does not calculate stop-loss levels.
Parameters, especially periods and thresholds, should be optimized for the specific asset and timeframe being traded.
Always conduct rigorous backtesting and forward testing before deploying capital.
TW fx Algo BUY/Sell NEW✅ Best For:
Short-term scalping on Gold (XAUUSD).
Traders who prefer small, frequent profits with strict risk control.
Works best in trending or volatile markets (filters out sideways conditions)
TW FX ALGO BUY & SELL✅ Best For:
Short-term scalping on Gold (XAUUSD).
Traders who prefer small, frequent profits with strict risk control.
Works best in trending or volatile markets (filters out sideways conditions).
Candle Power Pro – Engulfing + RSI Smart Strategy📌 Candle Power Pro – Engulfing + RSI Smart Strategy
Candle Power Pro is a high-performance trading strategy that combines the strength of engulfing candlestick patterns, RSI filters, and candle stability analysis to deliver accurate BUY & SELL signals.
🔥 Why traders love it:
✅ Detects bullish & bearish engulfing setups with RSI confirmation
✅ Built-in Stop Loss & Take Profit (customizable %)
✅ Prevents overtrading with anti-repeat signal filter
✅ Works on any market & timeframe (Forex, Crypto, Stocks, Indices)
✅ Backtest-ready with full PnL, Winrate, and Risk/Reward stats
🚦 How it works:
A BUY signal triggers when a bullish engulfing candle forms with RSI confirmation in a downtrend.
A SELL signal triggers when a bearish engulfing candle forms with RSI confirmation in an uptrend.
Labels show exact entry points on the chart for clarity.
⚡ Perfect for:
Swing traders, scalpers, and algorithmic enthusiasts
Traders who want rule-based entries & exits
Anyone looking to backtest and refine their trading strategy
👉 Just add it to your chart, adjust your Stop Loss & Take Profit, and start testing smarter trades!
Maiko Range Scalper (Sideways BB + RSI) – v4 cleanPurpose
It’s a range scalping strategy for crypto. It tries to take small, repeatable trades inside a sideways market: buy near the bottom of the range, sell near the middle/top (and the reverse for shorts).
Core idea (two timeframes)
Define the trading range on a higher timeframe (HTF)
You choose the HTF (e.g., 15m or 1h).
The script finds the highest high and lowest low over a lookback window (e.g., last 96 HTF candles) → these become HTF Resistance and HTF Support.
It also calculates the midline (average of support/resistance).
Trade signals on your lower timeframe (LTF)
You run the strategy on a fast chart (e.g., 1m or 5m).
Entries are only allowed inside the HTF range.
Entry logic (mean reversion)
Indicators on the LTF:
Bollinger Bands (length & std dev configurable).
RSI (length & thresholds configurable).
Optional VWAP proximity filter (price must be within X% of VWAP).
Long setup:
Price touches/under-cuts the lower Bollinger band AND RSI ≤ threshold (default 30) AND price is inside the HTF range (and passes VWAP filter if enabled).
Short setup:
Price touches/exceeds the upper Bollinger band AND RSI ≥ threshold (default 70) AND price is inside the HTF range (and passes VWAP filter if enabled).
Exits and risk
Stop-loss: placed just outside the HTF range with a configurable buffer %:
Long SL = HTF Support × (1 − buffer).
Short SL = HTF Resistance × (1 + buffer).
Take-profit (selectable):
Mid band (the Bollinger basis) → conservative, faster exits.
Opposite band / HTF boundary → more aggressive, higher RR but more give-backs.
Position sizing
A simple cap: maximum position size = percent of account equity (e.g., 20%).
The script calculates quantity from that cap and current price.
Plots you’ll see on the chart
HTF Resistance (red) and HTF Support (green) via plot().
HTF Midline (gray dashed) drawn with a line.new() object (because plot() cannot do dashed).
Bollinger basis/upper/lower on the LTF.
Optional VWAP line (only shown if you enable the filter).
Signal markers (green triangle up for Long setups, red triangle down for Short setups).
Alerts
Two alertconditions:
“Long Setup” – when a long entry condition appears.
“Short Setup” – when a short entry condition appears.
Create alerts from these to get notified in real time.
How to use it (quick start)
Add to a 1m or 5m chart of a liquid coin (BTC, ETH, SOL).
Set HTF timeframe (start with 1h) and lookback (e.g., 96 = ~4 days on 1h).
Keep default Bollinger/RSI first; tune later.
Choose TP mode:
“Mid band” for quick scalps.
“Opposite band/Range” if the range is very clean and you want bigger targets.
Set SL buffer (0.15–0.30% is common; adjust for volatility).
Set Max position % to control size (e.g., 20%).
(Optional) Enable VWAP filter to skip stretched moves.
When it works best
Clearly sideways markets with visible support/resistance on the HTF.
High-liquidity pairs where spreads/fees are small relative to your scalp target.
Limitations & safety notes
True breakouts will invalidate mean-reversion logic—your SL outside the range is there to cut losses fast.
Fees can eat into small scalps—prefer limit orders, rebates, and liquid pairs.
Backtest results vary by exchange data; always forward-test on small size.
If you want, I can:
Add an ATR-based stop/target option.
Provide a study-only version (signals/alerts, no trading engine).
Pre-set risk to your €5,000 plan (e.g., ~0.5% max loss/trade) with calculated qty.
Auto Fibonacci Extension Pro Strategy – Smart Risk/Reward✨ Auto Fibonacci Extension Pro Strategy is a next-generation trading system that combines automatic Fibonacci extensions with professional risk management and backtesting features.
This strategy is designed for traders who want to trade with precision using Fibonacci levels without manually drawing them every time.
🔑 Key Features:
✅ Automatic Fibonacci Extension Mapping (0.618, 1.0, 1.272, 1.618, 2.618).
✅ Pro Entry & Exit Signals at golden zones.
✅ Dynamic Position Sizing based on risk percentage.
✅ Stop Loss & Take Profit levels with custom Risk/Reward ratio.
✅ Long & Short Trade Signals with chart markers.
✅ Backtesting Ready – optimize settings for any market (Forex, Crypto, Stocks, Indices).
✅ Clean Visuals with auto-plotted fib levels.
📊 How It Works:
Detects swing highs & lows automatically.
Draws Fibonacci extensions forward.
Generates buy/sell signals when price confirms at fib levels.
Places SL at last swing and TP at fib extension target.
Applies risk-based position sizing to protect your account.
⚡ Best Use Cases:
Works on all timeframes (scalping to swing trading).
Effective for Forex, Crypto, Stocks & Indices.
Use alongside trend filters (MA, RSI, Volume) for extra confirmation.
📢 Pro Tip: Backtest on multiple markets & timeframes, then fine-tune your Swing Length and Risk/Reward Ratio for maximum performance.
🔥 Shared Success, Trusted Growth – This strategy is built for traders who want to combine discipline, automation, and professional risk management into one powerful trading tool.
MW Futures Liquidity Scalper (FREE)MW Futures Liquidity Scalper (FREE) - ICT-Inspired Precision Trading
Unlock Market Edge with Smart Liquidity Hunting – Now Free on TradingView!
Imagine transforming chaotic futures and forex markets into a predictable playbook: spotting high-probability setups where liquidity pools get raided, FVGs (Fair Value Gaps) align with institutional bias, and risk-managed entries turn volatility into consistent edges. That's the power of the MW Futures Liquidity Scalper – an ICT (Inner Circle Trader) inspired strategy enhanced with machine learning for pattern recognition, correlation filters, and adaptive avoidance. Previously invite-only and paid, we're making the manual TradingView version completely free to empower more traders like you to master liquidity scalping without barriers.
This isn't just another indicator – it's a battle-tested system built for risk-tolerant traders who crave pattern identification, bulletproof risk management, and optimization tools. Whether you're a beginner needing educational setups or a pro seeking insights, this strategy delivers real-world value while always emphasizing: Trading involves substantial risk of loss and is not suitable for everyone. Past performance isn't indicative of future results.
Core Features & How It Works
Powered by advanced logic (imported from our proprietary library), this strategy scans for liquidity sweeps and FVGs every 15/30/60 minutes (customizable), aligning with ICT models like first-presentation bias in key sessions (Asia, London, NY AM/PM). Here's what sets it apart:
Liquidity & FVG Detection : Automatically identifies buy/sell-side liquidity pools and FVGs with customizable size filters (min/max handles). Uses volume imbalance for refined entries, with options for 2022-model FVGs post-liquidity purge.
Bias & Direction Filters : Integrates NDOG/NWOG (New Day/Week Opening Gaps), EMA crossovers (9/18 on daily/weekly/custom timeframes), macro time restrictions (e.g., xx:50-xx:10), and correlation with tickers like DXY (positive/negative sync).
Order Flow Analysis : Tracks Short-Term (STH/STL), Intermediate (ITH/ITL), and Long-Term (LTH/LTL) highs/lows for premium/discount entries – only trade in alignment with market flow.
Risk Management Mastery :
Stoploss placement at FVG/candle lows/highs, with min/max overrides and trailing stops (using close or high/low).
Breakeven logic: Auto-moves to breakeven after X handles in profit, with avoidance during high-risk times.
Funded account rules for Topstep (50k/100k/150k) or AMP Live, including max daily loss/drawdown, contract limits, and risk-per-trade caps.
Time-Based Controls : Define liquidity search (e.g., 09:30-10:00 AM range), trading windows, and avoidance periods (e.g., first 2 mins of macro, day-specific blocks like Mondays 10:00-10:29).
Entry & Exit Precision : Slippage adjustments, 75% body closure filter to avoid wick runs, min/max handle runs for TPs, runner contracts for unlimited upside, and clustering/merging of close TPs.
Visuals & Alerts : Color-coded FVGs (bullish green, bearish red, neutral blue), liquidity lines (purged/non-purged), bias dashboard, and customizable alerts for entries, breakevens, and trails.
Backtest on futures like ES or NQ, or forex pairs – it processes on every tick for realism (with bar magnifier). No internet or extra installs needed; just add to your chart and tweak inputs.
Educational Resources
Dive deeper with our FREE Manual : Download the comprehensive guide at >>Manual with full documentation<< for setup tips, ICT breakdowns, and risk disclaimers.
Check out case studies: >>Case Studies Playlist<<
Step-by-step tutorials: >>Tutorial Playlist<<
Discord: >>Questions? Join Discord here<<
Ready to scalp liquidity like a pro? Add this to your chart now!
EMA 1/8 Cross - Fixed Pip TP/SLEMA 1/8 Cross – Fixed Pip TP/SL
This strategy is based on the crossover between EMA 8 and EMA 14 as trading signals:
Long entry → when EMA 1 crosses above EMA 8
Short entry → when EMA 1 crosses below EMA 8
Features:
Fixed pip Take Profit (TP) and Stop Loss (SL), fully adjustable in the settings.
Customizable EMA Fast/Slow lengths for optimization.
Pip size input to match different broker definitions (e.g., XAUUSD often uses 0.10 as one pip).
Suitable for testing scalping or swing trading across multiple timeframes.
⚠️ Disclaimer:
This script is intended for backtesting and educational purposes only. Please optimize parameters and apply proper risk management before using it on live accounts.
MACD StrategyOverview
The "MACD Strategy" is a straightforward trading strategy tested for BTCUSDT Futures on the 1-minute timeframe, leveraging the Moving Average Convergence Divergence (MACD) indicator to identify momentum-based buy and sell opportunities. Developed with input from expert trading analyst insights, this strategy combines technical precision with risk management, making it suitable for traders of all levels on platforms like TradingView. It focuses on capturing trend reversals and momentum shifts, with clear visual cues and automated alerts for seamless integration with trading bots (e.g., Bitget webhooks).
#### How It Works
This strategy uses the MACD indicator to generate trading signals based on momentum and trend direction:
- **Buy Signal**: Triggered when the MACD line crosses above the signal line, and the MACD histogram turns positive (above zero). This suggests increasing bullish momentum.
- **Sell Signal**: Triggered when the MACD line crosses below the signal line, and the MACD histogram turns negative (below zero), indicating growing bearish momentum.
Once a signal is detected, the strategy opens a position (long for buy, short for sell) with a position size calculated based on your risk tolerance. It includes a stop-loss to limit losses and a take-profit to lock in gains, both dynamically adjusted using the Average True Range (ATR) for adaptability to market volatility.
#### Key Features
- **MACD-Based Signals**: Relies solely on MACD for entry points, plotted in a separate pane for clear momentum analysis.
- **Risk Management**: Automatically calculates position size based on a percentage of your account balance and sets stop-loss and take-profit levels using ATR multipliers and a risk:reward ratio.
- **Visual Feedback**: Plots entry, stop-loss, and take-profit lines on the chart with labeled markers for easy tracking.
- **Alerts**: Includes Bitget webhook-compatible alerts for automated trading, notifying you of buy and sell signals in real-time.
#### Input Parameters
- **Account Balance**: Default 10000 – Set your initial trading capital to determine position sizing.
- **MACD Fast Length**: Default 12 – The short-term EMA period for MACD sensitivity.
- **MACD Slow Length**: Default 26 – The long-term EMA period for MACD calculation.
- **MACD Signal Length**: Default 9 – The smoothing period for the signal line.
- **Risk Per Trade (%)**: Default 3.0 – The percentage of your account balance risked per trade (e.g., 3% of 10000 = 300).
- **Risk:Reward Ratio**: Default 3.0 – The ratio of potential profit to risk (e.g., 3:1 means risking 1 to gain 3).
- **SL Multiplier**: Default 1.0 – Multiplies ATR to set the stop-loss distance (e.g., 1.0 x ATR).
- **TP Multiplier**: Default 3.0 – Multiplies ATR to set the take-profit distance, adjusted by the risk:reward ratio.
- **Line Length (bars)**: Default 25 – Duration in bars for displaying trade lines on the chart.
- **Label Position**: Default 'left' – Position of text labels (left or right) relative to trade lines.
- **ATR Period**: Default 14 – The number of periods for calculating ATR to measure volatility.
#### How to Use
1. **Add to Chart**: Load the "MACD Strategy" as a strategy and the "MACD Indicator" as a separate indicator on your TradingView chart (recommended for BTCUSDT Futures on the 1-minute timeframe).
2. **Customize Settings**: Adjust the input parameters based on your risk tolerance and market conditions. For BTCUSDT Futures, consider reducing `Risk Per Trade (%)` during high volatility (e.g., 1%) or increasing `SL Multiplier` for wider stops.
3. **Visual Analysis**: Watch the main chart for trade entry lines (green for buy, red for sell), stop-loss (red), and take-profit (green) lines with labels. Use the MACD pane below to confirm momentum shifts.
4. **Set Alerts**: Create alerts in TradingView for "Buy Signal" and "Sell Signal" to automate trades via Bitget webhooks.
5. **Backtest and Optimize**: Test the strategy on historical BTCUSDT Futures 1-minute data to fine-tune parameters. The short timeframe requires quick execution, so monitor closely for slippage or latency.
#### Tips for Success
- **Market Conditions**: This strategy performs best in trending markets on the 1-minute timeframe. Avoid choppy conditions where MACD crossovers may produce false signals.
- **Risk Management**: Start with the default 3% risk per trade and adjust downward (e.g., 1%) during volatile periods like BTCUSDT news events. The 3:1 risk:reward ratio targets consistent profitability.
- **Timeframe**: Optimized for 1-minute charts; switch to 5-minute or 15-minute for less noise if needed.
- **Confirmation**: Cross-check MACD signals with price action or support/resistance levels for higher accuracy on BTCUSDT Futures.
#### Limitations
- This strategy relies solely on MACD, so it may lag in fast-moving or sideways markets. Consider adding a secondary filter (e.g., RSI) if needed.
- Stop-loss and take-profit are ATR-based and may need adjustment for BTCUSDT Futures’ high volatility, especially during leverage trading.
#### Conclusion
The "MACD Strategy" offers a simple yet effective way to trade momentum shifts using the MACD indicator, tested for BTCUSDT Futures on the 1-minute timeframe, with robust risk management and visual tools. Whether you’re scalping crypto futures or exploring short-term trends, this strategy provides a solid foundation for automated or manual trading. Share your feedback or customizations in the comments, and happy trading!
Estrategy EURUSD M3 Scalping Estrategia para operar el EURUSD en temp de 3 min, indica sl y tp 6 pips sl y 10 pips tp