This is a simple strategy that is working well on SPY but also well performing on Mini Futures SP500. The strategy is composed by the followin rules: 1. If RSI(2) is less than 15, then enter at the close. 2. Exit on close if today’s close is higher than yesterday’s high. If you backtest it on Mini Futures SP500 you will be able to track data from 1993. It is...
This is a simple strategy that is working well on SPY but also well performing on Mini Futures SP500. The strategy is composed by the followin rules: 1. If today’s close is below yesterday’s five-day low, go long at the close. 2. Sell at the close when the two-day RSI closes above 50. 3. There is a time stop of five days if the sell criterium is not...
This is a simple strategy that is working well on SPY but also well performing on Mini Futures SP500. The strategy is composed by the followin rules: 1. Today is Monday. 2. The close must be lower than the close on Friday. 3. The IBS must be below 0.5. 4. If 1-3 are true, then enter at the close. 5. Sell 5 trading days later (at the close). If you backtest it on...
Trading Bot V1, This code implements a combined trading strategy that uses several indicators and strategies to make buy and sell decisions in the market. The code is written in Pine Script™, which is a programming language used in the TradingView platform. By BraelonWhitfield.Eth The strategy uses the Average Directional Movement Index (ADX) and the Pine...
We are presenting you feature for strategies in Pine Script. This function/pine script is about NOT opening trades on selected days. Real usage is for bank holidays or volatile days (PPI, CPI, Interest Rates etc.) in United States and United Kingdom from 2020 to 2030 (10 years of dates of bank holidays in mentioned countries above). Strategy is simple - SMA...
iMoku™ is a professional all-in-one solution for the famous Ichimoku Kinko Hyo indicator. The algorithm includes: 1. Backtesting spot 2. Visual tool 3. Auto-trading functions With iMoku you can test four different strategies. Strategy 1: Cross Tenkan Sen - Kijun Sen A long position is opened with 100% of the invested capital ($1000) when "Tenkan Sen"...
A sample strategy demonstrating the usage of The Divergent divergence indicator and The Divergent Library . The Divergent is an advanced divergence indicator which you can easily incorporate into your own strategies. In order to use this strategy (and to use the signals in your own strategy), you need to have the Pro version of The Divergent applied to...
TradingView backtester has bad reputation. For a good reason - it was producing wrong results, and it was clear at first sight how bad they were. But this has changed. Along with many other improvements in its PineScript coding capabilities, TradingView fixed important bug, which was the main reason for miscalculations. TradingView didn't really speak out about...
This script was built using a logical approach to trading systems. All the details can be found in a step by step guide below. I hope you enjoy it. I am really glad to be part of this community. Thank you all. I hope you not only succeed on your trading career but also enjoy it. docs.google.com
QuantCat Intraday Strategy This strategy is designed to be used on the 15 minute time frame, on liquid x/btc pairs and BTC/USD. It works by having 2 moving averages, automatic stop loss calculation, and taking positions on MA crosses and MA zone bounces for confirmation. Stoploss is so crucial to minimise any damage from huge unexpected candles, the...
Dragon Script is a framework to make it as easy as possible to test your own strategies and set alerts for external execution bots. The script has many features build in, like: 1) A ping/pong mechanism between longs and shorts 2) A stop-loss 3) Trailing Stops with several ways to calculate them. 4) 2 different ways to flip from long to short. The script is...
Hello Tradingview Community, I've been playing around with some various volume-based indicators, and recently have been experiencing a delay in the entries for my strategy for 2 minutes in this scenario. If the time is adjusted, it also is delayed 2 bars. In this example, the "Short" position should enter when the blue line Crosses under the upper green line,...
MA strategy with selection of various MAs: SMA, EMA, TEMA, WMA, and HMA with custom length and time period.
This is the first script I've written. Its sole purpose is to make me learn a bit of pine script. Its not intended to trade live. Feel free to modify it if you wish and let me know if you do it. Also any comments are welcome! Also i need help in two things: 1. Im unable to print the "in-strategy" rsi on chart 2. I want to ignore the first buy signal after each...
I am still learning pinescript, and part of this was created using the Pine Script language reference manual. This includes looking at the time series, a fixed length, and the default intraday_loss variables. This also includes the basic fixed lengths for an swma (Symmetrically weighted moving average) and the script to start creating a strategy. All in all this...
This is the main strategy that I will be forward testing on demo for a month or two, then making it an EA in MetaTrader4 You can see the code for yourself this time, all the strategy is, is a crossover of various moving averages. Commission included, $10,000 account. Results over the past 3 months, beginning in January 2017.
Description It's nice to quickly be able to set the backtesting period when writing strategies. To make this process faster I wrote a simple 'component'. So this is not a strategy but rather code you can plug-into your strategy and use if you need that specific functionality. Then it's just a matter of selecting which dates you want to backtest. You can also...
This is a very basic strategy implementation Use as a code stub for your strategy code. I wrote it because I could not find one. This particular strategy goes long on Tuesdays at 10 am and goes short at 3 pm on Thursdays. Because US markets open at 9:30 you have to have your chart in 30 minute or less resolution for trades to fire. You can gut that code...