VWMA/SMA 3Commas BotThis strategy utilizes two pairs of different Moving Averages, two Volume-Weighted Moving Averages (VWMA) and two Simple Moving Averages (SMA).
There is a FAST and SLOW version of each VWMA and SMA.
The concept behind this strategy is that volume is not taken into account when calculating a Simple Moving Average.
Simple Moving Averages are often used to determine the dominant direction of price movement and to help a trader look past any short-term volatility or 'noise' from price movement, and instead determine the OVERALL direction of price movement so that one can trade in that direction (trend-following) or look for opportunities to trade AGAINST that direction (fading).
By comparing the different movements of a Volume-Weighted Moving Average against a Simple Moving Average of the same length, a trader can get a better picture of what price movements are actually significant, helping to reduce false signals that might occur from only using Simple Moving Averages.
The practical applications of this strategy are identifying dominant directional trends. These can be found when the Volume Weighted Moving Average is moving in the same direction as the Simple Moving Average, and ideally, tracking above it.
This would indicate that there is sufficient volume supporting an uptrend or downtrend, and thus gives traders additional confirmation to potentially look for a trade in that direction.
One can initially look for the Fast VWMA to track above the Fast SMA as your initial sign of bullish confirmation (reversed for downtrending markets). Then, when the Fast VWMA crosses over the Slow SMA, one can determine additional trend strength. Finally, when the Slow VWMA crosses over the Slow SMA, one can determine that the trend is truly strong.
Traders can choose to look for trade entries at either of those triggers, depending on risk tolerance and risk appetite.
Furthermore, this strategy can be used to identify divergence or weakness in trending movements. This is very helpful for identifying potential areas to exit one's trade or even look for counter-trend trades (reversals).
These moments occur when the Volume-Weighted Moving Average, either fast or slow, begins to trade in the opposite direction as their Simple Moving Average counterpart.
For instance, if price has been trending upwards for awhile, and the Fast VWMA begins to trade underneath the Fast SMA, this is an indication that volume is beginning to falter. Uptrends need appropriate volume to continue moving with momentum, so when we see volume begin to falter, it can be a potential sign of an upcoming reversal in trend.
Depending on how quickly one wants to enter into a movement, one could look for crosses of the Fast VWMA under/over the Fast SMA, crosses of the Fast VWMA over/under the Slow SMA, or crosses over/under of the Slow VWMA and the Slow SMA.
This concept was originally published here on TradingView by ProfitProgrammers.
Here is a link to his original indicator script:
I have added onto this concept by:
converting the original indicator into a strategy tester for backtesting
adding the ability to conveniently test long or short strategies, or both
adding the ability to calculate dynamic position sizes
adding the ability to calculate dynamic stop losses and take profit levels using the Average True Range
adding the ability to exit trades based on overbought/oversold crosses of the Stochastic RSI
conveniently switch between different thresholds or speeds of the Moving Average crosses to test different strategies on different asset classes
easily hook this strategy up to 3Commas for automation via their DCA bot feature
Full credit to ProfitProgrammers for the original concept and idea.
Any feedback or suggestions are greatly appreciated.
Cari dalam skrip untuk "bot"
3Commas Dollar cost averaging trading system (DCA)As investors, we often face the dilemma of willing high stock prices when we sell, but not when we buy. There are times when this dilemma causes investors to wait for a dip in prices, thereby potentially missing out on a continual rise. This is how investors get lured away from the markets and become tangled in the slippery slope of market timing, which is not advisable to a long-term investment strategy.
Skyrex developed a complex trading system based on dollar-cost averaging in Quick Fingers Luc's interpretation. It is a combinations of strategies which allows to systematically accumulate assets by investing scaled amounts of money at defined market cycle global support levels. Dollar-cost averaging can reduce the overall impact of price volatility and lower the average cost per asset thus even during market slumps only a small bounce is required to reach take profit.
The strategy script monitors a chart price action and identifies bases as they form. When bases are reached the script provides entry actions. During price action development an asset value can go lower and in this way the script will perform safety entries at each subsequent accumulation levels. When weighted average entry price reaches target profit the script will perform a take profit action.
Bases are identified as pivot lows in a fractal pattern and validated by an adjustable decrease/rise percentage to ensure significancy of identified bases. To qualify a pivot low, the indicator will perform the following validation:
Validate the price rate of change on drops and bounces is above a given threshold amount.
Validate the volume at the low pivot point is above the volume moving average (using a given length).
Validate the volume amount is a given factor of magnitude above is above the volume moving average.
Validate the potential new base is not too close to the previous range by using a given price percent difference threshold amount.
A fractal pattern is a recurring pattern on a price chart that can predict reversals among larger, more chaotic price movements.
These basic fractals are composed of five or more bars. The rules for identifying fractals are as follows:
A bearish turning point occurs when there is a pattern with the highest high in the middle and two lower highs on each side.
A bullish turning point occurs when there is a pattern with the lowest low in the middle and two higher lows on each side.
Basic dollar-cost averaging approach is enhances by implementation of adjustable accumulation levels in order to provide opportunity of setting them at defined global support levels and Martingale volume coefficient to increase averaging effect. According to Quick Fingers Luc's principles trading principles we added volume validation of a base because it allows to confirm that the market is resistant to further price decrease.
The strategy supports traditional and cryptocurrency spot, futures , options and marginal trading exchanges. It works accurately with BTC, USD, USDT, ETH and BNB quote currencies. Best to use with 1H timeframe charts and limit orders. The strategy can be and should be configured for each particular asset according to its global support and resistance levels and price action cycles. You can modify levels and risk management settings to receive better performance
The difference between core script and this interpretation is that this strategy is specially designed for 3Commas bots
How to use?
1. Apply strategy to a trading pair your are interested in using 1H timeframe chart
2. Configure the strategy: change layer values, order size multiple and take profit/stop loss values according to current market cycle stage
3. Set up a TradingView alert to trigger when strategy conditions are met
4. Strategy will send alerts when to enter and when to exit positions which can be applied to your portfolio using external trading platforms
5. Update settings once market conditions are changed using backtests on a monthly period
Dollar cost averaging (DCA) QFL IndicatorAs investors, we often face the dilemma of willing high stock prices when we sell, but not when we buy. There are times when this dilemma causes investors to wait for a dip in prices, thereby potentially missing out on a continual rise. This is how investors get lured away from the markets and become tangled in the slippery slope of market timing, which is not advisable to a long-term investment strategy.
Skyrex developed a complex indicator based on dollar-cost averaging in Quick Fingers Luc's interpretation. It is a combinations of strategies which allows to systematically accumulate assets by investing scaled amounts of money at defined market cycle global support levels. Dollar-cost averaging can reduce the overall impact of price volatility and lower the average cost per asset thus even during market slumps only a small bounce is required to reach take profit.
The indicator script monitors a chart price action and identifies bases as they form. When bases are reached the script provides entry alerts. During price action development an asset value can go lower and in this way the script will perform safety entries alerts at each subsequent accumulation levels. When weighted average entry price reaches target profit the script will perform a take profit action alert.
Bases are identified as pivot lows in a fractal pattern and validated by an adjustable decrease/rise percentage to ensure significancy of identified bases. To qualify a pivot low, the indicator will perform the following validation:
Validate the price rate of change on drops and bounces is above a given threshold amount.
Validate the volume at the low pivot point is above the volume moving average (using a given length).
Validate the volume amount is a given factor of magnitude above is above the volume moving average.
Validate the potential new base is not too close to the previous range by using a given price percent difference threshold amount.
A fractal pattern is a recurring pattern on a price chart that can predict reversals among larger, more chaotic price movements. These basic fractals are composed of five or more bars. The rules for identifying fractals are as follows:
A bearish turning point occurs when there is a pattern with the highest high in the middle and two lower highs on each side.
A bullish turning point occurs when there is a pattern with the lowest low in the middle and two higher lows on each side.
Basic dollar-cost averaging approach is enhances by implementation of adjustable accumulation levels in order to provide opportunity of setting them at defined global support levels and Martingale volume coefficient to increase averaging effect. According to Quick Fingers Luc's principles trading principles we added volume validation of a base because it allows to confirm that the market is resistant to further price decrease.
The indicator supports traditional and cryptocurrency spot, futures, options and marginal trading exchanges. It works accurately with BTC, USD, USDT, ETH and BNB quote currencies. Best to use with 1H timeframe charts and limit orders. The indicator can be and should be configured for each particular asset according to its global support and resistance levels and price action cycles. You can modify levels and risk management settings to receive better performance
Advantages of this indicator:
The indicator has custom alert settings for each strategy action
The indicator can be used with 3Commas, Cryptohopper, Alertatron or Zignaly bots
The indicator is sustainable to market slumps and can be used for long-term trading
The indicator provides a large number of entries which is good for diversification
Can be applied to any market and quote currency
Easy to configure user interface settings
How to use?
1. Apply indicator to a trading pair your are interested in using 1H timeframe chart
2. Configure the indicator: change layer values, order size multiple and take profit/stop loss values according to current market cycle stage
3. Set up a TradingView custom alert using the indicator settings to trigger on a condition you are interested in
4. The indicator will send alerts when to enter and when to exit positions which can be applied to your portfolio using external trading platforms
5. Update settings once market conditions are changed using backtests on a monthly period
VXMA BotThis strategy is separated version of Cloud MA form VXD Cloud Edition, Let called it "VXMA".
what's changed?
renew TP/SL Work
Simplify code and clean look.
Risk:Reward Calculation
Risk of Ruin Setting can now selected between Fixed $ or %
if Buy your Stoploss will be Swing low
if Sell your Stoploss will be Swing high and can be setting at Pivot Setting
then Auto Position Sizing and TP line will be calculated form there and will show in Orange color line (Draw Position Box is available)
Alert Setting
{{strategy.order.alert_message}}
Python-Bot
github.com
There are 2 mode : one-way mode and hedge mode is different script on my Github profile.
read README. MD and there's video tutorial.
Pls study app.py and it's script before deploy for your own safty and your own risk, I'm NOT responsible for your loss.
GOODLUCK
3C QFL Mean reversalWhat is QFL trading strategy?
QFL stands for Quickfingersluc, and sometimes it is referred to as the Base Strategy or Mean Reversals. Its main idea is about identifying the moment of panic selling and buying below the base level and utilizing Safety orders.
What is Base level or Support Level?
Base level or Support Level refers to the lowest price level that was reached before the moment the price started increasing again. At that level, you can notice that buyers of some cryptocurrencies make a strong reaction.
In this strategy we can also reverse the strategy and go short. But i must warn you that that is alot riskier.
QFL is meant to be used on higher TF's like 1hr, 2hr and 4hr. But this strategy also work well on lower Timeframes.
The script also simulates DCA strategy with parameters used in 3commas DCA bots for futures trading.
Experiment with parameters to find your trading setup.
Beware how large your total leveraged position is and how far can market go before you get liquidated!
Do that with the help of futures liquidation calculators you can find online!
Included:
An internal average price and profit calculating, instead of TV`s native one, which is subject to severe slippage.
A graphic interface, so levels are clearly visible and back-test analyzing made easier.
Long & Short direction of the strategy.
Table display a summary of past trades
Vertical colored lines appear when the new maximum deviation from the original price has
been reached
All the trading happens with total account capital, and all order sizes inputs are expressed in percent.
Scot Signal IndicatorThe Scot Signal Indicator is intended as a Scalping Resource. It was designed to work best on the ❗❗ 5 MINUTE CHART with Bitcoin ❗❗ / USD & USDT pairs.
🟡🔼🔽 Yellow Triangles : these are pre-signals. If the triangle is Pointing Down, then look for a possible Short to come, and vice-versa for Upward facing triangles will go Long.
* Be careful, this is a Canary in the Coal Mine, but not the full signal. Going purely on the triangle as a signal could lead to fake-outs more frequently.
🟩 🟥 Green & Red Boxes : these are "Long" & "Short" signals where the indicator feels the time is safe to enter a trade.
❗ EXITING THE TRADE ❗ : this is a scalping indicator, specifically meant for entering trades, NOT EXITING them. An ideal scalp is $100 - $200 Bitcoin move. Though, we run bots using this indicator, taking scalps as little
as $60, performing up to 8 trades a day.
WinR Bot LONG {rezamehrjoo}Hi, this technical indicator is the best indicator for connecting to interface platforms.
One of the advantages of this indicator is that with just one web hook, you can get a large number of signals and close all trades in profit with Martingle strategy without stop loss.
WinR Bot SHORT {rezamehrjoo}Hi, this technical indicator is the best indicator for connecting to interface platforms.
One of the advantages of this indicator is that with just one web hook, you can get a large number of signals and close all trades in profit with Martingle strategy without stop loss.
3D GATOR %HLThis indicator tracks the 3 day trading bots and measures the high and the low (%).
Usually a trend can change or continue every 3 days.
When volatility decreases and both values are the same gator is going to open its jaws so it's a good time to open a position long. Avoid shorts during low volatility.
On the other hand when volatility increases, and gator has its jaws wide open is a good time to look for shorts.
That's pretty much it.
This indicator was designed by me and created by Marketwatcher.
DMT TEMPELTON PECKIntroduction
Bring your A-game to the market in A-Team style with DMT Templeton Peck – you’ll love it when this plan comes together!
Using customized standard deviations between historic price action ranges and volume metrics, DMT Templeton Peck enables traders to never miss a change in trend.
In its default state, the DMT Templeton Peck indicator displays key information, such as:
• Small trend line
• Large trend line
• Position entry prices
• Take profit levels
• Stop levels
• Buy and sell trend signals
In addition to providing core functionality for the indicator’s strategy signals, traders can use this data to enter or exit trades.
When price crosses both trend lines and consolidates there is a high probability that price will continue to move in the same direction. The most profitable results are achieved when trading in the direction of the current large time frame trend.
When small and large trend lines cross a trading signal is generated which can be used to automate trades. Please see the ‘TradingView Alerts’ section of this document for further details.
The Small & Large trend line’s display can be toggled, and their colors modified in the indicator’s style options as shown below.
Basic Strategy
In its simplest form, the strategy is to buy when the price crosses and consolidates above both trend lines and sell when the price crosses and consolidates below both trend lines.
How to Trade
Confident traders may choose to enter a long position at the point
#1 when the price passes above both trend lines and begins to consolidate.
However, the safer trade is to wait for the trend lines to cross at a point
#2 and then look for an entry in the direction of the local trend.
One price action begins to reverse to the downside the strategy reverses. Confident traders may choose to enter point
#3 when the price passes both trend lines and begins to consolidate once again under the previous price action structure that is now acting as resistance.
A sell signal is generated at the point
#4 which produced a small profit; however, a new short position could have been opened when the price retraced to resistance at a point
#5 and experienced a repeated number of strong rejections.
Do not worry if you miss a trade as there is often more than a single opportunity to enter – like at position #5 when price action retests the previous local price structure as resistance.
The indicator can be used on smaller time frames to scalp or find an entry after a larger time frame has signaled, however smaller time frames will also be “choppy” and should only be traded with a paper-tested strategy.
Traders should take profit on positions at resistance & support levels and look to have fully exited the trade by the time the price crosses back over both trend lines and/or loses a previously established price level.
Indicator Tuning
In its default state the indicator is tuned for swing trades using 30 minute & 1 hour time frames, however, you are encouraged to experiment with the indicator options.
Large & Small Length options define how many historic candles are used for the calculation of the relevant trend line.
As a rule of thumb, larger time frames would use smaller values and smaller time frames would use larger values, ie. On a daily chart, a large and small length could be defined as 400 and 100 respectively.
Please be aware that there are limits to the amount of historical data for any intraday level based on your TradingView subscription level:
• Basic – 5000 bars/candles
• Pro & Pro+ - 10000 bars/candles
• Premium – 20000 bars/cables
TradingView Alerts
By utilizing TradingView alerts DMT Templeton Peck's long and short signals can be used to trigger a trading bot.
To trigger a long position, set the TradingView Alert Condition to the DMT Templeton Peck indicator and select the ‘Long’ trigger condition with the ‘Once Per Bar Close’ option for best results.
To trigger a short position, set the TradingView Alert Condition to the DMT Templeton Peck indicator and select the ‘Short’ trigger condition with the ‘Once Per Bar Close’ option for best results.
Take profit options ‘Long_TP_1’ / ‘Short_TP_1’ and Stop options ‘Stop_long’ / ‘Stop_Short’ can also be configured in the same manner to conditionally trigger a trading bot and can be configured in the indicators Input options.
Crypto Spot Market BotHello Friends.
This script is only for long positions.
How does the algorithm work ?
The Relative Momentum Index
Relative Strength İndex
Average Directional Movement İndex
Momentum
When rsi and adx produce signals in the same direction, the rmi indicator confirms the signal. After the Confirmed Signal, the buy-side transaction is entered , the closed according to the % of profit taking and stoploss specified on the algorithm in the entered transaction.
In the spot market, it is possible to make money even in a down trend
All shared charts run within a 1-hour time frame.
Note : The shared backtest results have been shared as of 9/9/2021 by calculating 50% balance and 2 pyramiding methods in an account of 1000 dollars. Keep in mind that this algorithm will want to try to average down in possible worst-case scenarios. 2% - %3take profit levels will provide consecutive gains in the spot market.
How should the adjustments be made?
Value variables should be made according to formula a and formula b values and backtest results. You can increase the frequency of transactions by lowering the adx and rsi values.
Alarm Features ;
Signal Alert
TakeProfit Alert
Stoploss Alert.
Overview :
Backtest Script Link :
3commas GRID bot VisualisationHello everyone
This is a grid display indicator for a 3-comma grid bot.
Just enter the upper and lower borders of your grid and the number of grid cells in the indicator settings.
It's simple!
Zendog V3 backtest DCA bot 3commasMAJOR UPDATE:
- Update to Pinescript v5
- MAJOR refactor for the logic of how orders are placed. BO order is placed when the condition is first encountered and we are not in a deal.
The extra SO orders (if based on price movement) are all placed on the next candle after BO order, instead of each being placed one after another.
Take profit (if percentage) and Stop loss are placed on the first candle after BO order because if BO and TP are on the same candle TV does not execute properly.
These changes should improve strategy accuracy when multiple prices are hit by the same candle.
- NEW FEATURE: Support to Stop deal using an external indicator (i.e. stop long deal when RSI > 80)
- NEW FEATURE: Support to trigger Safety orders using an external indicator (i.e. trigger each additional SO when RSI < 10, regardless of price movement)
The price movement logic may be implemented in the indicator that plots start / end signals. The SO size is calculated using the configuration of steps.
- NEW FEATURE: Safety order command for 3commas bot. This is implemented using Add funds in the quote currency (for pair BTCUSDT the quote currency is USDT)
The SO size is calculated using the configuration of steps, for exact order size (and price) use the built-in Steps table.
- NEW FEATURE: Addition of extra columns to the steps table: Required price for TP, Required % change for TP, Required % change for BEP (Breakeven point)
- Update to steps table to remove prices when Safety orders are not based on % price change
- The code is opensource. I will not be able to sustain merges for the script, but feel free to use and develop your own version and ping me on discord to review them
and maybe include in the original script
Wunderbit HRT BotWunderbit HRT is a proprietary indicator designed to find pivot points in the cryptocurrency market.
Working timeframes from 30 minutes and above.
The indicator is designed to create automated trading strategies using a webhook.
To create a cryptocurrency robot for this indicator, you need:
1. Create alerts and bind the URL to the webhook.
2. Link the Tradingview indicator to automation services.
For signals, alerts are used: LONG and SHORT
Recommendations for the indicator:
1. Use DSA technology for automation.
2. Be sure to disable the "multiple inputs" function.
3. Use an indicator with oscillators or MACD to confirm the entry point.
WaveTecs StrategyWelcome to the Backtesting version of "WaveTecs Strategy", the indicator itself is an invite-only script called "WaveTecs Indicator" on TradingView.
WaveTecs Strategy
WaveTecs is a Strategy that combines Wave Trend Oscillator and verifies wave momentum by using RSI and Stochastic Oscillator Values.
What is Wave Trend?
One of the most effective indicators in identifying swings is the Wave Trend indicator. Wave Trend plots waves using highs and lows between an upper band and a lower band. It looks for the opening and closing of a new wave trend movement as well as overbought and oversold areas.
How does this modified strategy work?
By using RSI and Stochastic values we are able to verify Wave inflection points to determine if there is a suitable amount of momentum to ride the swing and make profitable trades. Positions are taken or closed based on the rising or falling momentum.
Each value input can be adjusted to best suit the type of market you are trading in. By using the strategy we can optimize these value inputs to yield greater net profits. I have found the RSI and Stochastic values hugely impact entries and exits regarding trades.
For Long conditions:
- RSI & Stochastic needs to be increasing and moving out of oversold conditions to show positive momentum.
- Falling momentum results in a sell signal. I have found RSI less than 65 to be sufficient in most markets however this can be adjusted at any time to yield different results depending on your comfort level.
For Short conditions:
- RSI & Stochastic needs to be decreasing and moving out of overbought conditions to show negative momentum.
Generally, Wave Trend Strategies only take trades that are outside of the bands. This strategy allows trades inside and outside of the bands, which can be selected under the input section title "Aggressive Trading". Trading in this mode is more frequent as signals are often. Due to volatility in crypto markets, I have defaulted the source for Wave Trend waves to be Open/High/Low/Close Average which yielded great results. High/Low/Close average works very well for all other securities, and can easily be adjusted through the drop-down menu inside the inputs.
Works for all types of markets. Parameters can be adjusted but not required as indicator values are standard in the industry.
The default parameters are set to those typically used in the markets currently. However, I have found that if you adjust you to adjust the parameters based on your asset and time frame desired you will yield different results.
----------------
For example:
----------------
ETHUSDT - 4 HR, results are shown below
Wave Trend Parameters:
Aggressive Trading: Yes
Channel Length: 12
Average Length: 24
Overbought Top: 90
Overbought Bottom: 75
Oversold Bottom: -90
Oversold Top: -55
Source: hlc3
Strategy Type:
Trade Direction: Long Only
Stochastic Inputs:
Stoch Length: 18
Smoother %K: 5
Moving Average %K: 4
%K Lower Limit: 21
%K Upper Limit: 80
%K Crossunder Sell: 80
Relative Strength Index Inputs:
RSI Lower Limit: 30
RSI Upper Limit: 70
RSI Sell Value: 68
==================
WaveTecs Features
==================
Profitable Trading Strategy;
Aggressive Trading feature for more trades, with earlier entries and exits;
Customizable inputs to fine-tune your trades;
Buy & Sell Alerts (Indicator Only);
Overlay indicator only to show alerts, WaveTecs Strategy needed to see Wave Trend;
Bot Integration through webhooks;
Two different strategy modes: Long Trades Only or Long & Short Trades
Adding new features & updates whenever possible.
Add both WaveTecs Indicator and WaveTecs Strategy to your chart. WaveTecs Indicator only plots Buy & Sell Alerts, whereas WaveTecs Strategy lets you see what the strategy is doing.
UT Bot v5This is an update by request, on someone elses strategy! well more of an edit, but also update from pine v4 to pine v5.
//CREDITS to HPotter for the orginal code. The guy trying to sell this as his own is a scammer lol.
//Edited and converted to @version=5 by SeaSide420 for Paperina
The UT Bot v5 is Movinging average (the MA) vs ATR (the ATR is in the form intended for use as trailing stop loss (ATR_TSL))
Entry logic:
buy = the MA > ATR_TSL and Price > ATR_TSL
sell = the MA < ATR_TSL and Price < ATR_TSL
The Moving average type can be changed in the settings:
options = "SMA", "EMA", "WMA", "HMA"]
the edits i made were:
convert to v5
Add TP and SL
Add Buy only or Sell only option
Add MA type option
Add price source option
Draw MA and ATR_TSL on-chart
neutronix community bot ML + Alerts 4h-daily (mod. capissimo)Gm traders,
i have been a python programmer for some years studying artificial intelligence for general purpose; after some time i finally decided to have a look at some finance related stuff and scripts.
Moved by curiosity i've decided to make some but decisive modifications to a script i tried to use initially but without success: the LVQ machine learning strategy.
So after studying the charts and indicators, i have rewritten this script made by Capissimo and added heavy filtering thanks to vwap and vwma, then fixed repaint and other issues.
I hope you enjoy it and that it could increase your possibilities of success in trading.
HOW TO USE THE SCRIPT
Add the script to 3h+ charts like for example BTC 4h, 6h, 8h, 12h, daily. (In order for it to work on shorter timeframes charts you can try to change to lookback window but i dont advise it).
Change only rsi and volfilter(volume filtering) settings to try to find the best winrate. Leave dataset to open. Fyi the winrate isn't 100% accurate but can give you a raw vision of final results.
Use alerts included for trading and and in options click on 'Once per bar'. If you have checked 'Reverse Signals' in the control panel you have got more 'risky' signals so be advised if trading futures and stocks.
Exit trade signals not provided, so it is recommended the use of take profits and stop loss (1.5:1 ratio)
As always, the script is for study purposes. Do not risk more than you can spend!
Original LVQ-based strategy made by capissimo
Modified by gravisxv 13/10/2021
QaSH DCA AlgorithmQaSH DCA Algorithm implements a DCA strategy that takes advantage of price volatility by buying dips to average down, and adjusting price targets as the break-even price gets lower.
How does the DCA strategy work?
When the specified entry condition has occurred, the indicator will set up several limit orders below the current price. If price goes up a specified amount, then the layers will be overwritten at the higher prices. If price goes down and fills the first layer (limit order), then the Take Profit price is plotted and will be sent in an alert. If more layers are filled, then the TP price will move down accordingly as it’s based on the average entry price (alerts on each TP update). This action of lowering the average entry and TP price mitigates your risk, and increases the likelihood of a Take Profit event happening. More entry conditions will be added as time goes on, although complex entry conditions are not necessary for the strategy to work. All the meat of the DCA strategy is in the layer placement, order volume , and TP %.
How does this differ from other DCA bots?
1) The layer placements, order volume , and “take profit %” for each layer or “safety order” is much more customizable than what you get from other services. For example, I can choose to have my TP% change, depending on how big the price dip was. Maybe on safety order 1 I want 10% TP, but on safety order 7 might want a 2% TP.
2) Settings optimization. You can take advantage of the replay feature and see how trades would have played out, and how much PnL you would have made (strategy version is coming soon)
3) You can use this indicator on more than just crypto. You can easily set up alerts for manual trades on stocks, or you can integrate it with your stock broker API of choice and automate your trades.
4) When combining this with an automation service, you will get unmatched execution speed by running it on your dedicated machine.
5) I can offer a lifetime subscription to the indicator upon request.
What kind of market is it best used on?
QaSH DCA Algorithm is best used on cryptocurrencies and stocks, and it is best used on assets that are volatile. That means large swings up and down. Also I recommend running this on many uncorrelated assets at the same time.
What settings should I use?
The default settings are decent for most markets, and provide a good balance between profit potential and downside protection, although you can use a wide variety of settings. In a strong bull market its best to either bring up your layers to catch smaller dips, or you can go big on the first few layers (maybe 4 layers, 25% on each layer for example). In a sideways or brearish market you'll want more downside protection, so you'll want the larger orders to be at lower prices.
What should I do if price goes below my last layer?
The best solution is to keep a cash reserve on the side at all times. If price looks like it has reached a low point below your lowest layer, then manually buy more to average down further. This action will help it along and get you in the green sooner.
Disclaimer: In order to get a large position in an asset, you need to have most of your layers fill. That means you have to be comfortable with buying more as the price goes down, patiently waiting for the bounce that occurs afterward. This is the working principle of Dollar Cost Averaging, and it's a proven method for most markets.
3CCI & 3RSI for botsThis script is for trading grid bots. Only CCI and RSI are used, but there are three different timeframes available for each. When using it, you must select a chart with a period equal to or less than the minimum in the indicator settings. For example, the following periods are selected in the settings: 1 hour, 15 minutes, 5 minutes, so we use a 5-minute chart. A buy or sell signal will be received if the settings of all 6 indicators match. The default settings do not carry any information, use your own. The code is quite simple and may be of interest to a beginner like me.
Dump Detector - Stochastic RSIDump Detecter uses Stochastic RSI to detect dumps/downtrends. Can be used as an exit trigger for long bots or an entry trigger for short bots. Change settings to lower timeframe for scalping. Pump signals can be turned on with tickbox.
Default Settings are not the usual Stochastic RSI setup and have been tuned to bitcoin 3hr chart:
Timeframe = 3hrs
smoothK = 3
smoothD = 3
lengthRSI = 6
lengthStoch = 27
src = close
Grid bot development I have completed the next stage of my grid bot which is to isolate the instances in which the market will move sideways in a narrow range.
Rudimentary Grid bot ideaUsing Eulerian principles yet again, this is the beginning of my first grid bot script. Use as static S&R when trading manually. Good for SL and TP setting too.
Backtesting 3commas DCA Bot v2Updating previously published simulated 3commas DCA logic with a sexier insert and more meaningful default parameters.