GG ES Scalp IBTT Momentum Strategy v1.0Script for Scalping the ES. Apply it to a 15 second chart. The Momentum Multiplier is a float input and the lower the number the less conservative the strategy is. It doesn't fire signals everyday but its pretty accurate. Send me a message to get access.
CME_MINI:ES1!
Strategy
Risk Reduction Ultimate TemplateThis is a template not actually meant for trading. I picked two random oscillators. This is a template meant to turn into a live trading strategy, however.
It's literally just a specialized take profit/stop loss system. It is to ensure your bot doesn't make any bad moves that you wouldn't have manually. The code should be pretty well annotated. Putting this into my scripts has made them much better. I will work on a Multiple Trigger template next.
Strange RSI (sRSI) Backtesting strategyThis is the backtesting strategy module for my Strange RSI (sRSI) oscillator. The main scheme is grounded on setting up a long strategy for RSI crossing above a certain number, and shorting when RSI crosses below a certain number. This module allows you to:
*change these crossing thresholds
*change the Take Profit limits for long and short strategies
*change the RSI length
In this way, you may optimize to the parameters which fit best to your goals.
Basic SMA 200 StrategyThe SMA 200 basic strategy will be more than familiar to most traders.
This strategy is to stay with the programming language so to say the "Hello World" of trading.
The SMA 200 basic strategy is also one of the simplest strategies in trading. All that is required is the price and a 200 period moving average. Usually the strategy is used in the daily chart.
The rules are as follows:
Entry: A position is opened when the price crosses the moving average 200 from the bottom to the top.
Exit: The position is closed when the price crosses the moving average from top to bottom.
This is a trend following system and was originally used for trading stocks.
In my opinion, trading with the strategy is recommended to every beginner. There are strategies with better performance, but they are much more complicated to implement. And that's where the big advantage of the strategy can be seen.
Beginners are more than overwhelmed at the beginning of their trading career. Often beginners trade in the 5 min chart with 6 different indicators some signals that they have seen in a Youtube video.
Comparable to a beginner driver who immediately gets into a Porsche as his first car.
Beginners should follow simple rules and avoid intraday charts. Above all, you should do the actual work of a trader.A trader does not just press the mouse twenty times a day and then has easily earned 2000 $. A trader tests systems down to the smallest detail, optimizes and tests again, until he has found an almost " waterproof " trading system. The 200 SMA basic strategy is excellent for gaining experience, learning to follow the rules of a system and not to burn your money right away.
With this script you can test how successful the "simplest strategy in the world" would have been in the past.
Small tip: Do not trade Forex with it it will never work. The strategy is made for long trends and you can find them for example in the stock market.
Have fun with it! About a positive feedback I would be very happy of course.
Flawless Victory Strategy - 15min BTC Machine Learning StrategyHello everyone, I am a heavy Python programmer bringing machine learning to TradingView. This 15 minute Bitcoin Long strategy was created using a machine learning library and 1 year of historical data in Python. Every parameter is hyper optimized to bring you the most profitable buy and sell signals for Bitcoin on the 15min chart. The historical Bitcoin data was gathered from Binance API, in case you want to know the best exchange to use this long strategy. It is a simple Bollinger Band and RSI strategy with two versions included in the tradingview settings. The first version has a Sharpe Ratio of 7.5 which is amazing, and the second version includes the best stop loss and take profit positions with a Sharpe Ratio of 2.5 . Let me talk a little bit more about how the strategy works. The buy signal is triggered when close price is less than lower Bollinger Band at Std Dev 1, and the RSI is greater than a certain value. The sell signal is triggered when close price is greater than upper Bollinger Band at Std Dev 1, and the RSI is greater than a certain value. What makes this strategy interesting is the parameters the Machine Learning library found when backtesting for the best Sharpe Ratio. I left my computer on for about 28 hours to fully backtest 5000 EPOCHS and get the results. I was able to create a great strategy that might be one of TradingView's best strategies out on the website today. I will continue to apply machine learning to all my strategies from here on forward. Please Let me know if you have any questions or certain strategies you would like me to hyper optimize for you. I'm always willing to create profitable strategies!
P.S. You can always pyramid this strategy for more gains! I just don't add pyramiding when creating my strategies because I want to show you the true win/loss ratio based buying one time and one selling one time. I feel like when creating a strategy that includes pyramiding right off the bat falsifies the win rate. This is my way of being transparent with you all. Have fun trading!
RSI Mean Reversion Bot StrategyI started developing this strategy as a way to plug in and test values before defining them in the bots on 3Commas, Coinrule, and Quadency. None of those bots performed the same way my script did and I kept working on it until the strategy finally yielded the same simulated results when paired with the Tradingview bot on Quadency. I looked at all the different RSI strategies already published and saw what each was missing and changed it in mine to make it better:
1. Backtest an actual timeframe by date and time
2. Define the RSI price source
3. Fully manipulate the RSI length
4. Define a stop loss that works
5. Pick Long or Short, or both, based on market conditions. Or compare side by side to decide which you want.
hamster-bot RSI AlgoThis is a simple RSI based signal indicator. It is designed for algorithmic bot trading.
For best results, leave a time-frame of at least 1 hour.
When the RSI reaches 70, it gives a buy signal, and when the RSI reaches 30, it gives a sell signal. The position is then maintained until the opposite signal is given. If backtesting shows poor results, but looks like the opposite would be good, there is a simple switch in the settings to turn it over.
original indicator on the basis of which the strategy is made:
MicroStrategy Software Business Share PriceSimilar to the MicroStrategy Premium script. This indicator derives MSTR's core software business value by calculating its Bitcoin holdings as a percentage of market cap. Thus you can do, (1 - Bitcoin holdings as a % of market cap) * current share price = Core business share price
#JJ_Shares Trend Follower
-----------------
Hey there!
There are many reasons why this strategy has worked quite well over the past few years.
A very simple strategy in itself. The basis of this indicator is the trend following approach. "The trend is your friend." This strategy is based on individual separate indicators. A total of three EMA's (10.50 & 200) & the ATR are combined. The largest EMA shows the basic trend direction and thus also the preferred trade direction. The two smaller EMAs are used for the timing of the entrances at the intersection. The stop levels are placed with the help of the ATR and the large EMA. Profit areas are determined using a risk calculation.
Exact entry points can be identified using the indicator. In addition, a take profit is visualized based on a 3:1 CRV . The stop loss results from a long-term EMA .
Example for NASDAQ:GOOGL ! But can be used for all other trend following stocks!
The indicator can be used on all timeframes. However, the performance is significantly better in higher timeframes. In addition, the display can be adjusted using the options.
That's all. Due to the technical chart background, the strategy can be used without further chart analysis.
Attention: Before opening a position, always first check whether there is any strong news. In these cases it is better to be on the safe side.
Attention: With this strategy a SL is provided as standard. However, the risk must always be carefully calculated.
Past results do not guarantee future profits!
Use the link below to get access to this indicator or PM us to get access.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
-----------------
Willkommen!
Es gibt viele Gründe, warum sich diese Strategie in den letzten Jahren ganz gut bewährt hat.
Eine sehr einfache Strategie für sich. Grundlage dieses Indikators ist der Trendfolgeansatz. "The trend is your friend." Diese Strategie basiert auf einzelnen seperaten Indikatoren. Insgesamt werden drei EMA's (10,50 & 200) & die ATR kombiniert. Der größte EMA zeigt die grundsätzliche Trendrichtung und somit auch die bevorzugte Traderichtung. Die beiden kleineren EMA werden bei Kreuzung für das Timing der Einstiege verwendet. Mit Hilfe der ATR und des großen EMA werden die Stop Level platziert. Gewinnzonen werden über eine Risikoberechnung ermittelt.
Anhand des Indikators können genaue Einstiege erkannt werden. Zusätzlich wird aufgrund eines 3:1 CRV ein Take Profit visualisiert. Der Stop Loss ergibt sich über einen langfristigen EMA .
Beispiel für NASDAQ:GOOGL ! Kann aber für alle weiteren Trendfolge Aktien verwendet werden!
Der Indikator kann auf allen Timeframes angewendet werden. Allerdings ist der Performance in höheren Timeframes deutlich besser. Zusätzlich kann die Anzeige über die Optionen angepasst werden.
Das ist alles. Aufgrund des charttechnischen Hintergrunds kann die Strategie ohne weitere Chartanalyse verwendet werden.
Achtung: Vor dem Öffnen einer Position immer zuerst prüfen ob starke News anstehen. In diesen Fällen lieber auf Nummer sicher gehen.
Achtung: Bei dieser Strategie ist standardmäßig ein SL vorgesehen. Das Risiko muss aber immer gut kalkuliert werden.
Vergangene Ergebnisse garantieren keine zukünftigen Gewinne!
Verwenden Sie den folgenden Link, um Zugriff auf diesen Indikator zu erhalten oder schreibe uns eine PM um Zugriff zu erhalten.
Volatility Stop Strategy [frostybot]This is a modified version of the Standard Volatility Script on TradingView, tweaked for the BTCUSD chart on the 1H timeframe.
I've designed this strategy to be used with Frostybot with ease.
However, this can be disabled in the settings. Then you will receive alerts without Frostybot commands.
First, open the settings section of the indicator. Then fill in the following fields:
You can play around with the TP values and see what works best for your personal risk assessment
Account Stub: enter the name of your stub on Frostybot (only needed if you enable the "Use Frostybot Alert Triggers" checkbox)
Position Size and Size Type: Here you can choose the amount on which you want to enter the trade, for example: 100$, 2x,... (only needed if you enable the "Use Frostybot Alert Triggers" checkbox)
Symbol: Enter the BTC symbol that is valid for the Frostybot Stub's Exchange. For FTX: BTC-PERP, for Binance Futures: BTC /USDT,... (only needed if you enable the "Use Frostybot Alert Triggers" checkbox)
Press OK
Then, setup an alert on the strategy:
Configure the correct Frostybot Webhook URL (don't forget to add /frostybot after the IP address) (only needed if you enable the "Use Frostybot Alert Triggers" checkbox)
Give the alert a name of choice
Put this as the message: {{strategy.order.alert_message}}
Press OK
Enjoy and happy trading!
Williams Alligator + RSI + T3CCIWilliams Alligator strategy is based on indicator developed by a legendary trader Bill Williams, an early pioneer of market psychology.
The strategy is based on a trend-following Alligator indicator, which follows the premise that financial markets and individual securities trend just 15% to 30% of the time while grinding through sideways ranges the other 70% to 85% of the time. Williams believed that individuals and institutions tend to collect most of their profits during strongly trending periods.
Although Alligator is a very strong tool it has a lot of weak signals and has lag span on entries and exits. We added RSI oscillator and T3CCI to clear market noises and weak signals. Moreover the approach we intoduced to the indicator allows to enter positions and close them earlier than orginal indicator which ensures stronger signals
The strategy supports traditional and cryptocurrency spot, futures, options and marginal trading exchanges. It works accurately with BTC, USD, USDT, ETH and BNB quote currencies. Best to use with 1D timeframe charts
The strategy can be and should be configured for each particular asset. You can change filters and risk management settings to receive the most advanced accurate alerts
Advantages of this script:
Good for long and Short positions
Produces strong long-term entries and closures of positions
Stable to short-term market fluctutions
Easy configuration with a user friendly interface
Backtests show high accuracy around 85.71%
High Net Profit percentage around 21.26%
High profit factor around 82.403
How to use?
1. Apply strategy to the trading pair your are interested in at 1D timeframe chart
2. Configure the strategy: change filters values and risk management settings until Strategy tester shows good results according to mathematical expectation
3. Set up a TradingView alert to trigger when strategy conditions are met
4. Strategy will send alerts when to enter and when to exit positions
Feel free to copy and use this script for your ideas and trading!
ATR + %R Scalping StrategyThe Average True Range is a single line indicator that measures volatility. The indicator was originally developed by J. Welles Wilder to measure the volatility of commodities within the futures market.
ATR does not measure price trends or price direction hence %R and Parabolic SAR indicators were added.
The strategy enhances standard Average True Range and %R composition with trend confirmation and filters which clear out market noises and manipulations from triggers.
The strategy supports traditional and cryptocurrency spot, futures, options and marginal trading exchanges. It works accurately with BTC, USD, USDT, ETH and BNB quote currencies. Best to use with 5 and 15 minutes timeframe charts and Limit orders.
The strategy can be and should be configured for each particular asset. You can change filters and risk management settings to receive the most advanced accurate alerts
Advantages of this script:
Strategy has high profit factor around 30.32
Backtests show high accuracy around 91.18%
High Net Profit percentage
Low Drawdowns
Weak signals are filtered
Dynamic Take profit and Stop loss
Fast deals around 50 minutes per trade
Can be applied to any market and quote currency
Easy to configure user interface
How to use?
1. Apply strategy to the trading pair your are interested in at 5m or 15m timeframe chart
2. Configure the strategy: change filters values and risk management settings until Strategy tester shows good results according to mathematical expectation
3. Set up a TradingView alert to trigger when strategy conditions are met
4. Strategy will send alerts when to enter and when to exit positions
Triple EMA StrategyThis is my first ever script so any suggestions, recommendations or improvement ideas welcome!
This strategy is an implementation of a standard three exponential moving averages strategy (defaults: EMA1=5, EMA2=20 and EMA3=50 candles). Trades are executed if EMA1 crosses above/below EMA2 and they are both above/below EMA3. In addition, the close of the current candle must be above/below the previous one by at least the number of ticks you specify in the "buffer" parameter (default 150 ticks). This additional check eliminates many bad trades.
There is also a trailing stoploss which comes into play once the price has gone above/below its initial value which it then follows the price with to ensure the trade closes at the highest possible price.
I find this strategy works best on a 15 minute chart but feel free to play around and fine tune the various parameters. If you find a good setup that returns decent profits, I'd be keen to hear it!
Moving Regression Band Breakout strategyFollowing the introduction of the Moving Regression Prediction Bands indicator (see link below), I'd like to propose how to utilize it in a simple band breakout strategy :
Go long after the candle closes above the upper band . The lower band (alternatively, the lower band minus the 14-period ATR or the central line ) will serve as a support line .
Exit as soon as the candle closes below the support line .
To manage the risk of false breakouts, a fixed stop loss is set to the value of the support line at the time of opening a position. When the support line moves above the position opening price, shift the stop loss to breakeven.
The same logic but in reverse applies to short positions.
As an option, it is possible to allow long entries only when the slope of the Moving Regression curve is positive (and short entries when the slope is negative).
Model parameters:
Length and Polynomial Order define the lag and smoothness of the model.
Multiplier specifies the width of the channel.
As the default model parameter values, I set those that I found to provide optimal risk / reward ratio on the daily timeframe (for both trending and range-bound market). However, the settings are very flexible and can be well-adjusted to particular market conditions. Feel free to play around and leave feedback in the comments!
Here's the original Moving Regression Prediction Bands script:
Example of Simple RSI Buy/Sell at a level and hold for 10 daysScript implements strategy:
1 Buy at RSI (10) < 30
2 Sell at RSI (10) > 40 or after 10 days
The strategy is not profitable for long term trading.
Galileo GalileiGalileo Galilei
Is the simplest of them all and easy to understand:
It has an Exponential Moving Average that you can modify to suit your pair on the chart with it's timeframe, looking at the strategy tester to compare results;
The prices for the EMA are taken from the OPEN of every candle (depending on your timeframe);
If the current candle's price closes above the Average and the new candle opens above the average, it will trigger a buying signal because of the bullish setup;
If the current candle's price closes below the Average and the new candle opens below the average, it will trigger a selling signal because of the bearish setup;
No strategy works on all charts and on all timeframes so you have to feel free to modify the parameters to suit your trading setup;
It is possible that the strategy won't give you any good results at all on some trading pairs and timeframes so be careful because it can lose money;
This strategy is called Galileo Galilei, it's free for you all to use and it was developed to be as simple as it can be and to work in bullish or bearish scenarios, but not in flat movements.
You can message me to ask questions, I respond to every message.
Green pips!
Equal-Length EMA/SMA Crossover Momentum StrategyOverview:
This momentum and trend-following strategy captures the majority of any trending move, and works well on high timeframes.
It uses an equal-period EMA and SMA crossover to detect trend acceleration/deceleration, since an EMA places a greater weight and significance on the most recent data.
This version is optimized for longs, and designed to cut your losses quickly and let your winners run.
To reduce noise and optimize entries, we combined this with an overall trend bias for further confluence.
How it works:
Signals are determined by the crossover of an EMA and SMA of the same length, e.g. EMA-50 and SMA-50.
The overall trend bias is determined using a slower SMA golden/death cross, e.g. SMA-50 and SMA-100.
The signal is stronger when it occurs in confluence with the overall trend bias, e.g. when EMA-50 crosses over SMA-50, while above the SMA-100. This is analogous to only opening long positions in a bull market.
Signal description:
Trend Buy: EMA crosses above SMA, and overall trend bias is bullish. Buying is in confluence with the overall trend bias.
Risky Buy: EMA crosses above SMA, and overall trend bias is bearish. Buying is early, more risky, and not in confluence with the overall trend bias.
Late Buy: SMA crosses above BIAS_SLOW. This gives further confirmation of bullish trend, but signal comes later.
Sell: EMA crosses under SMA.
Strategy entry and exit conditions:
This version enters a Long when "TREND BUY" is signalled.
This version has Sell/Shorts disabled because UP ONLY.
Long entry: Strategy enters Long when EMA is above SMA, while overall trend bias is bullish.
Long exit: Close long when EMA crosses under SMA.
Buy and Hold entry finder StrategyHello everyone!
I proudly present the backtest Strategy Script for my "Buy and Hold entry finder" Script.
It basically shows you the outcome, if you would use my indicator in the past.
The buy signals are limited to 1 order per month.
Order Size: Allows you to choose, how much money you want to invest per month. (Please consider, it will only invest an x amount per Order, but it will not stack the amount you did not invest in an previous month ) (Example in my indicator)
Pyramiding: Just regulates, how often you can open an position.
Commission: Here you can set how much it will cost to open an position at your broker.
I coded a feature that allows you to set a Start Date and an End Date for your backtest. In the end of the backtest the script closes all positions.
If you got any question, feel free to ask in the comments or send me a message.
Sincerely, RS Titan.
MRM [VK] V4.0 strategyMRM VK strategy
This strategy uses MA, RSI , MACD combined.
MACD and RSI can be used multi time frame to filter trend.
It is a very simple strategy which goes long/short when MACD , RSI and MA Trend Changes in higher Time Frame.
Ultimate Strategy TemplateHello Traders
As most of you know, I'm a member of the PineCoders community and I sometimes take freelance pine coding jobs for TradingView users.
Off the top of my head, users often want to:
- convert an indicator into a strategy, so as to get the backtesting statistics from TradingView
- add alerts to their indicator/strategy
- develop a generic strategy template which can be plugged into (almost) any indicator
My gift for the community today is my Ultimate Strategy Template
Step 1: Create your connector
Adapt your indicator with only 2 lines of code and then connect it to this strategy template.
For doing so:
1) Find in your indicator where are the conditions printing the long/buy and short/sell signals.
2) Create an additional plot as below
I'm giving an example with a Two moving averages cross.
Please replicate the same methodology for your indicator wether it's a MACD, ZigZag, Pivots, higher-highs, lower-lows or whatever indicator with clear buy and sell conditions
//@version=4
study(title='Moving Average Cross', shorttitle='Moving Average Cross', overlay=true, precision=6, max_labels_count=500, max_lines_count=500)
type_ma1 = input(title="MA1 type", defval="SMA", options= )
length_ma1 = input(10, title = " MA1 length", type=input.integer)
type_ma2 = input(title="MA2 type", defval="SMA", options= )
length_ma2 = input(100, title = " MA2 length", type=input.integer)
// MA
f_ma(smoothing, src, length) =>
iff(smoothing == "RMA", rma(src, length),
iff(smoothing == "SMA", sma(src, length),
iff(smoothing == "EMA", ema(src, length), src)))
MA1 = f_ma(type_ma1, close, length_ma1)
MA2 = f_ma(type_ma2, close, length_ma2)
// buy and sell conditions
buy = crossover(MA1, MA2)
sell = crossunder(MA1, MA2)
plot(MA1, color=color_ma1, title="Plot MA1", linewidth=3)
plot(MA2, color=color_ma2, title="Plot MA2", linewidth=3)
plotshape(buy, title='LONG SIGNAL', style=shape.circle, location=location.belowbar, color=color_ma1, size=size.normal)
plotshape(sell, title='SHORT SIGNAL', style=shape.circle, location=location.abovebar, color=color_ma2, size=size.normal)
/////////////////////////// SIGNAL FOR STRATEGY /////////////////////////
Signal = buy ? 1 : sell ? -1 : 0
plot(Signal, title="🔌Connector🔌", transp=100)
Basically, I identified my buy, sell conditions in the code and added this at the bottom of my indicator code
Signal = buy ? 1 : sell ? -1 : 0
plot(Signal, title="🔌Connector🔌", transp=100)
Important Notes
🔥 The Strategy Template expects the value to be exactly 1 for the bullish signal , and -1 for the bearish signal
Now you can connect your indicator to the Strategy Template using the method below or that one
Step 2: Connect the connector
1) Add your updated indicator to a TradingView chart
2) Add the Strategy Template as well to the SAME chart
3) Open the Strategy Template settings and in the Data Source field select your 🔌Connector🔌 (which comes from your indicator)
From then, you should start seeing the signals and plenty of other stuff on your chart
🔥 Note that whenever you'll update your indicator values, the strategy statistics and visual on your chart will update in real-time
Settings
- Color Candles : Color the candles based on the trade state (bullish, bearish, neutral)
- Close positions at market at the end of each session : useful for everything but cryptocurrencies
- Session time ranges : Take the signals from a starting time to an ending time
- Close Direction : Choose to close only the longs, shorts, or both
- Date Filter : Take the signals from a starting date to an ending date
- Set the maximum losing streak length with an input
- Set the maximum winning streak length with an input
- Set the maximum consecutive days with a loss
- Set the maximum drawdown (in % of strategy equity)
- Set the maximum intraday loss in percentage
- Limit the number of trades per day
- Limit the number of trades per week
- Stop-loss: None or Percentage or Trailing Stop Percentage or ATR
- Take-Profit: None or Percentage or ATR
- Risk-Reward based on ATR multiple for the Stop-Loss and Take-Profit
This script is open-source so feel free to use it, and optimize it as you want
Alerts
Maybe you didn't know it but alerts are available on strategy scripts.
I added them in this template - that's cool because:
- if you don't know how to code, now you can connect your indicator and get alerts
- you have now a cool template showing you how to create alerts for strategy scripts
Source: www.tradingview.com
I hope you'll like it, use it, optimize it and most importantly....make some optimizations to your indicators thanks to this Strategy template
Special Thanks
Special thanks to @JosKodify as I borrowed a few risk management snippets from his website: kodify.net
Additional features
I thought of plenty of extra filters that I'll add later on this week on this strategy template
Best
Dave
MACD 50x Leveraged Strategy Real Equity Simulation Hello, I wrote this script to merge the two scripts I shared before.
The aim here is to see the real value of the state of the capital as a result of leveraged transactions and to combine both long and short directions.
Scripts :
MACD Long 50x Leverage Strategy :
MACD Short 50x Leverage Strategy :
The parameters have not changed so they are the same as the previous two scripts:
Adding margin: Forbidden or not specified. (Add Margin : No)
Position Size : %1 (0.01) (For each trade)
Stop-Loss : %2 (For each trade)
Long : Crossover(delta,0) (Standard MACD)
Long Exit : Long Stop Level or Short Entry
(In the case of Long Stop, all trades are closed and no positions are opened in short direction.)
Short : Crossunder(delta,0) (Standard MACD)
Short Exit : Short Stop or Long Entry
(In the case of Short Stop, all trades are closed and no positions are opened in the long direction.)
NOTE :
This is a simulation made using standard parameters, showing the state of the balance in very simple rules with leveraged transactions only.
The nice thing here is the direct observation of the results by making modifications on the strategy parameters.
Regards.
MACD Strategy (SL/TP Levels and Risk Management)Strategy based on MACD and EMA.
- Risk/Reward Ratio can be adjusted
- SL level can be slightly adjusted (Takes the last low/high as SL)
- Visual representation of SL and TP levels
- Risk management => 1 % max loss on a trade