Pyramiding Strategy To Study [mcristianrios]This script simulates what goes behind scenes in a Strategy and it serves to know in Study mode how many positions are running at the same time.
Осцилляторы
Pure Stochastic long onlyJust a stochastic for giving you a smart and quick signals of entering and exiting.
Your enter is K>D in the low band and close > last bar's high.
An Ema has been added for targeting and stops.
You exit also in case of high values of K or in case D crosses over K but in the "upper".
Length, periods and level of bands are personalized.
The system goes long only, because it fits at best for shares only; I leave you the attemp of writing code for other classes and for going short, in particular.
SUGGESTIONS:
Keep Oversold period high (> 20, also 40-45)
Keep Emaperiodfast higher (> 5)
MAs & RSI strategy long onlyThis system originates from many articles by Enrico Malverti, Trading System, 2015.
Many trading systems are more stable if you use simple and not so innovative indicators, like exponential moving averages and Relative Strengthe index.
Differently by the original article:
- there is no ATR Filter, but we have introduced a Schaff Indicator. If you have multiple shares/commodities to choose, prefer what has a better value of Schaff;
- there is no fixed stop loss but a second moving average (fast), used as target. There are also Simple Mov Averages on lows (trailing stop loss for long) and a SMA on highs (trailing stop loss for short position).
Be careful, in the system only long case, because being short is not the reverse of being long (as stated in my blog)
SMA on highs are therefore only graphically put.
In this version, I’ve changed the “religious” use of EMAs (“sponsored by” Alexander Elder) to “ordinary” MAs: this because since simple moving averages measure all the factor in addition egual each one, this involve a sort of “offset” in the graph, while EMAs give a major “importance” to the last value (last close itself, you’re already considering): therefore this calculation may be counterproductive.
HOW TO OPERATE
BUY when prices crosses over SMAon long period (we suggest, however, sma long = Sma fast period = no. 11 for italian and european shares)
SELL when
prices go under SMA on lows (7 period), or under on SMA fast!
RSI crosses under level 70 or is higher than 75 (or 80, but in code there is 75)
Combo Backtest 123 Reversal & Dynamo 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
In July 1996 Futures magazine, E. Marshall Wall introduces the
Dynamic Momentum Oscillator (Dynamo). Please refer to this article
for interpretation.
The Dynamo oscillator is a normalizing function which adjusts the
values of a standard oscillator for trendiness by taking the difference
between the value of the oscillator and a moving average of the oscillator
and then subtracting that value from the oscillator midpoint.
WARNING:
- For purpose educate only
- This script to change bars colors.
Dominator Ladder StrategyThe Dominator is a technical indicator. Based on algorithm calculations, this indicator extrapolates the previous price for the next bar.
Here is how Dominator is calculated:
1. The study estimates the price projected for the next bar. The estimated price is based on the algorithm method.
2. The study extrapolates this value to find a projected price change for the next bar.
The resulting extrapolated value is shown as a histogram on a lower subgraph. By default, sections of the histogram where the extrapolated value is increasing are shown in green; sections corresponding to the decreasing value are shown in red.
Note: Value projection is purely mathematical as all calculations are based on algorithm averaging of previous values.
Note: lower subgraph it's just for you to understand and view the waves during the Strategy process Study it's not included in this strategy.
Overlay True
The strategy includes 3 different adjustable levels for the ladder , plus automatic adjustable stop loss and takes profit calculated from your average entry price after each ladder adds.
Adjustable BAcktest Window.
1 long signals
3 ladder long add signals
1 short signals
3 ladder short add signals
1 dynamic stop calculated from your average entry price
1 dynamic take profit calculated from your average entry price
PowerBot Binary Backtest FrameworkHello Traders,
This is the backtest framework for testing the Powerbot algorithm before activating alerts which can be used for precise Trading.
Powerbot can be used across any timeframe and across any expiration based on the performance
This backtest comes with some features to help traders make a decision on the following:
When using the indicator itself.
1. We use our proprietary algorithm - "Powerbot binary algorithm script", which is Public but can only be accessed based on request. If you would like to use the algorithm please ensure you have tested different assets and varying expiration for your trades through the backtest - if you don't know how to do that please contact us by sending a message.
EXPLORE YOUR OPTIONS FOR TRADING THROUGH VARIED ITERATION.
2. You can choose any expiration time by changing the expiration time period from the 'settings' button, this will display new results. example; on a 5 minutes chart timeframe, 6 bars would be 30 minutes, which means 5 minutes times 6, which is 30 and minutes because your timeframe is set to minutes. Another example is that on a 1-hour timeframe, 12 bars would be 12 hours, given 1 * 12 is 12hours, because your timeframe is set to hours.
3. You can choose the trading session you want, please note that we have included the three most active sessions - ASIAN, EU/UK, & US Session, by default, the scripts checks for performance on 24/7, which means it does not omit trades outside of the trading session. The Tradingview time is in UTC (or GMT -4). The best times to trade are during sessions most active times.
This backtesting indicator is free to add to the chart if you would like to use the algorithm during your trading session you need to contact us. After which you can use the algorithm for as long as you want.
Please note that no signal can work in all timeframe across all markets that is why backtesting to search for algorithms with at least 50% performance ratio is excellent for trading. All you need is to diversify alerts across to assets or more to rake in profits.
If you require assistance in understanding what session would work best, you can send us a message to work through the process together.
Thank you for you support. This script is free to use to see potential of the indicator itself.
We are NOT allowed to advertise any script on sale based on tradingview house rules.
Wishing you all the best.
Reversion Scalp Bot v4Name: Reversion Scalp Bot
Symbol: XBTUSD
Suggested Equity: 15%
Leverage: 10X or 25X
Candles: 1-minute
Type: Scalp
Description:
This scalp bot uses medium leverage to scalp small but high certainty movements on the 1-minute timeframe. In a proprietary feature, the algo is built for in and out trades essentially based on mean reversion and volume indicators.
The Algo is also leveraging pattern recognition and backtested volume analysis. You are trading with the exchange's built-in systems that drive liquidations and insurance funds. Each trade will be longer no than one hour.
inwCoin Stochastic RSI + MACD Filter StrategyinwCoin Stochastic RSI Strategy with MACD as trend filter.
Parameters Setup
===============
* everything are self-explanatory.
Entry Logic
===========
Long/Cover Short Signal :
- If SmoothK > Bottom Line and SmoothD is crossing up Bottom Line = BUY SIGNAL
- In human word : Both lines cross up bottom line from below.
- If "Use MACD as trend filter" checked, long signal will trigger if MACD > 0
Short/Close Long Signal :
- If Smooth K < Top Line and SmoothD is crossing down Top Line = SELL SIGNAL
- In human word : Both lines cross down top line from top.
- If "Use MACD as trend filter" checked, short signal will trigger if MACD < 0
How to use in real trade
===============
1) Just add to the chart and see the backtest result. Make sure to adjust commission and slippage properly.
2) Recommended to using in Daily Timeframe.
Extra
=====
Short Entry Example ( 2018-2020 )
hamster-bot HiDeep strategy// DESCRIPTION OF STRATEGY
HiDeep Strategy
Author foresterufa
This is a counter-trending strategy that is gradually gaining a position against the trend at the best price.
A prerequisite for completing a position is the price exit from the internal channel on the chart and the appearance of the HiDeep indicator.
The condition for closing the position is touching the opposite side of the internal channel.
A condition for facilitating closure along the middle line of the channel, with high price volatility , is that the price touches the border of the external channel.
Input signals are generated by HiDeep indicators. Closing a position by moving averages.
Combo Backtest 123 Reversal & Dynamic Pivot Point 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
This Pivot points is calculated on the current day.
Pivot points simply took the high, low, and closing price from the previous period and
divided by 3 to find the pivot. From this pivot, traders would then base their
calculations for three support, and three resistance levels. The calculation for the most
basic flavor of pivot points, known as ‘floor-trader pivots’, along with their support and
resistance levels.
WARNING:
- For purpose educate only
- This script to change bars colors.
XPloRR S&P500 Stock Market Crash Detection Strategy v2XPloRR S&P500 Stock Market Crash Detection Strategy v2
Long-Term Trailing-Stop strategy detecting S&P500 Stock Market Crashes/Corrections and showing Volatility as warning signal for upcoming crashes
Detecting or avoiding stock market crashes seems to be the 'Holy Grail' of strategies.
Since none of the strategies that I tested can beat the long term Buy&Hold strategy, the purpose was to detect a stock market crash on the S&P500 and step out in time to minimize losses and beat the Buy&Hold strategy. So beat the Buy&Hold strategy with around 10 trades. 100% capitalize sold trade into new trade.
With the default parameters the strategy generates 10262% profit (starting at 01/01/1962 until release date), with 10 closed trades, 100% profitable, while the Buy&Hold strategy only generates 3633% profit, so this strategy beats the Buy&Hold strategy by 2.82 times !
Also the strategy detects all major S&P500 stock market crashes and corrections since 1962 depending on the Trailing Stop Smoothness parameter, and steps out in time to cut losses and steps in again after the bottom has been reached. The 5 major crashes/corrections of 1987, 1990, 2001, 2008 and 2010 were successfully detected with the default parameters.
The script was first released on November 03 2019 and detected the Corona Crash on March 04 2020 with a Volatility crash-alert and a Sell crash-alert.
I have also created an Alerter Study Script based on the engine of this script, which generates Buy, Sell and Volatility signals.
If you are interested in this Alerter version script, please drop me a mail.
The script shows a lot of graphical information:
the Close value is shown in light-green. When the Close value is temporarily lower than the Buy value, the Close value is shown in light-red. This way it is possible to evaluate the virtual losses during the current trade.
the Trailing Stop value is shown in dark-green. When the Sell value is lower than the Buy value, the last color of the trade will be red (best viewed when zoomed)
the EMA and SMA values for both Buy and Sell signals are shown as colored graphs
the Buy signals are labeled in blue and the Sell signals are labeled in purple
the Volatility is shown below in green and red. The Alert Threshold (red) is default set to 2 (see Volatility Threshold parameter below)
How to use this Strategy?
Select the SPX (S&P500) graph and add this script to the graph.
Look in the strategy tester overview to optimize the values Percent Profitable and Net Profit (using the strategy settings icon, you can increase/decrease the parameters), then keep using these parameters for future Buy/Sell signals on the S&P500.
More trades don't necessarily generate more overall profit. It is important to detect only the major crashes and avoid closing trades on the smaller corrections. Bearing the smaller corrections generates a higher profit.
Watch out for the Volatility Alerts generated at the bottom (red). The Threshold can by changed by the Volatility Threshold parameter (default=2% ATR). In almost all crashes/corrections there is an alert ahead of the crash.
Although the signal doesn't predict the exact timing of the crash/correction, it is a clear warning signal that bearish times are ahead!
The correction in December 2018 was not a major crash but there was already a red Volatility warning alert. If the Volatility Alert repeats the next weeks/months, chances are higher that a bigger crash or correction is near. As can be seen in the graphic, the deeper the crash is, the higher and wider the red Volatility signal goes. So keep an eye on the red flag!
Here are the parameters:
Fast MA Buy: buy trigger when Fast MA Buy crosses over the Slow MA Buy value (use values between 10-20)
Slow MA Buy: buy trigger when Fast MA Buy crosses over the Slow MA Buy value (use values between 21-50)
Minimum Buy Strength: minimum upward trend value of the Fast MA Buy value (directional coefficient)(use values between 10-100)
Fast MA Sell: sell trigger when Fast MA Sell crosses under the Slow MA Sell value (use values between 10-20)
Slow MA Sell: sell trigger when Fast MA Sell crosses under the Slow MA Sell value (use values between 21-50)
Minimum Sell Strength: minimum downward trend value of the Fast MA Sell value (directional coefficient)(use values between 10-100)
Trailing Stop ATR: trailing stop % distance from the smoothed Close value (use values between 2-20)
Trailing Stop Smoothness: MA value for smoothing out the Trailing Stop close value
Buy On Start Date: force Buy on start date even without Buy signal (default: true)
Sell On End Date: force Sell on end date even without Sell signal (default: true)
Volatility EMA Period: MA value of the Volatility value (default 15)
Volatility Threshold: Threshold value to change volatility graph to red (default 2)
Volatility Graph Scaler: Scaling of the volatility graph (default 5)
Important : optimizing and using these parameters is no guarantee for future winning trades!
Combo Backtest 123 Reversal & Dynamic Momentum Index 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
This indicator plots Dynamic Momentum Index indicator. The Dynamic Momentum
Index (DMI) was developed by Tushar Chande and Stanley Kroll. The indicator
is covered in detail in their book The New Technical Trader.
The DMI is identical to Welles Wilder`s Relative Strength Index except the
number of periods is variable rather than fixed. The variability of the time
periods used in the DMI is controlled by the recent volatility of prices.
The more volatile the prices, the more sensitive the DMI is to price changes.
In other words, the DMI will use more time periods during quiet markets, and
less during active markets. The maximum time periods the DMI can reach is 30
and the minimum is 3. This calculation method is similar to the Variable
Moving Average, also developed by Tushar Chande.
The advantage of using a variable length time period when calculating the RSI
is that it overcomes the negative effects of smoothing, which often obscure short-term moves.
The volatility index used in controlling the time periods in the DMI is based
on a calculation using a five period standard deviation and a ten period average
of the standard deviation.
WARNING:
- For purpose educate only
- This script to change bars colors.
Laguerre RSI by KivancOzbilgic STRATEGYBacktesting.
" Laguerre RSI is based on John EHLERS' Laguerre Filter to avoid the noise of RSI .
Change alpha coefficient to increase/decrease lag and smoothness.
Buy when Laguerre RSI crosses upwards above 20.
Sell when Laguerre RSI crosses down below 80.
While indicator runs flat above 80 level, it means that an uptrend is strong.
While indicator runs flat below 20 level, it means that a downtrend is strong. "
Developer: John EHLERS
Author: KivancOzbilgic
ARKADIY V1.0This strategy is made for trading Bitcoin (BTC) using data from BITMEX exchange on 4 hour timeframe.
There is also a special indicator for the strategy to receive alerts on your tradingview platform which is very handful to enter the market as soon as there is a buy/sell signal.
Strategy is based on Pine script v.4 and it uses several indicators and oscillators (modified RSI, CCI, ADX, TRIX and EMA) to generate a buy/sell signal for BTC.
There is no repaint, which means that a signal will not disappear when price goes in wrong direction.
And this is one of the advantages of the strategy over other 90% strategies.
The strategy is a SWING strategy, which means that a signal for opening a position (buy or sell) at the same time closes previous position.
Because of its specificity the strategy doesn’t have take profit/stop loss options and doesn’t use leverage.
The strategy has a backtest statistics on TradingView. 2018 – 1197%, 2019 – 79%, until March 13, 2020 – 88% of net profit.
Max drawdown (the sum of non-profitable trades until receiving a profitable trade) during a year not more than 14%.
To get access to the strategy write in comments and in private messages.
_____________________________________________________________________________________________________________
Данная стратегия работает на инструменте биткоин ( BTC ) по котировкам биржи BITMEX на 4 часовом таймфрейме, а также имеет удобные алерты для сигналов на сделку (будильник).
Это позволит Вам заниматься своими делами, не следя за тем, что происходит на рынке, но в нужное время совершить сделку, получив предупреждение на телефон / компьютер.
Стратегия построена на последней версии Pine Script, в ее основе лежит совокупность множества индикаторов и правил (модифицированные RSI, CCI, ADX, TRIX and EMA), которые в определенный момент дают сигнал на покупку или продажу BTC . Стратегия протестирована с использованием аргумента "Recalculate After Order is Filled" и подразумевает "non-repaint" базис. Другими словами, если стратегия показала вход в сделку (по итогу закрытия свечи) - то сигнал так и остается без изменений. Это выгодно отличает данную стратегию от 90% таковых в Trading View и дает уверенность, что появившийся сигнал не исчезнет в случае, если рынок пойдет в противоположную сторону.
Данная стратегия относится к сегменту SWING стратегий, когда один сигнал является одновременно закрытием одной сделки и открытием противоположной.
В связи со спецификой стратегии она не использует стоп-ордера, поэтому предполагает торговлю без плечей.
Ваш риск ограничен временным интервалом от момента, как цена пошла в противоположную сторону, до момента пока стратегия не дала сигнал на перекладку в новую сделку.
Статистика, подтвержденная бэктестом в Trading View, за последние пару лет: 2018 - 197%, 2019 - 79%, на 13.03.20 - 88%. Это данные по Чистой прибыли на вложенный капитал.
Максимальная длящаяся просадка (совокупность минусовых сделок до момента возникновения плюсовой сделки) в течение года составляет не более 18%
Основные отличия от индикаторов наших коллег:
+ Результаты бэктеста не в excell, а в платформе Trading View – прозрачная статистика по сделкам
+ Построен на принципах non-repaint basis – сигналы не исчезают и не появляются из неоткуда
+ Работает на 4Н таймфрейме. Это значит сделки не могут быть чаще, чем в раз в 4 часа. Занимайтесь своими делами, пока стратегия стоит на страже рыночного анализа. Она сама Вам сообщит, когда нужно открыть / закрыть сделку.
+ Разберется любой! Стратегия построена по принципу one-click setup
+ Поддержка с возможностью организации телефонного звонка.
Для предоставления доступа к данной стратегии - пожалуйста пишите в комментариях запрос с копией в личные сообщения. Мы быстро с Вами свяжемся.
Fractal Breakout StrategyFractal
A type of pattern used in technical analysis to predict a reversal in the current trend. A fractal pattern consists of five bars and is identified when the price meets the following characteristics:
1. A shift from a downtrend to an uptrend occurs when the lowest bar is located in the middle of the pattern and two bars with successively higher lows are positioned around it.
2. A shift from an uptrend to a downtrend occurs when the highest bar is located in the middle of the pattern and two bars with successively lower highs are positioned around it.
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 !