TripleEMA + StochasticRSI + ATR Scalping Strategy by TradeSmartCOINBASE:BTCUSD Hello everyone and welcome to our second script release!
This script is one of many upcoming scripts. This one is a test for us, how it works, how you guys like this kind of stuff, and for feedback what we should change/improve at.
So feel free to comment any suggestions you have.
SCRIPT IS OPTIMIZED FOR:
BTC/USD (Coinbase) 15 minute timeframe
(Keep in mind default settings does not include trading fees, you can set it at the properties)
I recommend using this script on a trading exchange where the fees are extremely low or on an exchange where you get paid to place limit orders.
(I am not a financial avdvisor and none of this is financial advice.)
Now you can modify the following:
Stochastic RSI
3 different EMA
Length of ATR (for stop loss and take profit)
Stop Loss and Take Profit Risk to Reward ratio
Choice between Capital Risk on each trade or Risk of % of Capital
Allowing Short/Long entries only
Limit between dates
Trading days 1-7
We will update the script with more and more features taking in consideration your requests.
Hope you like it! Don't forget to let us know what we should change or improve. Thanks, and have a great day!
STRATEGY ENTRY RULES
LONG
When EMAs are lining up (meaning for ex. 400 < 13 < 7), and the Stochastic RSI crosses upwards (meaning blue line crosses orange upwards), then go long.
SHORT
When EMAs are lining down (meaning for ex. 7 < 13 < 400), and the Stochastic RSI crosses downwards (meaning blue line crosses orange downwards), then go short.
TAKE PROFIT
When price hits the exit price (calculated from stop loss with the risk ratio)
STOP LOSS
When price hits stop loss then exit the position.
QUANTITY TO BUY (Risk per Trade % or Capital %)
Risk Per Trade % attribute: we can set how much money we want to risk on one trade. Meaning that if we lose that particular position, then a Risk Per Trade % value of our equity will be lost.
Example: if you set the Risk Per Trade % to 1 % and you have a 100$ account balance, then if you loose the trade you will loose 1$ max.
Capital % we can set with how big % of our capital we want to enter into a position. Meaning that we enter with a set % of our capital.
Example: if you set the Capital % to 1 % and you have a 100$ account balance, then you will enter the position with 1$.
First Release Settings: (2021-10-25) for BTC/USD (Coinbase) 15 minute timeframe
Stochastic RSI settings: (Not displayed in the script. If you want to see it you have to add it separately.)
K: 3
D: 2
RSI Length: 6
Stochastic Length: 16
RSI Source: hlc3
EMA 1: 5
Source One: Close
EMA 2: 12
Source Two: Close
EMA 3: 215
Source Three: Close
Length of ATR: 16
Stop Loss Multiplier (risk): 3.6
Exit Price Multiplier (reward): 1
Risk Percentage: 3
Allow Long Entries: yes
Allow Short Entries: yes
Valid Trading Days: 1234567
The valid trading days of the Limit Trading Time feature. Numbers represent the days: Sunday (1), Monday (2), Tuesday (3), …, Saturday (7)
If you like this one, follow for more scripts! Thank you for your support!
Strategy!
Cava Signals Backtesting/VisualizerPLEASE READ THE DESCRIPTION CAREFULLY
Trying this again, as it seems I keep violating the rules unintentionally. Moderator, please forgive me as I try to make this right.
This backtesting/visualizer script was created for me to get a visual idea of the Cava Signals indicator throughout its development time and continuous optimization.
This script is to be used on the 30-minute timeframe on supported markets, and whether I can only publish strategies on regular candles, the indicator is meant to trigger on heikin ashi candles.I understand backtesting on non-regular candles produces unrealistic results, but I emphasize that this script is more for visualization purposes rather than accurate $ amounts from the trades. The signals are used along with a dedicated bot configuration, so part of the strategy is not managed by the script, but by the bot's config.
Some behind the scenes on what we are looking at:
a combination of ema and sma crosses on different time frames (5m, 15m, 30m, 60m and 90m) - we call this the wave trend
a combination of stochastic rsi on different time frames (10m, 30m)
a combination of schaff trend cycles on different time frames (5m, 20m and 30m)
a combination of money flow index on different time frames (10m and 30m)
volume information for each supported market/pair
and a couple of other info particular to each pair
With the above combination of data points, we try to optimize our strategy for an entry, for dca'ing down in case the coin goes down as well as dca'ing up to maximize profit when a coin is going up, take profit levels when we recognize a good time to do so, and of course, a closing level. I would like to emphasize the *visualization* purpose of this script in recognizing lows, highs, and market structure to identify the important levels to signal - this script is NOT to be used for accurate backtesting, but for an idea of the overall performance of when signals are triggered.
Let me try to explain the workflow and icons you see on the chart:
The colored circles on the bottom of the chart are all buy signals; each color corresponds to a particular buy signal, we have a combination of 9 possible situations that would trigger a buy signal. Some would trigger a buy signal only in combination with other buy signals or other indicators within the script. we also display a green upwards arrow below bars when a buy signal is triggered.
The colored arrows pointing down on the top of the chart are close signals. We have a combination of 5 closing criteria each color corresponds to one, just like the buy signals do. We only close a trade in profit. If not in profit, we will look to DCA down.
DCA signals are shown by the green flag above bars. they are signals to DCA up or down depending on the trade being negative or positive. DCA'ing up or down is also managed by the bot's configuration for limits on when to accept the signal.
Take Profit levels are shown by the green diamond above bars and work in conjunction with the bot's config on when to take the signal if at all and other take profit levels. Usually, when we hit the first take profit level we move our stop loss to entry via the bot's take profit safety feature. You can see this call with the close entry named TPS .
The black bars you may see on the chart is to illustrate when the market is extended based on a particular strategy. During this period we will not trigger a buy signal unless there is a huge spike in positive volume .
The green number below the bars is the total positive delta volume on the buy candles.
On the table on the right upper corner, we show some information on the market and performance of the backtesting - for visualization purposes only!
Currently, the script is tailored to work with the following markets/pairs:
Binance Spot: ADA, ALGO, ATOM, AVAX, BNB, BTC , DOT, ETH, LINK, LUNA, MATIC, SOL, VET, XRP, XTZ
Binance Futures: BTC , ETH, ADA, ALGO, ATOM, BNB, COMP, DOT, ENJ , LINK, OCEAN, OMG, SOL, VET, XMR, XRP, XTZ, AVAX, AAVE, DOGE, LTC, LUNA, MKR , NEAR, ONT, RUNE, SUSHI, LTC, XLM , COMP, ONT, THETA, FTM , EGLD , WAVES, ONE, HTN , CHZ , HOT, MANA, CRV , RVN, BAT, ANKR, 1INCH, ALICE, ATA , AXS , CHR , COTI, NKN , RAY, REN, SRM , SXP , TLM
ByBit Inverse Perpetual: BTCUSD , ETHUSD
ByBit Futures: AAVE, ADA, ALGO, AVAX, AXS , BNB, BTC , DOT, ETH, LINK, LTC, MATIC, SOL, SUSHI, UNI , XEM, XRP, XTZ
The chosen pairs are subject to change based on the best-performing assets we are constantly analyzing.
I hope this helps to understand the script, its purpose and ideas. I hope this satisfies the community rules - it was not my intention to break them - if there's anything on the above or the script that still violates the guidelines, please let me know and accept my apologies in advance.
If anyone would like to know more, let me know in the comment section.
Thank you!
[Fedra Algotrading Strategy]English / Spanish
Algotrading strategy optimized for cryptocurrencies. Originally conceived to trade automatically through bots (that's how I use it), it also works to get signals and trade manually in any exchange.
It works in spot. It does not repaint. Works in 15M, 30M, 1H and 4H (I prefer short periods).
Features:
Buy the dip:
Attempts to buy on the dip, finding entries when the price makes abrupt dips that break the linear regression of the last periods (default 40).
Trailing Take Profit:
Once the percentage established for the take profit is reached, the strategy follows the price if it is rising until it stops rising and only then makes the sale.
Trend Detection:
Determines whether the market is in an uptrend or downtrend by crossing 2 SMAs. This affects the performance of the strategy. This works as a filter to avoid making entries in a downtrend.
Trailing Break Even:
If the market enters a downtrend with an open trade, a Trailing Break Even is triggered, (configurable, default 1.5%). The intention is to close the trade as soon as possible, but without losses. The value of 1.5% is intended to cover commission costs and a possible spread. Like the Take Profit, the Trailing Break Even follows the price as it rises until it stops doing so before closing the trade.
How to use this strategy?
In the properties of the strategy you assign the amount you will trade (default 100), the percentage of the total capital you will use in each trade (default 100%) and the value of the commissions (default 1%).
Select the pair to trade. The strategy is optimized for trading pairs with stable coins. The strategy benefits from volatility so choosing among currencies with a market cap between 50M and 10,000M gives better profits than with top 10 currencies.
In the strategy options, disable the stoploss by setting it to 100% to be able to concentrate on the Take Profit.
With an eye on the "Net Profit" of the strategy, start with the take profit at 3% (for lower percentages there is the Break Even) and increase it 1 by 1 until determining which is the best for our pair (the one that gives us a better net profit).
Once the Take Profit is established, enable the StopLoss starting from 1 and choosing the best parameter looking for the balance that makes us feel comfortable between the Net Profit and the total of closed operations.
Test this same with candles of different periods (I trade with 15M and 30M candles).
Tip:
To trade automatically using a bot, I recommend using pairs in which the strategy has a profitability higher than 80%.
To counteract possible overfitting, when the strategy has given me a 30% profit, I recalculate the optimal parameters.
If you are interested in auromatizing it to trade on Binance, Binance US, AAX, Kucoin, Liquid, Okex, Bitfinex, Bittrex, Coinbase Pro, Gemini, HitBTC, Kraken or Poloniex, I recommend using Quadency bots, they are free and the ones I use.
This will eventually be a paid script, but you can request free access for now.
I am still working on optimizations, improvements, and more features.
DCA version coming soon.
I leave some optimizations of the spares I am trading at the moment (On 15M candles):
PAIR SL TP Bars Profit Profit Rentability
OM 3 4 96 70 2703.41% 88.57%
NU 4 3 96 81 1170.38% 86.42%
ONE 4 4 192 83 756% 91.57%
FTM 8 4 192 80 900.00% 92.50%
LUNA 3 8 192 78 410.98% 83.33%
OMG 6 4 192 72 408.75% 88.89%
FRONT 2 5 96 61 406% 85.25%
SOL 5 10 96 84 381.78% 83.33%
UTK 2 4 192 59 520.00% 88.06%
NMR 2 3 96 76 279% 80.26%
STPT 1 4 96 84 272.34% 79.76%
ROSE 5 4 96 59 478.00% 88.00%
clv 4 5 192 46 216% 78.26%
XTZ 4 6 96 87 216.00% 82.76%
C98 1 6 96 36 184.46% 80.56%
ALGO 7 4 192 61 222.00% 88.52%
ATOM 6 4 96 73 160.40% 86.30%
DOT 3 6 96 75 156.54% 84%
REEF 4 4 96 67 154.90% 85.07%
AUDIO 10 5 192 62 128.48% 83.87%
DYDX 1 10 96 20 120.76% 90%
DOT 4 6 96 77 111.33% 83.12%
KEEP 7 5 96 69 110% 87%
MINA 7 6 96 23 100.29% 86.96%
OPUL 1 5 96 18 95.26% 100%
HBAR 1 3 192 76 91.82% 81.58%
VRA/USDT 7 4 96 81 89.35% 81.48%
XEC 3 14 96 27 89.24% 85.19%
*****************************************************SPANISH*****************************************
Estrategia de Algotrading optimizada para criptomonedas. Originalmente concebida para operar de manera automática mediante bots (así la utilizo yo), funciona también para obtener señales y operar manualmente en cualquier exchange.
Funciona en spot. No repinta. Funciona en 15M, 30M, 1H y 4H (Yo prefiero periodos cortos)
Características:
Buy the dip:
Intenta comprar en el dip, encontrando entradas cuando el precio hace bajadas abruptas que rompen la regresión lineal de los últimos periodos (por defecto 40)
Trailing Take Profit:
Una vez alcanzado el porcentaje establecido para el take profit, la estrategia acompaña al precio si está en ascenso hasta que deja de subir y recién ahí realiza la venta.
Detección de Trend:
Determina si el mercado tiene una tendencia alcista o bajista mediante el cruce de 2 SMAs. Esto afecta el funcionamiento de la estrategia. Esto funciona como filtro para evitar realizar entradas en una tendencia bajista.
Trailing Break Even:
Si el mercado entra en tendencia bajista con una operación abierta, se activa un Trailing Break Even, (configurable, por defecto 1.5%). La intención es cerrar la operación lo antes posible, pero sin pérdidas. El valor de 1.5% está pensado para cubrir los costos de comisiones y un posible spread. Al igual que el Take Profit, El Trailing Break Even acompaña al precio mientras sube hasta que deja de hacerlo antes de cerrar la operación.
Cómo utilizar esta estrategia?
En las propiedades de la estrategia se le asigna el monto con el que va a operar (por defecto 100), el porcentaje del total de capital que utilizará en cada operación (por defecto 100%) y el valor de las comisiones (por defecto 1%)
Seleccionar el par a operar. La estrategia está optimizada para operar en pares con stablecoins. La estrategia se beneficia con la volatilidad por lo que elegir entre las monedas con un market cap de entre 50M y 10.000M da mejores beneficios que con monedas del top 10
En las opciones de la estrategia, deshabilitar el stoploss configurándolo en 100% para poder concentrarnos en el Take Profit.
Con un ojo en el “Beneficio Neto” de la estrategia, comenzar con el take profit en 3% (para porcentajes menores está el Break Even) e ir aumentándolo de 1 en 1 hasta determinar cuál es el mejor para nuestro par (el que nos proporciona un major beneficio neto).
Establecido el Take Profit, habilitar el StopLoss partiendo de 1 y eligiendo el mejor parámetro buscando el equilibrio que nos haga sentir cómodos entre el Beneficio Neto y el total de operaciones cerradas.
Probar esto mismo con velas de diferentes periodos (Yo opero con velas de 15M y 30M)
Consejo:
Para operar de manera automática mediante un bot, recomiendo utilizar pares en los que la estrategia tenga una rentabilidad superior al 80%
Para contrarestar posible overfiting, cuando la estrategia me ha dado un 30% de profit, vuelvo a calcular los parámetros óptimos.
Si te interesa auromatizarla para operar en Binance, Binance US, AAX, Kucoin, Liquid, Okex, Bitfinex, Bittrex, Coinbase Pro, Gemini, HitBTC, Kraken o Poloniex, recomiendo usar los bots de Quadency, son gratiutos y los que yo utilizo.
Este será eventualmente un script pago, pero puedes solicitar acceso gratuito por ahora.
Sigo trabajando en optimizaciones, mejoras, y más funciones.
Próximamente versión DCA.
Dejo algunas optimizaciones de lo spares que yo estoy operando en este momento (En velas de 15M contra BUSD):
PAR SL TP Bars Operaciones Profit Rentabilidad
OM 3 4 96 70 2703.41% 88.57%
NU 4 3 96 81 1170.38% 86.42%
ONE 4 4 192 83 756% 91.57%
FTM 8 4 192 80 900.00% 92.50%
LUNA 3 8 192 78 410.98% 83.33%
OMG 6 4 192 72 408.75% 88.89%
FRONT 2 5 96 61 406% 85.25%
SOL 5 10 96 84 381.78% 83.33%
UTK 2 4 192 59 520.00% 88.06%
NMR 2 3 96 76 279% 80.26%
STPT 1 4 96 84 272.34% 79.76%
ROSE 5 4 96 59 478.00% 88.00%
clv 4 5 192 46 216% 78.26%
XTZ 4 6 96 87 216.00% 82.76%
C98 1 6 96 36 184.46% 80.56%
ALGO 7 4 192 61 222.00% 88.52%
ATOM 6 4 96 73 160.40% 86.30%
DOT 3 6 96 75 156.54% 84%
REEF 4 4 96 67 154.90% 85.07%
AUDIO 10 5 192 62 128.48% 83.87%
DYDX 1 10 96 20 120.76% 90%
DOT 4 6 96 77 111.33% 83.12%
KEEP 7 5 96 69 110% 87%
MINA 7 6 96 23 100.29% 86.96%
OPUL 1 5 96 18 95.26% 100%
HBAR 1 3 192 76 91.82% 81.58%
VRA/USDT 7 4 96 81 89.35% 81.48%
XEC 3 14 96 27 89.24% 85.19%
ATR-Adjusted RSIThis indicator adjusts the RSI values using the Average True Range. It is used the same way as a normal RSI.
Forex Fractal EMA ScalperThis is a forex scalper designed for very short timeframes 1-5 min max.
At the same time due to the short timeframe, is recommend to re optimize it weekly .
Its components are
Fractals
Triple EMA with different lengths
Rules for entry:
For long : we have an up fractal and all 3 ema are in ascending order
For short: we have a down fractal and all 3 ema are in descending order.
Rules for exit
We exit when we either get a reverse order or when we hit the take profit or stop loss calculated in fixed pips.
Vertex EMA StrategyRecently found an article sharing an EMA strategy written by Vertex. I copied a majority of the Long conditions into code here with some visual aid.
Essentially, watch for a the 8 EMA to be greater than the 21 EMA, and all the EMA's to be spread apart. Then get your trigger bar from a retracement from the 8 bar EMA. Stop on the lowest low of the past 5 bars, or on EMA 8 crossunder EMA 21.
This is intended to only be used on a 1h chart.
This was made for a friend.
Disclaimer : Please do your own research before making any decisions financially. I am not your financial advisor.
Six Factors Ichimoku 1.0This strategy has the purpose to help dummies to get experienced when trade with Crypocurrencies, using the Ichimoku indicator
The following script shows an strategy based on Ichimoku indicator. Taking into account the theoretical concepts of the Ichimoku Kinko Hyo, are defined six (6) factors to open position and two (2) factors to close it. According to the author of the book, in which is based the script, it is stablished that the proper combination of the six factors when the timeframe is set in 1D and the assest Cryptocurrencies (not applicable to stable Coins), has demonstrated in the Backtesting good results.
Althoug is not the purpose, the Ichimoku indicator is composed by six components (Tenkan Line, Kijun Line, Senkou Span A, Senkou Span B and Kumo Cloud) and the relative position of the current price of the assest compared with ichimoku components define these factor.
Factors to open position
Factor one. The current price is over the Ichimoku Cloud
Factor two. When Senkou Span A is greater thant Senkou Span B, proyected 22 periods forward.
Factor three. Senkou Span A, has a positive slope, during the previous periods.
Factor four.The Tenkan Line (quick line) is above the Kijun Line (slow line) during the previous periods.
Factor five. The Chikou Span Line is above the Kumo
Factor six. The slope of the sma (200) is positive.
The long entry is recomended when the following expresion is matched
F1 and F2 and F4 and F5 and (F3 or F6)
Factors to close position
Factor one. Tenkan line has a downward trajectory for previous periods. If the price change during this periods the counter reset and start again trying to prevent exit from quick variations.
Factor two. Current price is below Kijun line
The time to close position is recommended when the following expresión occurs
F1 and F2
Some of the features of the script are the following:
Initial amount of investment stablished on 100€, but can be modified by the user.
User can easily modified the period for backtesting purposes.
"Show factors" give the user and easy interface to know the current status of the strategy`s factors. The factors appears color red (false) and color green (true)
It is possible to cancel Factor F5, which is interesting after the assests has dumped strongly. The color black means that F5 is canceled.
Change the output criteria by F1 or F2 (not recommended) but available for learning purposes.
Auxiliary lines that help to idenfify strong resistances that could compromise the strategy
Enjoy it !!!
Miguel A. Calatayud
hamster-bot ZZCompilation of various modifications of the trend breakout reversal strategies based on the ZigZag .
Includes past versions of scripts:
version 1 ZZ2 Breakout reversal strategy
version 2 ZZ2 with experimental options hamster-bot ZZ Breakout reversal strategy
version 3 ZZ6 Noro's ZZ-6 by hamster-bot The original script is available here
The original script is available here
Description ZZ6 :
New version of ZZ-strategy.
Repaint?
Normal lines are not redrawn. Dotted lines repaint, but do not affect trading (do not affect backtests). You can turn off repaint in the script settings. Repaint (dotted lines) are needed only for clarity. To make it clear from which bar the level is created.
Levels
Lime lines above - level from a local high bar. To open a long position. Using a market stop order.
Red line at the bottom - the level from a local low bar. To open a short position. Using a market stop order.
Trading
You can trade without short positions. Then the red line is the level for a stop-loss order.
Reverse trading can be used. Without stop-loss orders.
Risk size
Order size depends on the risk size parameter and possible loss. If risk size = 2%, it means that the loss will be no more than 2%.
For crypto
Symbols: XBT/USD, BTC /USD, BTC /USDT, ETH/USD, etc - need USD(T)
Timeframes: 1h, 4h, 1d
This new ZZ strategy includes all the best practices for this strategy. the script has great flexibility of settings.
Instructions for script parameters:
Parameter ZZ Type - is responsible for the basic type of strategy used (usually it is responsible for building levels)
then you will need to configure the settings block corresponding to the selected ZZ type .
At the moment the script contains types: ZZ2 + ZZ6
The rest of the parameters are common for any type of ZZ.
Further development will be done in this script. The above scripts will not be updated.
At the moment the options are already available:
- Take Profit
- Stop Loss
- One entry Long/Short
- Single entry
- Levels offset
- Levels multiplier
- Levels angle
MFI Simple StrategyHere I've made a simple strategy based off a simple moving average of an MFI length.
Back tested on a BYBIT:BTCUSDT 30m chart.
Conditions:
---When the price is above the golden SMA of 200 bars---
- Buy: when MFI is moving up
- Sell: when MFI is moving down
- Stop: golden SMA of 200 bars
If you would like alerts:
1.) Add the strategy to your chart,
2.) Go to "Create Alert",
3.) Select "MFI Simple Strategy" in your alert creator,
4.) Select whatever notifications settings or message settings,
5.) Finally, click "Create" and you're good to go.
Disclaimer: Please do your own research before making any decisions financially. Past results do not guarantee future results.
Cumulative RSI StrategyI suppose nothing drives a point home like a 10+ year backtest! A couple of weeks ago I published a custom indicator called the Cumulative RSI. This indicator was straight out of chapter 9 of "Short Term Trading Strategies That Work." Today I am publishing a basic sample strategy in that uses the Cumulative RSI as its only entry and exit signals on a Nasdaq 100 leveraged index ETF (TQQQ). In this example, the indicator is being used as a longer term strategy with just 10% leverage over the account equity and a $25k start balance.
If I had it 10 years ago I would probably be retired! I'm sharing because I've found that it can provide an edge when determining exit/take profit points for trades. Many traders wait for a price reversal / trailing-stop to exit a trade when it starts losing. I've found that, using tools like the Cumulative RSI, you can achieve better exit points over the long term. Disclaimer: Even though this example significantly beats buy and hold, I wouldn't advise using it as a stand-alone strategy without significant additions/modifications to strategy and risk management functions.
Standard Deviation ModelsBITFINEX:BTCUSD
The standard deviation model can be used for options traders that are selling options contracts to collect a premium to identify a specific range of strike prices which are optimal for selling based on the underlying asset’s historical price fluctuations. Traders will be able to identify the statistical likelihood that their options contract will be in the money (ITM) or out of the money (OTM).
Basic statistics of normal distributions (probability curve):
-1 SD to +1 SD = 68% likelihood
-2 SD to + 2 SD = 95% likelihood
-3 SD to +3 SD = 99% likelihood
Volume and Moving average,will this model working in real-trade?i`ve recently made this script through few month,understand me if there are some incorrect grammar or something.
basically this script is based on moving average strategy and the bollinger bands
if the buy volume is bigger than sell volume,also buy volume is bigger then daily average volume than it`s defined current market is bullish and entered(of course there is some other conditions)
the exit condition is find the highest price after entered,keep refresh the highest price through time and then,if the current price is ?%lower then highest price,it will closed the position.
my question is this : 1 this model will working in real-trade?
2 why the winning rate is 100%?
- i`ve coded if the position margin over -10%,close the position this code isn`t work? or the other profit line is prevent that happened?
Weekly Put SaleWeekly Put Sale
This study is a tool I use for selling weekly puts at the suggested strike prices.
1. The suggested strike prices are based on the weekly high minus an ATR multiple which can be adjusted in the settings
2. You can also adjust the settings to Monthly strike prices if you prefer selling options further out
3. I suggest looking for Put sale premium that is between 0.25% to 0.75% of the strike price for weekly Puts and 1% to 3% of the strike price for monthly Puts
Disclaimers: Selling Puts is an advanced strategy that is risky if you are not prepared to acquire the stock at the strike price you sell at on the expiration date. You must make your own decisions as you will bear the risks associated with any trades you place. To sum it up, trading is risky, and do so at your own risk.
Moses Long-term Index ETF Investing StrategyMoses is a script designed for long-term Index ETF investors.
Moses Goals.
1. Alerts you when a major crash is starting or is underway (Bear Market Signal)
2. Warn you of price events in the market that may lead to increased volatility and downward price pressure (Shock Event Warning)
3. Clearly inform you when the market is in a bull phase (growing) or bear phase (decreasing) (Bull/Bear Signal)
4. Inform you if the market is showing early signs of recovery from a crash
5. Alert you to catastrophic events, which are extreme one bar price drops (typically occurring before or during a major stock market crash)
Moses Logic.
Moses is the product of years of testing, but the application of the logic is simple.
1. Moses is designed specifically to work on a weekly chart (5 days per bar). Do not use the scripts on daily, monthly, or intraday charts
2. Moses Uses 4 Moving Average Indicators
3. Moses uses the position of price and the moving averages to determine the state of the market (Bull/Bear/Recovery)
4. Moses uses price action to determine shock events and catastrophic event warnings
5. The script is hardcoded to start trading in 1997. Why? So that the script's primary goal of avoiding crashes is tested on 3 major crashes, the Dotcom 2000, the Financial Crisis 2008, and the Corona Crash in 2020.
How Moses Works
Being able to exit the market before or during a large market crash enables you to preserve a portion of your equity from decline. Buying back into the market on a Bull Market or Early Recovery Signal enables you to enter the market at a lower price. This goal is achieved during major crashes.
As with all scripts, there are false signals which may incur a losing trade; you can see in the strategy tester results the % of Winning/Losing Trades.
Strategy Setup In Tradingview
Initial Capital $10,000
Order Size 100% of equity (this is because it is a long-term strategy with only one trade in play – you are either long or not invested, using a smaller position size means you cannot meaningfully compare a Moses strategy to a Buy & Hold Strategy)
Commission is $5 per trade (this is negligible because the strategy only trades at most once per year)
Slippage – 10 ticks
This Script Displays the 5 Main MOSES Signals Directly On Your Chart To Help Your Investing Decision Making
1. Bull Market Signal - Green
2. Bear Market Signal - Red
3. Stock Market Recovery Signal - Amber/Yellow
4. Shock Event Warning - Shock Label on Price
5. Catastrophic Event Warning - Red Catastrophe Label
Includes 5 Moses Scripts
• Moses Signals 2.0 (plots all alerts directly on the price chart)
• Moses Buy on Bull - Sell on Bear (Plots a buy on the first Bull Market Signal - Closes All Positions on a Bear Market Signal)
• Moses Buy on Bull - Sell on Catastrophe (Plots a buy on the first Bull Market Signal - Closes All Positions on a Catastrophic event)
• Moses Buy on Recovery - Sell on Catastrophe (Plots a buy on the first Recovery Signal - Closes All Positions on a Catastrophic Event)
• Buy & Hold Script (Used to compare the effectiveness of the strategies versus a Buy and Hold Strategy)
As the script has 3 Moses Strategies, the idea is that you choose the strategy that best fits the ETF you are trading.
Moses is a long-term investing strategy that has historically outperformed the US and European Major Indices for the last 24 years. There is no guarantee of future performance.
Moses has outperformed the market (buy and hold strategy) from 1997 on the:
Nasdaq 100, S&P500, Russell 3000, Nasdaq Composite, EuroStoxx 50, Italian Milano Borsa, German DAX, Paris CAC40
Moses does not outperform the market on:
Nifty 50, BSE Sensex, ASX 200, Chinese Market
Backtested Performance
Test Timeframe Jan 13 1997 - Sept 21 2021
Duration Years 24.75
Initial Investment $10,000
North America Strategy-------------------------------$ Return------------CAGR-------Total %
Nasdaq 100 Buy & Hold----------------------------$176,380-----------12.30%------1664%
Buy Bull - Sell Bear------------------$288,554-----------14.55%------2786%
Buy Bull - Sell Catastrophe---------$202,491-----------12.92%------1925%
Buy Recovery - Sell Catastrophe---$229,866-----------13.50%------2199%
North America Strategy-------------------------------$ Return-----------CAGR------Total %
S&P 500 Buy & Hold----------------------------$58,122-----------7.37%------481%
Buy Bull - Sell Bear------------------$48,544-----------6.59%------385%
Buy Bull - Sell Catastrophe $59,573-----------7.48%------496%
Buy Recovery - Sell Catastrophe $64,579-----------7.83%------546%
North America Strategy-------------------------------$ Return-----------CAGR------Total %
Russell 3000 Buy & Hold----------------------------$61,363-----------7.61%------514%
Buy Bull - Sell Bear------------------$52,957-----------6.97%------430%
Buy Bull - Sell Catastrophe---------$64,027-----------7.79%------540%
Buy Recovery - Sell Catastrophe---$71,565-----------8.28%------616%
North America Strategy-------------------------------$ Return-----------CAGR------Total %
Nasdaq Composite Buy & Hold----------------------------$112,839-----------10.29%------1028%
Buy Bull - Sell Bear------------------$123,308-----------10.68%------1133%
Buy Bull - Sell Catastrophe---------$107,699-----------10.08%------977%
Buy Recovery - Sell Catastrophe---$112,453-----------10.27%------1025%
*CAGR - Compound Annual Growth Rate
From a Declaration of Principles jointly adopted by a Committee of the American Bar Association and a Committee of Publishers
This work is provided to you for informational purposes only and should not be construed as an offer to buy or sell a particular security or a solicitation of offers to buy or sell a particular security. The author may make available certain information related to the potential price movement of particular securities. By reading this report or using the training materials, you acknowledge and agree that any reliance upon the content or data available is at your own sole risk. You are strongly advised to use your own judgment, your own research, and question everything. The information is generic in nature and not targeted to individuals or individual circumstances. The author is an independent investor and is not licensed to give formal Stock advice to the individual, run funds of any type, or accept fees for individual stock advice. The Author accepts no responsibility for loss of money for following any of the lessons or systems created. Trading of securities may not be suitable for all users of this information; if in doubt, seek a professional advisor. All use of this work is at your sole risk.
MA&AOThat is quit simple strategy, which combines only two indicators: AO and MA. The logic of trades is also clear, when AO is bullish; slow ma is under the close price; fast ma > slow ma - buy.
MTF C Strategy A
The Pearson coefficient is a type of correlation coefficient that represents the relationship between two variables that are measured on the same interval or ratio scale. It's a measure of the strength of the association between two continuous variables.
This script allows you to choose one or more sources as a curve, if several sources are chosen, their average is taken into account in an EMA or SMA of your choice. It is possible to have the average of all the curves and to add one or more other curves for an influence on the calculated average.
Then, on the basis of this curve a correlation is calculated from 8 time ranges which give 4 curves, it is on this basis that the conditions of entries in the trade and / or exits are based with the possibility of adding an RSI condition.
For some entries, it is possible to try the symmetrically opposite condition, ie the one that is used in shorts.
To make entry short work, you must activate an exit short option.
However, exit conditions are more flexible than entry conditions because they allow the inverse entry condition used and / or to use statistical indices such as CCI / RSI / ROC / BB as exit condition independently or combined way.
It should be noted that if a condition among those chosen is executed substantially first, it will predominate over the others (same for long / short entries).
In addition, it is possible to choose a stop loss as an exit condition, however, it is not possible to combine the other exit conditions with the stoploss at the same time. Credits to adolgov for the base of the stoploss script part.
You can combine several curves, just as it is possible to combine several types of trade entries / exits.
The strategy uses 100% of equity, it has not been configured in such a way that there is an order pyramid and the closings are done on a total equity basis.
You can configure a daily session interval, a limit of the number of daily trades, a limit of drawdown.
You can add comments for each execution of an opening / closing order respectively to the direction (long or short).
Each step of the configuration has a tip, a button that must be hovered over in order to have the information relating to the configuration.
Drawdown strategy indicatorThis indicator uses drawdown and max drawdown to determine good areas to enter or exit the market.
It uses the ratio between those values and two thresholds provided by the user: top and bottom.
These two values will be used to highlight the areas that match the users strategy criteria.
I normally use this indicator on the 4h or higher timeframes.
On BTC using the default parameters it predicts the tops pretty nicely. The areas of accumulation or buy zones are consistent with the ones that follow each halving.
The chart shows:
- Drawdown
- max drawdown
- drawdown average
- drawdown ratio
- buy and sell zones
The study includes alerts for both buy and sell zones.
MACD + BB + RSI Strategy [Alorse]A very simple and highly effective strategy that combines 3 famous indicators:
MACD
Bollinger Bands
RSI
Entry conditions are:
The MACD line crosses over the signal line.
RSI less than 50
Price below the BB baseline
Exit conditions are:
RSI greater than 70
Closing price higher than the upper BB
Or when the price hits the Stop Loss defined by you (Feature).
Swing Stock Market Multi MA Correlation This is a swing strategy adapted to stock market using correlation with either SP500 or Nasdaq, so its best to trade stocks from this region.
Its components are
Correlation Candle
Fast moving average to choose from SMA , EMA , SMMA (RMA), WMA and VWMA
Medium moving Average to choose from SMA , EMA , SMMA (RMA), WMA and VWMA
Slow moving average to choose from SMA , EMA , SMMA (RMA), WMA and VWMA
Rules for entry
Long: fast ma > medium ma and medium ma > slow ma
Short: fast ma< medium ma and medium ma < slow ma.
Rules for exit
We exit when we receive an inverse condition.
Caution:
This strategy use no risk management inside, so be careful with it .
If you have any questions, let me know !
RSI Rising Crypto Trending StrategyThis is crypto and stock market trending strategy designed for long timeframes such as 4h+
From my tests it looks like it works better to trade crypto against crypto than trading against fiat.
Indicators used:
RSI for rising/falling of the trend
BB sidemarket
ROC sidemarket
Rules for entry
For long: RSI values are rising, and bb and roc tells us we are not in a sidemarket
For long: RSI values are falling, and bb and roc tells us we are not in a sidemarket
Rules for exit
We exit when we receive an opposite direction.
Cuation: Because this strategy uses no risk management, I recommend you takje care with it.
If you have any questions, let me know !
WEEKLY BTC TRADING SCRYPTWeekly BTC Trading Scrypt(WBTS)
This script is only suggested for cryptocurrencies and weekly buying strategy which is long term.Using it in another markets(e.g forex,stock,e.t.c) is not suggested. The thing makes it different than other strategies we try to understand bull and bear seasons and buying selected crypto currency as using formula if weekly closing value crossover eight weeks simple moving avarage buy,else if selected crypto currency's weekly closing value crossunder eight weeks simple avarage sell. Eight week moving avarage is also uses weekly closing prices but for being able to use this strategy ,trading pair must have more than eight candles in weekly chart otherwise the 8 weeks simple moving avarage value cannot be calculated and script does not work.
This script has a chart called WBTS and it has following features:
Strategy group consist of 3 inputs:
1)Source: Close by default. Our whole strategy uses close values. You can change it but not suggested.
2)Loss Ratio: Because of the cases like the circumstances that manipulates market or high volatility , sometimes graphic show wrong buying signals and this ratio saves user from big money looses(Note : This ratio will always work when selling condition occurs to make user take his profit or prevent him to loss more money because of a wrong positive comes from the indicator.)
3)Reward Ratio : When selling condition happens it will exit user with more profit(if price is already higher than buying point) otherwise it will dimunish loss a bit(if user is below of buying point) or prevents looses(if user is in buying point when selling condition happened.
MA group consist of 2 inputs:
COLOR:Specifies color of the moving avarage.It is equal to #FF3232by hex color code by default.
LINE WIDTH: Specifies linewidth of the moving avarage. It is 2 by default.
GRAPHIC group consist of 2 inputs:
COLOR: It specifies the color of the line which consist of weekly closing prices. It is equal to #6666FF hex color code by default.
LINE WIDTH: Specifies linewidth of the line which consist of weekly closing prices. It is 2 by default.
STRATEGY EXECUTION YEAR: It will show the orders,profits and looses done by script after the input year giving in it.It is 2020 by default.
The last feature is strategy equity,it is not in one of these groups. User should click on settings button on the WBTS indicator than chose Style section and there is a deactivated check box near in the plot section if user activate it, the equity line will show in indicator's graph.
Logic of This Strategy:The story of this strategy began when I studied BTC's price movement from 2020 to today with 8 weeks simple moving avarage (it takes weekly closes as source) and weekly clossing values. I understood that there was a perfect interest between bull and bear market and following conditions:
buy_condition=crossover(weekly_closing_values,8_week_simple_moving_avarage)
sell_condition=crossover(weekly_closing_values,8_week_simple_moving_avarage)
and I tried same thing on the same and bigger time frames("for example i studied how the strategy works from the beginning to today with bitcoin and what is our final equity") with bitcoin and other cryptocurrencies and this made me saw better the relation between giving conditions and general market psychology, however I also witnessed some wrong positives coming by script and used a risk reward ratio to save user and set risk reward ratio 1/3 after a research.
For both conditions(buy_condition and sell_condition),when they are realised,script will alert users and an order will be triggered.
Before finishing the description,from settings/properties/ user can set initial capital,base currency,order size and type,but it is 100000 for initial_amount and 1 contract for order size by default.
In backtesting I used the options like the following example :
Initial capital=1000
Base_curreny=USD
Order size=40 USD
Properties place must set different by every single user according to his or her capital and order size must not be higher than his total money because this script is not the best or a good script for derivatives. It is only written for long term-crypto spot trading and I strongly recommend to users that margin may cause bad results and please do not use it with any margin or any market different than crypto market.
Thank you very much for reading)
Strangle MoverStrangle Mover is an indicator especially made for option writer / seller who wants to do strangle and adjust the position based on the market trend / movement. It can be use for iron condor strategy too.
Settings: User must know the settings of the indicator before using .
First one is Option Strike Difference , user need to enter the correct option strike difference of the particular instrument / stock / indices, one can get it from option chain. For example, Nifty having 50 points differences in each option strike and bank nifty having 100 points. So, Nifty user must enter 50 and Bank nifty user must enter 100 in this setting.
Second is strangle distance multiply , user can choose the distance from the trend price. For example, nifty user selects 3, strangle line starts showing (3*50) 150 points away strike from the trend area.
Third is Length, default value is 20 which generally used in vwma, donchian channel and other trend finding indicators. User can change if need.
Note: Option Strike Difference and Strangle Distance Multiply is very important setting to use this indicator.
User must do adjustments based on their own risk and strategy. This indicator is only for education purpose.
Pivot Reversal Strategy + alerts via TradingConnector to indicesSoftware part of algotrading is simpler than you think. TradingView is a great place to do this actually. To present it, I'm publishing each of the default strategies you can find in Pinescript editor's "built-in" list with slight modification - I'm only adding 2 lines of code, which will trigger alerts, ready to be forwarded to your broker via TradingConnector and instantly executed there. Alerts added in this script: 14 and 22.
How it works:
1. TradingView alert fires.
2. TradingConnector catches it and forwards to MetaTrader4/5 you got from your broker.
3. Trade gets executed inside MetaTrader within 1 second of fired alert.
When configuring alert, make sure to select "alert() function calls only" in CreateAlert popup. One alert per ticker is required.
Adding stop-loss, take-profit, trailing-stop, break-even or executing pending orders is also possible. These topics have been covered in other example posts.
This routing works for Forex, indices, stocks, crypto - anything your broker offers via their MetaTrader4 or 5.
Disclaimer: This concept is presented for educational purposes only. Profitable results of trading this strategy are not guaranteed even if the backtest suggests so. By no means this post can be considered a trading advice. You trade at your own risk.
If you are thinking to execute this particular strategy, make sure to find the instrument, settings and timeframe which you like most. You can do this by your own research only.