AP short strategyThis strategy generates sell signals in a trending market. The exit signals show weakness in the current trend and can also indicate reversal of the trend. If two signals are generated within a short span like between 10-12 candles with the price locked in a range, then it can be considered as a stronger signal.
The best parameters to use this strategy is on a 5 min time frame and the best time for the strategy is from morning 9:30 am to 2:30 pm.
This strategy can produce false signals in a sideways or choppy market. It works best on liquid stocks and high beta stocks.
Ketidakstabilan
Rsi, Ema , Ma and Bollinger Bands for 1 min BtcusdtThis is for 1 min Btcusdt pair.
I am tring to find a way to catch %1 ups and downs.
Basicly it buys when rsi low and minute candle closes under ema,ma and lower bollinger band,
it sells when candle goes over upper bb,low ma, when rsi high.
It sells when rsi high ,candle closes over upper bb,over low ma and does the opposite when buying.
I know it's crowded but still tring to learn what to do ^^
I welcome any suggestions to improve.
It works better with shorts for now.
Don't buy with this !! You might lose big !
hft-breakpointwhen it's a short trend(red line),the price breakout highpoint in smaller level,it will use a stop order to long in realtime,vice versa.this strategy will perform better in 1 minute,so it trades frequently,need a low fee.
Super Algorithm Strategy (Joy Bangla)This is the strategy tester for the
Below are the performance results
Starting with $10,000
Net Profit: 88%
66% profitable trades
34% losing trades. Do look at the losing trades. If one did careful moment management, some of those may end up profitable as well.
4.158 Profit factor.
16.1% drawdown. I would go a bit more and say if I am using this, my risk management should ensure for a stop loss of 20%.
66 bars on average (aka it holds for a long time. So, one needs to look into the funding factor in money management)
Sharpe Ratio: 0.291
Only 7 trades done (with 6 closed) in 2 and a half years. So this absolutely reduces noise as much as possible.
In short, if I had $10000 of BTC beginning of 2018, I would be having $18,878 worth of btc right now.
With 4x leverage, this could be a huge potential.
For info on gaining access see the ⬇ link below ⬇ in our signature field & direct message me. I have a busy schedule at my own workplace. Trading is my hobby. Hence, please be kind to me if I am late in replying.
Full Candle Outside BB [Bishnu103]Bollinger band defines volatility range based on the current market condition. If a full candle is created outside BB then it is highly volatile and it may reverse to the mean, i.e. middle BB.
Buy - when a green candle is created below lower BB (alert candle) and price goes above high of it.
Buy SL - low of alert candle
Target 1 - middle band
Target 2- upper band
Sell - when a red candle is cerated above upper BB (alert candle) and price goes below low of it
Sell SL - high of alert candle
Target 1 - middle band
Target 2 - lower band
************************************************************************************************************************************************************************************
Disclaimer: This is in-progress strategy. I plan to work further and improve this. So please use this in the live market very carefully and based on your own risk factors.
************************************************************************************************************************************************************************************
Why is it ok to backtest on TradingView from now on!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 fix, so let me try :)
Have a look at this short code of a swing trading strategy (PLEASE DON'T FOCUS ON BACKTEST RESULTS ATTACHED HERE - THEY DO NOT MATTER). Sometimes entry condition happens together with closing condition for the already ongoing trade. Example: the condition to close Long entry is the same as a condition to enter Short. And when these two aligned, not only a Long was closed and Short was entered (as intended), but also a second Short was entered, too!!! What's even worse, that second short was not controlled with closing conditions inside strategy.exit() function and it very often lead to losses exceeding whatever was declared in "loss=" parameter. This could not have worked well...
But HOORAY!!! - it has been fixed and won't happen anymore. So together with other improvements - TradingView's backtester and PineScript is now ok to work with on standard candlesticks :)
Yep, no need to code strategies and backtest them on other platforms anymore.
----------------
Having said the above, there are still some pitfalls remaining, which you need to be aware of and avoid:
Don't backtest on HeikenAshi, Renko, Kagi candlesticks. They were not invented with backtesting in mind. There are still using wrong price levels for entries and therefore producing always too good backtesting results. Only standard candlesticks are reliable to backtest on.
Don't use Trailing Stop in your code. TradingView operates only on closed candlesticks, not on tick data and because of that, backtester will always assume price has first reached its favourable extreme (so 'high' when you are in Long trade and 'low' when you are in Short trade) before it starts to pull back. Which is rarely the truth in reality. Therefore strategies using Trailing Stop are also producing too good backtesting results. It is especially well visible on higher timeframe strategies - for some reason your strategy manages to make gains on those huge, fat candlesticks :) But that's not reality.
"when=" inside strategy.exit() does not work as you would intuitively expect. If you want to have logical condition to close your trade (for example - crossover(rsi(close,14),20)) you need to place it inside strategy.close() function. And leave StopLoss + TakeProfit conditions inside strategy.exit() function. Just as in attached code.
If you're working with pyramiding, add "process_orders_on_close=ANY" to your strategy() script header. Default setting ("=FIFO") will first close the trade, which was opened first, not the one which was hit by Stop-Loss condidtion.
----------------
That's it, I guess :) If you are noticing other issues with backtester and would like to share, let everyone know in comments. If the issue is indeed a bug, there is a chance TradingView dev team will hear your voice and take it into account when working on other improvements. Just like they heard about the bug I described above.
P.S. I know for a fact that more improvements in the backtesting area are coming. Some will change the game even for non-coding traders. If you want to be notified quickly and with my comment - gimme "follow".
FRAMA - Supertrend strategyFRAMA Strategy
I found this strategy on internet, in a well-known forex forum.
I have translated the two indicators mentioned in that strategy (originally in mq4) in pine script.
Thanks to Fractured and Shizaru for the FRAMA snippets, to mejialucas for Supertrend snippet, to JayRogers for trade management snippet and to Trost for backtesting snippet.
I also added some code to have FRAME with a deiiferent timeframe
Indicators set-up:
FRAMA period 24 (it was originally 25 but it's better to use an even number)
FRAMA timefarme lower then chart timeframe (e.g. daily chart and weekly FRAMA)
Supertrend indicator as it is.
Of course, it is better to adapt above setting to traded instrument.
Long/Buy rules:
1 - Enter at crossover between FRAMA and its signal
2 - Option to filter entries based on supertrend signal
3 - Exit when Supertrend change direction;
4 - Exit long when short signal occurs;
Short/Sell rules:
1 - Enter at crossunder between FRAMA and its signal
2 - Option to filter entries based on supertrend signal
3 - Exit when Supertrend change direction;
4 - Exit short when long signal occurs;
VERY IMPORTANT NOTE: this is a trend following strategy, so the target is to stay in the trade as much as possible (drawdown my be high). If your trading style is more focused on scalping and/or pullbaks, this strategy is not for you.
Credits to who developed this startegy (google it).
Thanks to all pinescripters mentined in the code for their snippets.
I have also a study with alerts.
Please use comment section for any feedback or contact me if you need support.
Combo Backtest 123 Reversal & Donchian Channel Width 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
The Donchian Channel was developed by Richard Donchian and it could be compared
to the Bollinger Bands. When it comes to volatility analysis, the Donchian Channel
Width was created in the same way as the Bollinger Bandwidth technical indicator was.
As was mentioned above the Donchian Channel Width is used in technical analysis to measure
volatility. Volatility is one of the most important parameters in technical analysis.
A price trend is not just about a price change. It is also about volume traded during this
price change and volatility of a this price change. When a technical analyst focuses his/her
attention solely on price analysis by ignoring volume and volatility, he/she only sees a part
of a complete picture only. This could lead to a situation when a trader may miss something and
lose money. Lets take a look at a simple example how volatility may help a trader:
Most of the price based technical indicators are lagging indicators.
When price moves on low volatility, it takes time for a price trend to change its direction and
it could be ok to have some lag in an indicator.
When price moves on high volatility, a price trend changes its direction faster and stronger.
An indicator's lag acceptable under low volatility could be financially suicidal now - Buy/Sell signals could be generated when it is already too late.
Another use of volatility - very popular one - it is to adapt a stop loss strategy to it:
Smaller stop-loss recommended in low volatility periods. If it is not done, a stop-loss could
be generated when it is too late.
Bigger stop-loss recommended in high volatility periods. If it is not done, a stop-loss could
be triggered too often and you may miss good trades.
WARNING:
- For purpose educate only
- This script to change bars colors.
DMT Autobot StrategyDMT its a Modified homemade Trend Reversal Indicator base on Volatility & Average true range
You have to have a defined trading plan and you also have to believe it. For this, it is necessary to have coordination and harmony between the conscious and subconscious part of the individual, That is why it is so difficult for most retail traders to be profitable
ĐΜŦ is designed to identify spots in the market that offer some of the most suitable buy and sell scalping trading opportunities plus swing trading over runs.
ĐΜŦ is comprised of three inputs, which are helping to identify the volatility of a security. To determine the level of volatility there are three ranges included in the equation
Input 1 - Current Day's Range
Input 2 - How High has the security risen from the previous day's close
Input 3 - How low has the security dropped from the previous day's close
One of the greatest challenges for new traders is avoiding drawdowns on their account. Drawdowns are what kills a trader's ability to consistently earn over the long haul and creates enormous emotional pain and turmoil.
Drawdowns are a result of two factors:
(1) over-leverage and
(2) extremely volatile stocks. One could argue that if you get to number 1 right, the volatility is irrelevant; however, these two elements are not always mutually exclusive.
HOW TO USE
Buy and sell signals for entry
and 1 take profit levels
1 adjustable stop loss level for each direction.
easy to set up with Autobot service and alert system trading
VIX + moving average low-drawdown SPY strategyAims to be a simple way to avoid recessions by combining two complementary tools that work well together: A simple moving average crossover (death cross & golden cross) to detect a bull markets and run with it, and a crossover between the VIX and a moving average of its previous peaks to get out as quickly as possible during periods of volatility.
The Death cross gets you out of slow drawn-out bear markets. The VIX gets you out of sudden rapid crashes.
Ichimoku+P&F+Stoch+NoRange+HL+crossupThis is a highly advance trading strategy for high frequency trading on Bitmex, Binance Futures, ByBit and others. I'm using variations of this script to manage $500K institutional account! Forward tested results available for 1.5 years. This script uses combination of Ichimoku cloud on multi-timeframe. Uses Stochastic RSI indicator on multi-timeframe. Uses Point and Figure analysis. Used EMA crossup for longs
Currently looking for Beta Testers.
Instructions:
1. Each coin is unique so needs a lot of time to fine tune the parameters.
2. This parameters tuned only for Longs (inquire for Shorts)
3. This is only tuned for BTC but I have tuned parameters for all coins (inquire for help)
Settings:
1. Chart timeframe: 3
2. P&F timeframe: 1
3. Ichimoku timeframe: 15
5. Stochastic timeframe: 15
Current exchange integration: Bitmex, Binance Futures, Bybit... More will be added soon.
05 MOSTÇİFTATRBBW STRATEGYENG: A private strategy for my Algo Trade students at Borfin for ALARMS and backtesting purposes.
TUR: Borfin Algo Trade öğrencileri için paylaştığım bir robotun ALARM ve BACKTEST amaçlı stratejisidir.
04 MOSTÇİFTATR STRATEGYENG: A private strategy for my Algo Trade students at Borfin for ALARMS and backtesting purposes.
TUR: Borfin Algo Trade öğrencileri için paylaştığım bir robotun ALARM ve BACKTEST amaçlı stratejisidir.
03 MOSTATRBBW STRATEGYENG: A private strategy for my Algo Trade students at Borfin for ALARMS and backtesting purposes.
TUR: Borfin Algo Trade öğrencileri için paylaştığım bir robotun ALARM ve BACKTEST amaçlı stratejisidir.
Coinbase_3-MIN_HFT-StrategyThis conceptual strategy trades against the short-term trend. The first position can be either long or short.
In the short-term, prices fluctuate up and down on wide spread exchanges.
And if the price moves to one side, the price tends to return to its original position momentarily.
This strategy set stop order. Stop price is calculated with upper and lower shadows.
Easy Loot Trailing Stop Bot - (PSAR) StrategyHello World,
Today I am bringing you a Parabolic Stop and Reverse Strategy that uses a 5% trailing stop loss.
Tested the strategy on the 1D timeframe of Bitcoin from the time period starting from 2018 onwards.
As you may know the price in the start of 2018 for Bitcoin was around $11,000 meaning if you bought and HODL'd since then you'd be down a good %, as current price is $8650.
Below is the strategy testing results, up 844% profits in the last two years.
Easy Loot Members Only, contact me if you'd like access to the strategy.
Parabolic Stop and Reverse (PSAR) Strategy
Parabolic SAR is a time and price technical analysis tool primarily used to identify points of potential stops and reverses. In fact, the SAR in Parabolic SAR stands for "Stop and Reverse". The indicator's calculations create a parabola which is located below price during a Bullish Trend and above Price during a Bearish Trend.
Trailing Stop Loss
A trailing stop-loss order is a special type of trade order where the stop-loss price is not set at a single, absolute dollar amount, but instead is set at a certain percentage or a certain dollar amount below the market price.
GMS: RSI & ROC StrategyThis is a basic strategy like the RSI one I posted. This one adds in the Rate of Change indicator as well.
You can separate the two for RSI only and ROC only. Everything else is the same as the RSI strategy.
- Simple moving average trend filter.
- Simple moving average trade exit.
- Both long and short or each on it's own.
The source code should be open if you want to see it or modify it for your own project. I hope it helps!
Andre
Global Market Signals
Dominator StrategyThis is the Strategy Version Of Dominator you can choose your take profit level and dates for backtesting calculates fee as well
Do investors appreciate a good animal mascot? It seems like it. Bull and bear markets are key investing lingo and symbols, capturing positive feelings (bull) or negative ones (bear). There’s no official rule, but a bull market tends to refer to a 20% increase in a market over time from its bottom, while a bear represents a 20% decrease from its top. In general, “bull” positivity or “bear” negativity can refer to upward or downward movements of almost anything, like individual stocks. And you’ll even notice investors saying they’re “bullish” on an industry with growth potential or “bearish” on a stock they think will drop .
Dominator will give you the calculation of the wave between Bull&bear
How to use :
Long Alert signal = Bull Wave on the market
Short Alert signal = Bear wave on the market
Apply these fundamentals to any time frame and you will be able to read the correction into the trend or even the trend reversals.
Trailing SL Strategy [QuantNomad]I'm a big fan of simple strategies.
This one is a very simple one. So it consists only from one Trailing SL. When SL is hit, the position is reversed and SL is tracked for a new position.
You can choose one of 3 types of SL:
% of your price
ATR - it is calculated as current ATR * multiplier
Absolute
As you can see even this simple strategy can show pretty good results.
BEST ABCD Pattern StrategyHello traders
This is the strategy version of this script
I - Concept
I present to you, ladies and gentlemen, the first screener for harmonic patterns.
Starting with an ACBD pattern screener this time!!
I used the calculations from Ricardo Santo's script
In short, he's using fractals (regular or Bill Williams ) for the pattern calculations. A masterpiece !!!
II - Definitions
The ABCD pattern ( AB=CD ) is one of the classic chart patterns which is repeated over and over again.
The ABCD pattern shows perfect harmony between price and time.
The Williams Fractal is an indicator, developed by Bill Williams, that aims to detect reversal points (highs and lows) and marks them with arrows.
Up fractals and down fractals have specific shapes. The Williams Fractal indicator helps users determine in which direction price will develop
💎Strategy filters💎
I included some cool backtest filters:
- flexible take profit in USD value (plotted in blue)
- flexible stop loss in USD value (plotted in red)
The take profit and stop loss should work with Forex/FX pairs as well
All the BEST
Dave
The 1h Wick Wicky - Bitcoin BeatsThis script Uses a bunch of different indicators in order to catch wicks.
Included are:
SAR
JME
Range Filter
ADX
RSI
MACD
Automatic Plotted TP
Unconfirmed entries followed by confirmed entries
This is a combination of different indicators therefore the credit shall not go to me but I have changed certain parameters in order to benefit backtesting profitability.
Trade at your own risk!