Key Reversal Down Backtest A key reversal is a one-day trading pattern that may signal the reversal of a trend.
Other frequently-used names for key reversal include "one-day reversal" and "reversal day."
How Does a Key Reversal Work?
Depending on which way the stock is trending, a key reversal day occurs when:
In an uptrend -- prices hit a new high and then close near the previous day's lows.
In a downtrend -- prices hit a new low, but close near the previous day's highs
WARNING:
- For purpose educate only
- This script to change bars colors.
Backtest
BEST Supertrend StrategyHello traders
Sharing a sample Supertrend strategy to illustrate how to calculate a convergence and using it in a strategy
I based the setup as follow:
- Entries on Supertrend MTF breakout + moving average cross. Entering whenever there is a convergence
- exit whenever a Simple Moving Averages cross in the opposite direction happen
- possibility to filter only Longs/Shorts or both
All the best
Dave
BEST Trend Direction Helper (Strategy Edition)Hello traders
A follower asked me to convert my Trend Direction Helper into a strategy
So blessed this indicator reached the 1400+ likes milestone - I can't believe how many people are trading with it
I based the setup as follow:
- Entries on those green/red labels
- exit whenever a Simple Moving Averages cross in the opposite direction happen
- possibility to filter only Longs/Shorts or both
Also...
The strategy includes the Zig Zag/Pivots high/low and other options from the indicator version. I only added a quick strategy component with a hard exit concept based on SMA cross
All the best fam and... HAPPY NEW YEAR !!!!!!!!!!!
Dave
Expert studio strategy 1 - GBPUSDThis is part of a series of strategies developed automatically by a online software.
I cannot share the site url, which is not related to me in any way, because it is against the TV reules.
This strategy was optimized for GBPUSD, timeframe 1D, fixed lots 0.1, initial balance 1000€.
LOGIC:
- LONG ENTRY when previous candle is bear
- LONG EXIT: RVI > signal line
- SHORT ENTRY when previous candle is bull
- SHORT EXIT: RVI < signal line
NOTE: I considered the open of actual candle instead of close otherwise there will be a back shift of 1 candle in pine script
Take profit = no
Stop loss = no
I have also a study with alarms.
Please use comment section for any feedback.
T3 Long BacktestPrivate script commissioned by someone.
Long only backtest using T3 trend line.
Default settings for BINANCE:RENBTC 1D.
Combo Backtest 123 Reversal & D_DSP (Detrended Synthetic Price) This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
Detrended Synthetic Price is a function that is in phase with the
dominant cycle of real price data. This DSP is computed by subtracting
a half-cycle exponential moving average (EMA) from the quarter cycle
exponential moving average.
See "MESA and Trading Market Cycles" by John Ehlers pages 64 - 70.
WARNING:
- For purpose educate only
- This script to change bars colors.
Cyatophilum Ultimate Trading Bot [BACKTEST]Private Indicator.
This is an indicator for trading low timeframes . It is generic and configurable meaning you can use it not only on crypto, but also forex, CFD, stocks etc.
HOW IT WORKS
The user chooses between three powerful base strategies: Bollinger Bands + Stoch RSI, RSI Divergences or the SARMA Strategy .
He can also trade support and resistance breakouts , with or without the base strategy.
Use the Alert Setup version to trigger entry and exit alerts .
You can choose between a set of trend lines that will filter trades that are against the main trend in order to increase profitability.
The integrated Trailing Stop Loss will trigger an alert to exit the trade.
You can use the Trailing Take Profit with a configurable % deviation. It will also trigger an exit alert.
SAMPLE USE CASES
XBTUSD 5m BitMEX
XBTUSD 15m BitMEX
ETHUSD 5m BitMEX
ETHUSD 15m BitMEX
USD/WTI 1m IDC (Us Dollar/ WTI Crude OIL)
Backtest below for BITMEX:LTCZ19 in 15m timeframe.
To get access to the indicator, use the link below, thanks for reading!
NoNonsense Forex - high timeframe trading absurd NON-REPAINTINGSome time ago I bumped into NoNonsense Forex - pretty good-looking course with well-designed videos, reasonable rules, etc. Nice explanatory videos, not selling anything, building indicators-only strategy. But there was one thing that really annoyed me - it was supposed to work only on Daily timeframe. What is the point in trading such high timeframe, if decisions changing market direction are playing out within 1 minute? What is the point in evaluating trades from 1994 if we are 25 years later?
Anyway, I have developed this strategy, which is:
- non-repainting
- not using trailing-stop
- not using any other known TradingView backtest bugs
And I'm showing it as an example of OVERFITTING. Backtesting results look absurd: 100% profitable. But if you change any of the many parameters in the Settings popup, they will turn into disaster. It means, the rules of this strategy are very fragile. Don't trade this! Remember about backtesting rule #1: past results do not guarantee success in the future.
I'm giving this strategy out with the source code. Feel free to do anything you want with it. But if you find parameters or modifications on, which allow profitable trading on lower timeframes, don't be shy, let me know :)
*********
Forex / Indices / Commodities traders who want to start AUTO-TRADING might want to take a look at "TradingConnector", which allows no-latency trades execution from TradingView to MT4/MT5.
SuperTrend BacktesterThis is a backtesting script for the famous Super Trend.
Features
- Custom Date Range
- Custom Targets and Risks
Requested by Dlatrella
Cyatophilum H.A. Swing [BACKTEST]Hi guys, to celebrate the beginning of a new altcoins cycle, I created a Swing trade Indicator. (It's a joke, there will not be any altcoins cycle)
Cyatophilum Heikin Ashi Swing
This indicator will allow us to create one strategy for each pair and never miss those big swings ever again!
HOW BEAT BUY & HOLD WORKS
This kind of strategy is a safe long term investment , usually played in high timeframes such as 4H, 1D etc.
It is perfect for beginners in trading as the process is very simple: buy and sell when you receive the alert. The high timeframes allows to trade manually by receiving alerts on your phone or email, but you also can automate it if you prefer.
The primary goal of these strategies is to increase your capital faster than someone simply holding the asset .
The trades are made with no leverage and 100% equity . It is for those who want to grow their portfolio fast without risking to lose everything. You can use several strategies at once, in this case split your equity accordingly.
HOW DOES IT WORK?
The Heikin Ashi candles are very usefull. This strategy is built upon H.A. candles but is used on normal candles, because H.A. candles price are an average of real candles and we want to know the real price. I did the trick by recalculating the H.A. open, high, low and close with the original formula based on the real candles's ohlc. This allows me to use the strategy tester and backtest with real results.
HOW TO USE
Creating a signal is as simple as adding the indicator called to your chart and click "Set alert". Select "Once per bar close" for your alert options.
There are 3 alerts:
- BUY
- SELL
- BUY OR SELL (for free TV users)
Sample Backtest results
Bitcoin/Dollar
Ethereum/Bitcoin
Basic Attention Token/Bitcoin
> > Start using the indicator now < <
Note: This version is the BACKTEST. You can find the Alert version in my profile scripts.
How To Set Trade Dates
Example how to backtest specific date(s) which can be useful for testing seasonality strategy ideas such as "Sell in May", etc.
If using Daily period with wild card dates it will not trade on 1st day of month. If market is closed will trade on next open day.
Works only with Daily or lower timeframes. When using on Daily timeframe set dates 1 day earlier to execute on desired dates.
Entering 0 in any of the date fields acts a wild card. Example -> Entry Year: 0 is "Every Year", Exit Month: 0 is "Every Month", etc.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, 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!
How To Auto Set Date RangeExample how to automatically set the date range window to be backtested from X days or weeks ago to present. Additional options are also included to manually set the date range or to show entire range available.
Normally when you change chart period it changes the number of days being backtested, which means as you increase the chart period (for example from 5min to 15min), you also increase the number of days traded. So you can not compare apples to apples for which period would yield best performance for your strategy.
By incorporating this code with your own strategy's logic (replacing buy and sell), it will allow you to compare results of different period backtests over the same duration of time.
Date Range: ALL uses entire history.
Date Range: DAYS uses number you set in # Days or Weeks
Date Range: WEEKS uses number you set in # Days or Weeks
Date Range: MANUAL uses manual dates you set in From and To fields
Much gratitude to @pinechrix for suggesting this improvement to me, and to @Gesundheit for pointing me in the right direction on the original example I published previously. Thank you both!
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, 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!
Cyatophilum SuperTrend [BACKTEST]The SuperTrend Indicator and Strategy built upon Average True Range.
- Backtest Version -
>> READ HOW TO USE HERE <<
DepthHouse Trading System [Gods Envelope] Backtest StrategyCreated for Bitcoin!
*All testing has been done on the 1 Day time frame of BTC USD pairs.
Use at your own risk.
DepthHouse Trading System Basics
The Cloud:
The cloud is used in a very similar manner as the ichimoku cloud. A complete cross above or below the represents a macro trend change. The cloud then could be used as dynamic support and resistance zones.
By default there is no smoothing to the full cloud. If you wish to add smoothing, you can change the ‘Trend Base On’ option to ‘Modded Cloud Average’ to add price action and smoothing into the cloud’s calculations. The Modded Cloud can then be used in the same manner as the Full Cloud. Generally, the Full Cloud is more forgiving and has less Macro Trend changes. By default, this option is turned off. The support or resistance zone created will be shown on the info panel on the right.
Horizontal Levels:
A Horizonal zone is generated each time there is a micro level trend change. For example, as soon as a positive micro trend change occurs a green horizontal level will be plotted.
These levels then can be used as temporary support and resistance zones. The Horizontal Break Trading Strategy is entirely based on these levels. These levels are also shown on the info panel on the right.
The Envelope Itself: (by default this is off)
By selecting the Overbought and Oversold Ranges option, a cloud envelope will appear around the price action. This envelope represents the overbought and oversold ranges. If the price action should go into these zones, the info panel on the right will show ‘CAUTION’ beside the God Values as this signals that the pair is either overbought or oversold.
The God Values:
The God values are listed on the info panel on the right. These are the values created by the Godmode indicator. Generally, below 20 or above 80 it signals for caution as the price action has overextended itself.
The Back-Test Strategy Options:
⇅ - Child Fomo Positioning:
Child Fomo Positioning strategy is entirely based on the macro trend change with the center cloud. As soon as there is a complete candle close above or below the cloud and a trend change takes place. The back-test places a market order as soon as the next candle opens. By default, it then will not close this position until the price action fully crosses the cloud once again.
⇅ - Horizontal Break Trading:
Horizontal Break Trading Strategy is entirely based on the horizontal levels generated and the macro trend direction. For example, say the Macro Trend is up, and a green, positive horizontal level is formed. As soon as a complete candle closes above the upper level of the positive zone, a limit order is placed in hope that the price action comes back down and retests, filling the order. This long will not close then until a negative level is formed. As soon as a negative level is formed a stop/loss order is placed on the lower level of the horizontal support zone. It will then do the opposite in a bearish trend, and margin trading is turned on.
⇅ - Parent Positions :
Parent Positioning Strategy is based on the overall trend and the center cloud levels. This strategy has limit orders waiting on the level of the cloud that is closest to the price action. Therefore, using this strategy alone, the back-test system waits for the trend to be confirmed, and then follows the price action with limit orders waiting on the cloud to be retested. By default this order does not close until a Marco trend change occurs.
⇅ - Take 50% Partial Profits:
This options allows the back-test to take 50% profit or loss when one of the two options occur.
Horizontal Break: This would close 50% of the position in the same manner it would close a trade using the horizontal break trading system.
God Values: Once the price action enters the oversold or overbought clouds, it would then place a close order as soon as the price action exits the cloud.
⟲ - Backtest Year Start Date :
Start year of the back-testing. If set to ex. 2017, the back-test will not calculate any trades that took place before Jan. 1 of 2017.
⚖ - Margin Trading :
By default, margin trading is turned off. Simply switch this option to on the enable ‘Short Trading’ into the strategy back-test.
Notes: If you are back testing multiple strategies at the same time, you must increase the pyramiding to correspond to the number or strategies.
My Favorite Settings:
Margin = Off
Pyramiding = 2 [Settings → Properties → Pyramiding → 2 orders
Child Fomo Positioning = On
Horizontal Break Trading = On
Everything else off 😊
DISCLAIMER: Past performance does not guarantee future results.
Use at your own risk.
Cyatophilum Shooting Stars 1m [BACKTEST]A Scalping Script for the 1m Timeframe, using the cheesy candle pattern "Shooting Stars" plus some Trend Detection, Stop Loss and Take Profit integrated system, allowing these nice backtest results.
Currently in continuous development / real time testing on BitMEX data.
MA Crossover_ No shortingThis script is intended for back testing MA crossover strategy specifically for Vietnam Market, which does not allow short selling and has a settlement period of T+3.
RePaNoCHa V4 [Backtest]This is the Backtest version of the previous one.
It's important to correctly set the "TICKS / PIPS CORRECTION" parameter in each different chart.
Enjoy!
Hull Trend with Kahlman Strategy BacktestA simple backtest version of a Hull Trend with Kahlman strategy
Cyatophilum Scalping Bot V2 [ADVANCED SETTINGS] [BACKTEST]Advanced Settings version of Cyatophilum Scalping Bot V2
For people who like tweaking settings =)
Cyatophilum Scalping Bot V2 [BACKTEST]Improved version of Cyatophilum Scalping Bot
Default settings for BITMEX:XBTUSD
2% stop loss
2% trailing take profit
Combo Backtest 123 Reversal & Breakout Range Short This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
Breakout Range Short Strategy
WARNING:
- For purpose educate only
- This script to change bars colors.
Ema BacktesterA simple, but useful script for backtesting purposes. Find the optimal Settings for your strategy.
tips are always welcome at: 38uGQJDDZDL6wX48x4gYTccPeQ3ZHVYmY4 (btc)
I hope you enjoy the script :)