Sigwo Tech AI - 3m TF BitMex BotI’ve made a ROI of 600%+ (and counting) in 91 days using this bot and the ‘close when large’ method described below. First, some stuff. There are zero guarantees of the bot working well for you like it does me. Some is ‘guts’ and some is ‘damn this bot rocks’. I’m always open to help with advice. I will not listen to whining or otherwise unsavory words. This bot doesn’t substitute learning how to trade. Get a load of this Mango Sauce, it rocks!
You will need a few things:
TradingView account (free account will not work, but be Pro, recommend Pro+)
You will need an AutoView subscription (coupon: 5CPLM-4PY3Q-EEWJN)
You'll need a Bitmex or a Deribit account (bitmex - www.bitmex.com)
VPN (always a good idea when connecting to exchanges)
You need to email info@gojupiter.tech to gain access to the indicator. In the email, we need your TradingView username
Setup instructions:
Add the indicator to your 3m TF chart (not tuned for other timeframes)
Right click on an area of the 'Study STAI' indicator, click "Add alert on 'Study STAI'"
In the box that pops up, select the drop down "Short" and select the box 'Once per bar close'
In the 'Message' box, copy paste the following (no quotes):
"Short!
a=bitmexlive e=bitmex s=xbtusd b=short q=1000 l=10 t=limit"
l=leverage q=quantity of contracts in $ amount
Do the same procedure above to make 'Long' alert, but insert the below in the new 'Message' box.
"Long!
a=bitmexlive e=bitmex s=xbtusd b=long q=1000 l=10 t=limit"
Save the alert. You should now see the alerts in the left side of your browser and a green dot next to them. You are live and ready to rock!
Notes:
You must have a browser open for the orders to fire! You will still receive alerts, but the orders will NOT fire unless a browser is open!
Nothing is infallible. Bots should be checked 3-4 times a day to ensure orders are executing properly and to check if the orders are 'lopsided'. Alerts for price support/resistance should be set by you and checked when the alert comes in. This usually means you have a chance to close a nice large position in profit manually….yes there are some manual interactions you can take with the bot when necessary but it happens maybe 3-4 times a WEEK. This could be more, depending on the price action of the market. Example: Overnight, XBTUSD market was very sideways in a generally upward move. When I woke up, the bot had made a little money (0.0025 or so) but also accumulated a $34,000 short. The short was well positioned (9616) and the market was hovering around 9575. I closed $10,000 manually at 9575 and left the rest until we broke downward to 9540. This brought the bot back into a ‘neutral’ position to alleviate lopsidedness,or being to large in one direction or another. The point of this bot is NOT to make LARGE amounts on every trade….The point of this bot is to be profitable in little chunks by being quick and providing liquidity (0.025% rebate for limit order). Do NOT try to ‘pile on orders’ in the direction your bot is traveling! You WILL eventually lose big. I’ve done it twice, and then I stopped doing that. Over $30,000 lost on those 2 moves because I got greedy and tried to override the bot. (I’ve recovered those losses by letting the bot do its thing)
CLOSE manually do NOT OPEN manually!
Let the bot run 24x7 and leave the orders that are not hit alone...price action will eventually come back and pick it up.
*I reserve the right to remove your access if you are unsavory or I find you conducting unauthorized sharing. You will be warned at LEAST once before any punitive measures are taken.*
在腳本中搜尋"bot"
3Commas DCA Bot Indicator v1.0Introduction
The indicator attempts to implement a majority all of the settings found on the 3Commas DCA Bot setting page that can be implemented within a TradingView indicator. Specifically, it will implement the "Open new trade ASAP" and "Trading View Custom Signal" deal start conditions. In this way, you can leverage the power of TradingView's backtester to model your settings and analysis past performance as well as leverage TradingView's alert notification subsystem to send Deal Start and Close signals to 3Commas using almost any of the thousands of scripts found in the Public Library (see "What does it do and how does it do it?" section below for more information on how to do this using the RSI indicator as an example).
How is it original and useful?
This indicator is unique in that it's the only one (as of the initial publications) that can handle 28 out of 32 bot settings (88% coverage) that are found on the 3Commas bot settings page. In addition, because it is a TradingView script, you will benefit from the following:
Model your bot's configuration using the backtester on any timeframe and evaluate its performance using the chart's history.
View a table of detailed statistics pertaining to deals started and completed, win/loss rates, daily P&L, true max drawdown, and detailed statistics on bars in deal along with safety orders filled.
View a table of "Used amount for each step" as presented in 3Commas as well.
Ability to link to almost any TradingView chart indicator that provides a single data point for buy/sell signals.
Make use of the 3Commas TA Start Conditions indicator to emulate the 3Commas built-in indicators for further performance evaluation with the backtester.
How does it compare to other scripts in the Public Library?
This indicator offers a very detailed, comprehensive settings and maybe the only one (as of the initial publication) that can handle 28 out of the 32 bot settings that are found on the 3Commas bot settings page (that can be handled within TradingView, because some cannot be modeled due to chart and language constraints). Specifically, the following 3Commas bot settings and inputs are addressed with asterisks denoting specific limitation due to TradingView's platform architecture and/or constraints:
Main settings
✅ Name
❌ Exchange* (Not handled since it is inherited from chart)
⚠ Bot type* (Only Single-pair because you simply apply the indicator to as many pairs you desire in separate charts to simulate a Multi-pair setting)
Pairs
❌ Pairs* (Not handled since it is inheriting the symbol from the chart)
Strategy
✅ Strategy
❌ Profit currency* (Not handled since there is no equivalence in TradingView)
✅ Base order size / unit
✅ Safety order size / unit
✅ Start order type
Deal start condition
⚠ TradingView* (You can modify the "Technical Rating" indicator by TradingView to output a signal yourself like @TheTradingParrot has done in the TV signal for DCA backtest script)
⚠ QFL* (See Quickfingers Luc's Base Breaking Strategy v2.5 - 3Commas Edition for an alternative)
❌ Manually/API* (Not handled since there is no equivalence in TradingView)
✅ Trading View custom signal
✅ Open new trade asap
Take profit
✅ Take profit (%)
✅ Take profit type
✅ Trailing
⚠ Trailing deviation* (modified to handle TradingView's broker emulator properly)
Stop loss
✅ Stop Loss (%)
✅ Stop Loss action
⚠ Stop Loss timeout* (modified to use "bars" as the unit of measure)
Safety orders
✅ Max safety trades count (a total of 100 safety orders are supported!)
⚠ Max active safety trades count* (Not handled since there is no equivalence in TradingView)
✅ Price deviation to open safety orders (% from initial order)
✅ Safety order volume scale
✅ Safety order step scale
Advanced settings
✅ Don't start deal(s) if the daily volume is less than
✅ Minimum price to open deal
✅ Maximum price to open deal
⚠ Deal start delay (QFL and standard TV signals only)* (modified to use "bars" as the unit of measure)
✅ Cooldown between deals
✅ Open deals & stop
Close deal after timeout
⚠ The time after which, deal will be closed automatically* (modified to use "bars" as the unit of measure)
In addition to the above inputs, the script will also support the same output data points that are found on the bot settings page, which are:
Assistant
✅ Balance
✅ Max amount for bot usage (Based on current rate)
✅ Max safety order price deviation
✅ % of available balance to be used by the bot
Table (Used amount for each step)
✅ Order No.
✅ Deviation %
✅ Order Size (Base currency)
✅ Order Volume (Quote currency)
✅ Price
✅ Average price
✅ Required price
✅ Required change
✅ Total Size (Base currency)
✅ Total Volume (Quote currency)
What does it do and how does it do it?
When applied to the chart for the first time, the default settings will work to execute the "Open new trade asap" deal start condition using a take profit of 4%, a base order size of 1.335% of equity (initial capital + net profit), a safety order size of 2.003% of equity (initial capital + net profit), a safety order volume scale of 1.5, a safety order step scale of 1.21, and a max safety trades count of 8. With these settings, as you scroll through the chart's history you should see price action crossing the DCA layers (denoted with blue triangles), and a green take-profit price line will render (with green triangle denoting the crossings). Lastly, in the upper-right corner of the chart the table of DCA statistics will render showing you all the gathered data that took place since the chart's starting history until the current time.
Using the "TV Custom Signal" section will allow you to "link" other chart indicators to supply "Start" and "Close" signals for the script. For example, here's how you can use the standard RSI indicator to generate an entry signal:
1) Add the stock RSI indicator and configure it to your desire.
2) Select the "RSI" indicator in the "Chart/Indicator Data Point" input.
3) Select "Chart/Indicator Data Point" in the "Start Deal When" input.
4) Select "Less Than" in the "Is" input.
5) Select "Custom Value(s)" in the "The Value Of" input.
6) Enter "25" in the "Custom Value 1 (Single or Lower Bound)" input.
7) Select "Trading View Custom Signal" in the "Open new trade" input (in the DEAL START CONDITION section).
8) Lastly, check the checkbox with a horizontal straight line above the "Start Deal When" input.
This means that the indicator will start a deal when the "RSI indicator" is "Less Than" the value of "25".
Strategy Results
The default settings are designed to ensure that the indicator will render chart elements when first loaded as well as to allow the backtester to gather order executions and display performance summary. The chart above is is using $10,000 initial capital, a commission rate of 0.1% for both entries and exits, and a 1 tick slippage setting. It is also using 3.22581% of the equity for the Base Order Size, 6.45161% of equity for the first Safety Order Size. The Maximum Safety Trade Count is 4 with a Safety Order Volume Scale of 2, a Safety Order Step Scale of 1.53, Price Deviation To Option Safety Orders at 5.3, and a take profit of 4.5% with Trailing turned on at a deviation of 1.5%. All other settings are defaults.
It is recommended that the indicator be "tuned" for your specific market in order to best implement the strategy and obtain better desirable results. You do so by using the backtester and statistics table and observe the output values and learn how the indicator is performing in the chart history. Using this information, you can adjust the settings accordingly until you find the settings acceptable to your trading goals and risk tolerance.
Always keep in mind that past performance may not be indicative of future results. Settings that seem favorable for one market may be found to be disastrous in another. Therefore, do take the time needed to understand how the settings will behave with the given chart symbol.
Enjoy! 😊👍
How to obtain access to the script?
You have two choices:
Use the "Website" link below to obtain access to this indicator, or
Send us a private message (PM) in TradingView itself.
3Commas DCA Bot Strategy v1.0Introduction
The strategy attempts to implement a majority all of the settings found on the 3Commas DCA Bot setting page that can be implemented within a TradingView indicator. Specifically, it will implement the "Open new trade ASAP" and "Trading View Custom Signal" deal start conditions. In this way, you can leverage the power of TradingView's backtester to model your settings and analysis past performance as well as leverage TradingView's alert notification subsystem to send Deal Start and Close signals to 3Commas using almost any of the thousands of scripts found in the Public Library (see "What does it do and how does it do it?" section below for more information on how to do this using the RSI indicator as an example).
How is it original and useful?
This strategy is unique in that it's the only one (as of the initial publications) that can handle 28 out of 32 bot settings (88% coverage) that are found on the 3Commas bot settings page. In addition, because it is a TradingView script, you will benefit from the following:
Model your bot's configuration using the backtester on any timeframe and evaluate its performance using the chart's history.
View a table of detailed statistics pertaining to deals started and completed, win/loss rates, daily P&L, true max drawdown, and detailed statistics on bars in deal along with safety orders filled.
View a table of "Used amount for each step" as presented in 3Commas as well.
Ability to link to almost any TradingView chart indicator that provides a single data point for buy/sell signals.
Make use of the 3Commas TA Start Conditions indicator to emulate the 3Commas built-in indicators for further performance evaluation with the backtester.
How does it compare to other scripts in the Public Library?
This strategy offers a very detailed, comprehensive settings and maybe the only one (as of the initial publication) that can handle 28 out of the 32 bot settings that are found on the 3Commas bot settings page (that can be handled within TradingView, because some cannot be modeled due to chart and language constraints). Specifically, the following 3Commas bot settings and inputs are addressed with asterisks denoting specific limitation due to TradingView's platform architecture and/or constraints:
Main settings
✅ Name
❌ Exchange* (Not handled since it is inherited from chart)
⚠ Bot type* (Only Single-pair because you simply apply the indicator to as many pairs you desire in separate charts to simulate a Multi-pair setting)
Pairs
❌ Pairs* (Not handled since it is inheriting the symbol from the chart)
Strategy
✅ Strategy
❌ Profit currency* (Not handled since there is no equivalence in TradingView)
✅ Base order size / unit
✅ Safety order size / unit
✅ Start order type
Deal start condition
⚠ TradingView* (You can modify the "Technical Rating" indicator by TradingView to output a signal yourself like @TheTradingParrot has done in the TV signal for DCA backtest script)
⚠ QFL* (See Quickfingers Luc's Base Breaking Strategy v2.5 - 3Commas Edition for an alternative)
❌ Manually/API* (Not handled since there is no equivalence in TradingView)
✅ Trading View custom signal
✅ Open new trade asap
Take profit
✅ Take profit (%)
✅ Take profit type
✅ Trailing
⚠ Trailing deviation* (modified to handle TradingView's broker emulator properly)
Stop loss
✅ Stop Loss (%)
✅ Stop Loss action
⚠ Stop Loss timeout* (modified to use "bars" as the unit of measure)
Safety orders
✅ Max safety trades count (a total of 100 safety orders are supported!)
⚠ Max active safety trades count* (Not handled since there is no equivalence in TradingView)
✅ Price deviation to open safety orders (% from initial order)
✅ Safety order volume scale
✅ Safety order step scale
Advanced settings
✅ Don't start deal(s) if the daily volume is less than
✅ Minimum price to open deal
✅ Maximum price to open deal
⚠ Deal start delay (QFL and standard TV signals only)* (modified to use "bars" as the unit of measure)
✅ Cooldown between deals
✅ Open deals & stop
Close deal after timeout
⚠ The time after which, deal will be closed automatically* (modified to use "bars" as the unit of measure)
In addition to the above inputs, the script will also support the same output data points that are found on the bot settings page, which are:
Assistant
✅ Balance
✅ Max amount for bot usage (Based on current rate)
✅ Max safety order price deviation
✅ % of available balance to be used by the bot
Table (Used amount for each step)
✅ Order No.
✅ Deviation %
✅ Order Size (Base currency)
✅ Order Volume (Quote currency)
✅ Price
✅ Average price
✅ Required price
✅ Required change
✅ Total Size (Base currency)
✅ Total Volume (Quote currency)
What does it do and how does it do it?
When applied to the chart for the first time, the default settings will work to execute the "Open new trade asap" deal start condition using a take profit of 4%, a base order size of 1.335% of equity (initial capital + net profit), a safety order size of 2.003% of equity (initial capital + net profit), a safety order volume scale of 1.5, a safety order step scale of 1.21, and a max safety trades count of 8. With these settings, as you scroll through the chart's history you should see price action crossing the DCA layers (denoted with blue triangles), and a green take-profit price line will render (with green triangle denoting the crossings). Lastly, in the upper-right corner of the chart the table of DCA statistics will render showing you all the gathered data that took place since the chart's starting history until the current time.
Using the "TV Custom Signal" section will allow you to "link" other chart indicators to supply "Start" and "Close" signals for the script. For example, here's how you can use the standard RSI indicator to generate an entry signal:
1) Add the stock RSI indicator and configure it to your desire.
2) Select the "RSI" indicator in the "Chart/Indicator Data Point" input.
3) Select "Chart/Indicator Data Point" in the "Start Deal When" input.
4) Select "Less Than" in the "Is" input.
5) Select "Custom Value(s)" in the "The Value Of" input.
6) Enter "25" in the "Custom Value 1 (Single or Lower Bound)" input.
7) Select "Trading View Custom Signal" in the "Open new trade" input (in the DEAL START CONDITION section).
8) Lastly, check the checkbox with a horizontal straight line above the "Start Deal When" input.
This means that the indicator will start a deal when the "RSI indicator" is "Less Than" the value of "25".
Strategy Results
The default settings are designed to ensure that the indicator will render chart elements when first loaded as well as to allow the backtester to gather order executions and display performance summary. The chart above is is using $10,000 initial capital, a commission rate of 0.1% for both entries and exits, and a 1 tick slippage setting. It is also using 3.22581% of the equity for the Base Order Size, 6.45161% of equity for the first Safety Order Size. The Maximum Safety Trade Count is 4 with a Safety Order Volume Scale of 2, a Safety Order Step Scale of 1.53, Price Deviation To Option Safety Orders at 5.3, and a take profit of 4.5% with Trailing turned on at a deviation of 1.5%. All other settings are defaults.
It is recommended that the indicator be "tuned" for your specific market in order to best implement the strategy and obtain better desirable results. You do so by using the backtester and statistics table and observe the output values and learn how the indicator is performing in the chart history. Using this information, you can adjust the settings accordingly until you find the settings acceptable to your trading goals and risk tolerance.
Always keep in mind that past performance may not be indicative of future results. Settings that seem favorable for one market may be found to be disastrous in another. Therefore, do take the time needed to understand how the settings will behave with the given chart symbol.
Enjoy! 😊👍
How to obtain access to the script?
You have two choices:
Use the "Website" link below to obtain access to this indicator, or
Send us a private message (PM) in TradingView itself.
Simple Grid Lines VisualizerAbout Grid Bots
A grid bot is a type of trading bot or algorithm that is designed to automatically execute trades within a predefined price range or grid. It is commonly used in markets that exhibit ranging or sideways movement, where prices tend to fluctuate within a specific range without a clear trend.
The grid bot strategy involves placing a series of buy and sell orders at regular intervals within the predefined price range or grid. The bot essentially creates a grid of orders, hence the name. When the price reaches one of these levels, the bot will execute the corresponding trade. For example, if the price reaches a predefined lower level, the bot will buy, and if it reaches a predefined upper level, it will sell.
The purpose of the grid bot strategy is to take advantage of the price oscillations within the range. As the price moves up and down, the bot aims to generate profits by buying at the lower end of the range and selling at the higher end. By repeatedly buying and selling at these predetermined levels, the bot attempts to capture gains from the price fluctuations.
About this Script
Simple Grid Lines Visualizer is designed to assist traders in visualizing and implementing automated price grids on their charts. With just a few inputs, this script generates gridlines based on your specified top price, bottom price, and the number of grids or profit per grid.
How it Works:
Specify Top and Bottom Prices: Start by setting the top and bottom prices that define the range within which the gridlines will be generated. These prices can be based on support and resistance levels, historical data, or any other factors you consider relevant to your analysis.
Determine Grid Parameters: Choose either the number of grids or profit per grid, depending on your preference and trading strategy. If you select the number of grids, the script will evenly distribute the gridlines within the specified price range. Alternatively, if you opt for profit per grid, the script will calculate the price increment required to achieve your desired profit level per grid.
Note that when choosing Profit per Grid , an approximation usually is performed, as all grid lines must be evenly distributed. To achieve that, the script computes the grid distance using the mean price between top and bottom, then computes how many of those complete distances may enter the entire range, and lastly, creates a grid with evenly distributed distances as close as possible to the previously computed.
Customize Styling and Display: Adjust the line color, line style, transparency, and other visual aspects to ensure clear visibility on your charts.
Analyze and Trade: Once the gridlines are plotted on your chart, carefully observe how the market interacts with them. The gridlines can act as reference points for potential support and resistance levels, as well as simple buy/sell orders for a trading bot.
Try to find gridlines that intersect prices as frequently as possible from one to another.
A grid with too many lines will make lots of potential trades, but the amount traded will be minimal (as the total amount invested is divided over the number of grids).
A grid with too few lines will make lots of profits with each trade, but the trades will be less likely to occur (depending on the top/bottom distance).
This tool aims to help visually which grid parameters seem to optimize this problem.
Future versions may include automatic profit computation.
Mean reversal QFL v3My aim is to make the bots trade as you would trading QFL manually and “by the book” or at least to my experience and understanding from the material out there of how you should plan a QFL trade.
Im absolutely not a pro trader, I have made my share of costly mistakes trying to be clever or Beeing impatient resulting in painful losses. QFL is we’re I’ve had consistently good results tough.
Is this where I have to say I’m not a financial advisor and all that? Well I’m not. As always Do your own research and backtest, backtest, backtest.
First: I believe no bot strategy are set and forget, while they can run unattended 80-90% of the time you're always going to find yourself in a situation where you will have to manually handle a bad deal. It would also make sense to be somewhat involved in the really good trades making the most out of them. That’s why understanding the strategy the bot Is using is really important, hence why I prefer QFL. It's an easy concept to understand, and proved to be a safe way of making steady profit in pretty much all market conditions if done right.
Some changes in how aggressive you are might be needed if you are the impatient kind of trader who needs to see a lot of deals happening. But it is an added risk. In those cases Luc would advise to start “nibbling” but that would be hard to implement in a bot but I will see if that’s something I can implement.
Same goes for going the more conservative route when market conditions calls for it.
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.
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.
As a bit of a learning material i want to make a few points on important factors in trading using the QFL strategy:
• Identify strong bases
• Read the history of the chart
• No emotions
Trading QFL using a bot has it’s limitations:
· Some of the bases are questionable but im constantly trying to improve this
· The strategy don’t take into consideration chart history(success rate)*
· You need to follow a predefined (by you) buying ladder, hence not considering a particular coin's average price movement, which may vary quite a lot. This why I for now has limited the strategy to SIMPLE bots. So that unique alerts can be created for each pair.
· A set Take profit %, possibly making you miss out on higher profits(This is easy to change during a trade though), and no chance of selling in layers(This is coming soon).
1. Some of the bases are questionable
The strategy will start trades of bases that you wouldn’t consider being a strong base(or a base at all) when looking at the chart.
For those not as familiar with QFL. What is a base, and what qualifies as a strong base?
• A base is also called the Support Level, which is the lowest price level that was reached before the price started turning and increasing again.
• A strong base is recognized by a steep fall in price after breaking the base(Panic), followed by a big reaction pump.
• The reaction pump is the most important factor to say that it is a strong base.
• And also the last base, the one you are trading of is the one that counts
Tip: Look for V shapes on the chart, easy to spot when zoomed out.
2. The integrated signals don’t take into consideration chart history(success rate)*
How can you assess the success rate by looking at the chart?
After finding the bases based on the criterias from the 1st point. Looking at the, how many times did it respect the base after breaking it? 7/10, 8/10, 9/10 times? Great! Chances of the next trade also respecting the base is big, and I would consider raising the TP on that deal. Any lower than that I would keep a really close eye on the deal, or even consider closing the deal. And again remember the last base is the one that counts. If all the others are nice strong bases but that last one you are about to take a trade off is no good the base is invalidated so be cautious.
3. You need to follow a predefined (by you) buying ladder
Crypto is volatile, and there is a huge variation in price movements on all the coins.
Trading manually, looking at the chart gives you a good idea on how much a coin on avg. drops below base, and how big the following reaction is. This gives you an indication on how deep you need to set your layers, and where you can take profit.
Using the strategy you have the backtester to see how much max deviation has been in the past so that you can figure out what the optimal max deviation is.
4. A set Take profit %, possibly making you miss out on higher profits(This is easy to change during a trade though), and no chance of selling in layers.
Not going to say to much about this other than what I often do is:
When a bot has started a trade I usually take a look at the chart. If I like what I see, nice chart history, success rate and trading of a strong previous base etc, with the current base break resulting in a panic drop I will consider increasing the TP so that it will make more profit. This can be a bit risky but also very rewarding. Imagine filling all safeties and then selling just below base! Massive profits!! (Gotta be honest though, almost never stretch it that far with a bot though, but it is a possibility) .
If you have studied the chart and concluded that this particular trade has a 90% chance of success, there isn’t really any reason not to place TP just below base. This is where I would like to have the option of layering my sell orders as well so its something im working on implementing.
Trailing is an option in 3commas, but it’s slow to place orders making you miss a selling opportunity when the coin makes a sudden spike up.
ABOUT THIS STRATEGY
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.
How to use:
- Add the script to the current chart
- Open the strategy settings
-Tweak the settings to to your liking.
-Make a SIMPLE bot in 3commas and use the same settings as you did in tradingview if you only want the strategy to send signals to open a deal and let 3commas handle the rest.
If you check safety orders, Take profit deal stop and Stop loss. The strategy will send all the orders to 3 commas. If that’s what you want set TP in 3commas to 50% set number of safety orders to 0 and keep stop loss unchecked.
- Insert bot details using the deal start condition message found in your 3commas bot.
- When happy, right click on the "..." next to the strategy name, then "Add alert'".
- Under "Condition", on the second line, chose "Any alert () function call". Add the webhook from 3commas( 3commas.io ), give it a name, use {{strategy.order.alert_message}} as a placeholder message and "create".
In the future this signal might make it to the 3commas marketplace. You can then subscribe to that signal where I have cherrypicked coins based on thorough backtesting and optimization.
How to obtain access to the script: send me a private message in Tradingview
Mike's Crossover BotGreetings! As a newcomer to coding, I've developed a simple trading bot for experimentation purposes. However, it's important to note that this bot has not undergone rigorous testing, so please exercise caution and use it at your own risk.
Bot Overview:
The bot operates by leveraging two technical indicators: Moving Average Convergence Divergence (MACD) with 7-day and 25-day parameters, and the Relative Strength Index (RSI). These indicators help identify potential buying and selling opportunities in the market.
MACD Crossovers:
The MACD is a trend-following momentum indicator that compares short-term and long-term moving averages. In our bot, we look for crossovers between the 7-day and 25-day MACD lines. A crossover occurs when these lines intersect, suggesting a potential change in market direction.
RSI Confirmation:
To refine our signals, we incorporate the Relative Strength Index (RSI). When a MACD crossover happens, the bot checks if the RSI is below 40. If it is, a buy signal is generated, indicating a potential undervalued condition. Conversely, when the RSI is above 60 during a crossover, a sell signal is triggered, suggesting a potentially overvalued condition.
Important Considerations:
New Coder Disclaimer: This bot is designed for educational purposes, especially for those who are new to coding. It serves as a learning tool and is not intended for live trading without proper testing.
Risk Awareness: Trading always involves risks, and the bot's performance has not been thoroughly tested in live market conditions. It's crucial to exercise caution and be aware of the inherent risks associated with financial markets.
Continuous Learning: Coding and algorithmic trading are dynamic fields. As you explore this bot, consider it a starting point for learning and continuously seek to enhance your understanding and skills in coding and trading strategies.
Remember, the success of any trading strategy depends on various factors, and past performance is not indicative of future results. Always conduct thorough testing before considering any automated strategy for live trading.
AUTOMATIC GRID BOT STRATEGY [ilovealgotrading]
OVERVIEW:
This Grid trading strategy can help you maximize your profit in a ranging sideways market with no clear direction.
INDICATOR:
We can get some money by taking advantage of the movement of the price between the range we have determined.
Short positions are opened while the price is rising, long positions are opened while the price is falling.
Therefore, there is no need to predict the trend direction.
What is different in this indicator:
I want to say thank you to © thequantscience. His GRID SPOT TRADING ALGORITHM - GRID BOT TRADING strategy helped me when I was writing my indicator.
I want to explain what I have improved:
1- Grid strategy is a type of strategy that can be traded in very short time frames and users can trade this strategy algorithmically by connecting this strategy to their own accounts with the help of API systems. For this reason, I have developed a software that can give us signals by dynamically changing the long and short messages when users are trading.
2- We can change the start and end dates of our grid bot as we want. It is necessary to use this setting when setting up automatic bots, so that previously opened transactions are not taken into account.
3 - Lot or quantity size should not be excessively small when users are taking automatic trades because exchanges have limitations, to avoid this problem, I have prevented this error by automatically rounding up to the nearest quantity size inside the software.
4 - Users can avoid excessive losses by using stop loss on this grid bot if they wish.
5 - When our price is over the range high or below the range low, our open positions are closed, if the stop button is active. We can also change which close price time frame we take as a basis from the settings.
6 -Users can set how many dollars they can enter per transaction while performing their transactions automatically.
IMPLEMENTATION DETAILS – SETTINGS:
This script allows the user to choose the highs and lows leves of our range. Our bot trades in the specified range.
1. This strategy allows us to set start and end backtest dates.
2. We can change range high and range low leves of our bot
3. IF people want to trade algorithmically with the help of this bot, there are 6 different input systems that will receive the Json codes as an alarm
4. IF the price closes above the upper line or below the lower line, all transactions will be closed. We can determine in which time frame our transactions will be stopped if the price closes outside these levels.We can adjust how our bot works by activating or turning off the Stop Loss button.
5. In this strategy, you can determine your dollar cost for per position.
6. The user can also divide the interval we have determined into 10 parts or 20 equal parts.
7. The grid is divided and colored at the interval we set. At the same time, if we don't want we can turn off colored channels.
Notes:
If you're going to connect this bot to an automatic Long and Short direction,
Don’t forget! you need to Webhook URL,
Don’t miss paste this code to your message window {{strategy.order.alert_message}}
ALSO:
Set your range below the support zones and above the resistance zones.
Don't be afraid to take a wide range, it doesn't matter if you make a little money, the important thing is that you don't lose money.
If you have any ideas what to add to my work to add more sources or make calculations cooler, suggest in DM .
Strategy for UT Bot Alerts indicator Using the UT Bot alerts indicator by @QuantNomad, this strategy was designed for showing an example of how this indicator could be used, also, it has the goal to help some people from a group that use to use this indicator for their trading. Under any circumstance I recommend to use it without testing it before in real time.
Backtesting context: 2020-02-05 to 2023-02-25 of BTCUSD 4H by Tvc. Commissions: 0.03% for each entry, 0.03% for each exit. Risk per trade: 2.5% of the total account
For this strategy, 3 indicators are used:
UT Bot Alerts indicator by Quantnomad
One Ema of 200 periods for indicate the trend
Atr stop loss from Gatherio
Trade conditions:
For longs:
Close price is higher than Atr from UT Bot
Ema from UT Bot cross over Atr from UT Bot.
This gives us our long signal. Stop loss will be determined by atr stop loss (white point), break even(blue point) by a risk/reward ratio of 0.75:1 and take profit of 3:1 where half position will be closed. This will be showed as buy (open long position)
The other half will be closed when close price is lower than Atr and Ema from UT Bot cross under Atr. This will be showed as cl buy (close long position)
For shorts:
Close price is lower than Atr from UT Bot
Ema from UT Bot cross over Atr from UT Bot.
This gives us our short signal. Stop loss will be determined by atr stop loss (white point), break even(blue point) by a risk/reward ratio of 0.75:1 and take profit of 3:1 where half position will be closed. This will be showed as sell (open short position)
The other half will be closed when close price is higher than Atr and Ema from UT Bot cross over Atr. This will be showed as cl sell (close short position)
Risk management
For calculate the amount of the position you will use just a small percent of your initial capital for the strategy and you will use the atr stop loss for this.
Example: You have 1000 usd and you just want to risk 2,5% of your account, there is a long signal at price of 20,000 usd. The stop loss price from atr stop loss is 19,000. You calculate the distance in percent between 20,000 and 19,000. In this case, that distance would be of 5,0%. Then, you calculate your position by this way: (initial or current capital * risk per trade of your account) / (stop loss distance).
Using these values on the formula: (1000*2,5%)/(5,0%) = 500usd. It means, you have to use 500 usd for risking 2.5% of your account.
We will use this risk management for apply compound interest.
In settings, with position amount calculator, you can enter the amount in usd of your account and the amount in percentage for risking per trade of the account. You will see this value in green color in the upper left corner that shows the amount in usd to use for risking the specific percentage of your account.
Script functions
Inside of settings, you will find some utilities for display atr stop loss, break evens, positions, signals, indicators, etc.
You will find the settings for risk management at the end of the script if you want to change something. But rebember, do not change values from indicators, the idea is to not over optimize the strategy.
If you want to change the initial capital for backtest the strategy, go to properties, and also enter the commisions of your exchange and slippage for more realistic results.
In risk managment you can find an option called "Use leverage ?", activate this if you want to backtest using leverage, which means that in case of not having enough money for risking the % determined by you of your account using your initial capital, you will use leverage for using the enough amount for risking that % of your acount in a buy position. Otherwise, the amount will be limited by your initial/current capital
---> Do not forget to deactivate Trades on chart option in style settings for a cleaner look of the chart <---
Some things to consider
USE UNDER YOUR OWN RISK. PAST RESULTS DO NOT REPRESENT THE FUTURE.
DEPENDING OF % ACCOUNT RISK PER TRADE, YOU COULD REQUIRE LEVERAGE FOR OPEN SOME POSITIONS, SO PLEASE, BE CAREFULL AND USE CORRECTLY THE RISK MANAGEMENT
Do not forget to change commissions and other parameters related with back testing results!
Strategies for trending markets use to have more looses than wins and it takes a long time to get profits, so do not forget to be patient and consistent !
---> The strategy can still be improved, you can change some parameters depending of the asset and timeframe like risk/reward for taking profits, for break even, also the main parameters of the UT Bot Alerts <----
Godtrix's Crypto HA+RSI+EMA+ATH+DCA Strategy 3.0New Updates is here! Upgrade from previous version 2.0 (Please avoid using v2.0 as it's outdated.)
Great stability, Repaint bug fixes, and New features!
==================
| Introduction: |
==================
This is a Long Term Strategy, using compounding profit method, it can generate high returns, but it also risk for losses, this can be overcome if you set Stop Loss to over 25% for bitcoin & 60% for Altcoins.
Best profit plan with this strategy is you trade on Future leverage while you hold on to your coin, so that when price goes up, your coin value goes up, and at the same time, you trade with your leverage to earn even more, easily doubling up your total profit.
Benefits:
Fully customizable and you can easily personalized it and FINE TUNE it according to the market or coin you trading on.
The strategy is based on REAL PRACTICAL trading skills, so it works in real-world.
I fixed the "repainting" issue so the backtest it shows you IS ACCURATE when you run for real-time.
We all know one indicator is not going to help you win your trades, so this strategy combines ALL three: EMA for long+short term trend, HA for short term trend, RSI for entry/exit
This strategy is designed for LONG trade (Buy low, Sell high), not for SHORT trade.
This is not day trading, it is more to mid-term trading, where there's only few trades per month
Mainly is coded to work with 3Commas bot auto trading, so you only need to key in your Bot ID & Email Token.
Bot trading NOTE:
- You need to replace the Alert Message with this: {{strategy.order.alert_message}}
- And you'll need the Bot's webhook Url set with the Alert too.
- One Alert will work for both Buy and Sell Order
- If you using other Bot service, you can enter Custom Command in Input Settings too, it works on any bot service.
Lastly,
regarding the setting advice, I would say you try playing with different settings and your objective is to achieve a backtest result that has:
1) Profitable is > 80%
2) Losing trades is nearly 0 or below 25% of your winning trades. Trick is using far stop loss %
3) Net Profit be almost same or more than "Buy & Hold Profit"
==================
| Latest Updates: |
==================
=| Tidy Up Codings |=
- Group input fields so it'll be easier to understand and find the settings
- Upgrade code for obsolete 'transp' options
=| Repaint Issues |=
- Previous v2.0's RSI has repaint issue, creating false result against real-time data. I've fixed this.
- Also done fine-tuning other parts of the codes to prevent possible repaint issues.
=| Bot System |=
- Improved Custom Bot system, so that you're able to set dynamic order size/quantity with my custom keyword: and
Base Order Example:
{ 'message_type': 'bot', 'bot_id': 1234567, 'email_token': 'abcdefgh-1234-1234-1234', 'base_order': , 'delay_seconds': 0, 'pair': 'USDT_BTC'}
=| EMA Downtrend Exit |=
- Added option for you to decide whether to close position when detected EMA Long term downtrend.
=| EMA 2 (short term) is removed |=
- After several test, I've decided to remove this because it doesn't contribute to improving the results.
=| Heikin Ashi System |=
- Improved the chart display, now you'll see the HA candle 'shadowed' behind, so you'll see both actual price candle and HA candle at same time.
- Added the system that detect the HA candle sizes to decide specifically when it's suitable for Entry and Exit.
>> For "Entry/Exit Range"
- This means after HA is valid for Entry or Exit, how many following bars are allowed to stay valid so it will match other requirements to be completely fulfilled for Entry or Exit.
>> For "Crossing Interval"
- This means after detected HA line crossover, how many HA intervals is allow to Entry or Exit
>> For "Reversed Exit"
- This function let's you decide whether to close position if after HA bull (green candle) changed into HA Bear (red candle)
=| RSI A Entry |=
- Added option to avoid Entry during NTZ (No trade Zone)
- Also added the option to avoid next same condition RSI A entry too soon
=| RSI B Entry |=
- This function is for Entry if RSI is going very low, mostly due to bigger price drops in short time, it's good for buying DIP, however we'll never be able to know when a DIP ends, so do more test on this settings before put into real use.
- Added "avoid" options to help avoid getting Entry at "false" DIP, more like a short & fast pullback which causes RSI to drop very low but actually the price is near ATH or Recent High.
- Added option for Entry with Trailing Price Lower Buy combine with a limit order that grabs low price, so whichever it fulfill first.
=| New: Avoid Entry |=
- Well, it's a pain if you bought at the top, so I've added two options that will avoid buying near ATH and Recent High.
=| Time-limit Removed |=
- Sorry that I've missed look on the script policy which I'm not allowed to put a time-limit for public scripts.
=| System Improvements |=
- HA condition detection is optimized and bug fixed
- RSI values now reads accurately on each bar despite using higher timeframe, especially when moving to next interval
=| New: Dollar Cost Averaging (DCA) Orders |=
- Although DCA strategy is not appealing for Long term strategy, but I've added it for your extra options and flexibilities.
- The settings are quite straight-forward and standard, so I won't be explaining here.
=| New: Backtest Start & End Date |=
- This is very good function when you need more accurate result starting at specific date & time.
- Also if you set the date & time for your real trading starts, it'll much result the same as your actual trading records, which helps you to see clearer and make future decisions.
Any found bugs or flaws, please feel free to PM me, I can't get notifications from comments here below, so I'll not able to reply you the soonest possible, still not sure how to turn on notification for comments, anyone who knows can PM and teach me, lol... Thanks in advance!
Well, this is free version, hope it helps! Feedbacks are all welcome :)
(To Moderators: I've fully use the "f_security()" guideline, but instead of creating a separate function, I apply directly on all security() function. Please don't ban my script before fully check if I've truly fixed repaint. Thank you.)
BITSTAMP:BTCUSD COINBASE:BTCUSD COINBASE:ETHUSD BINANCE:BNBUSDT
Bit Rocket Grid Bot Screener 1.0DESCRIPTION
A grid bot is an automated trading bot that is designed to execute buy and sell orders based on a pre-defined grid of prices. Grid bots operate within a specified price range, placing trades at set intervals above and below the current market price. The key idea behind a grid bot is to take advantage of price fluctuations and market volatility, not looking for trends or breakouts.
The optimal trading pair for a grid bot is one that exhibits frequent oscillations within a predictable range while demonstrating a slight upward trend. In simpler terms, it's a pair that consistently fluctuates within the same range.
The Grid Bot Screener serves as a valuable tool for identifying the most suitable trading pairs, by showing the indicators that matter the most for sideways Grid Bot trading. Most screeners look for trends, breakouts and use indicators that are used for assisting the trader with when to buy and sell. This indicator assists in the selection of pairs that are likely to yield the best results for high volatility sideways trading.
USAGE
This screener looks at volatility, sideways action, ADX, and other indicators that are most helpful when determining the amount and potential volatility, sideways action, and transactions for up to twenty pairs at a time.
Each indicator has a threshold that the user can set themselves, this way the user is in control when comparing or hunting for the optimal pairs.
User selects up to twenty pairs, sets thresholds if different than defaults, then sets length (how far back to look). Once this is set the user can quickly look and compare the results.
KEY INDICATORS
VOLATILITY ACTION - Percentage of Price Action Volatility; Temporal Volatility Trends; Elevated price action signifies accelerated price fluctuations, disregarding directional cues.
SIDEWAYS ACTION - The higher the value, the greater the horizontal movement; a robust trend, which is not our objective, provides no directional insight.
Values exceeding 45 indicate pronounced sideways activity, while lower values approaching zero signify a vigorous trend.
These values do not assist in determining the trend direction.
Higher values imply a more sideways orientation, whereas lower values indicate a more pronounced trend.
ADX - Does not indicate trend direction; instead measures trend strength.
An indicator for price range
Lower values signal a weak trend
Higher values denote a robust trend
Strategy: Look for values of 25 or lower which indicate a ranging or neutral trend.
TXNS SCORE – Transaction Activity.
TXNS indicator represents grid performance and serves as a direct measure of trading activity. TXNS accumulates the number of buy and sell actions, reflecting the user-defined grid percentage.
Elevated transaction numbers signify increased activity, leading to enhanced bot profitability.
NOTE: For an accurate representation of the actual number of transactions, use the Bit Rocket Transactions indicator on the 30min time frame.
CONFIRMATION INDICATORS
While the key indicators are generally reliable on their own, it's also valuable to assess how well the asset is performing and its historical trajectory. The confirmation indicators provide valuable insights into an asset's performance and direction, reinforcing the assessments made through the key indicators, again these indicators on their own are not enough they must be used in conjunction with the key indicators.
VOL - Trading Activity: For assets engaged in sideways trading, sufficient volume is necessary, but it doesn't need to be as high as you might expect.
VOL(USD) - USD-Based Activity: A high USD volume signifies strong market interest.
ROC - Rate of Change Percentage: This metric calculates the percentage change in price over a specified date range. Shows trend direction using price percentage.
• Avoid extremely high or extremely low values.
o Excessively high values may indicate overbought conditions with potential for a price correction.
o Very low values could imply waning interest and diminished asset value.
o Conversely, high values might indicate asset strength, while low values could suggest that the asset has reached a bottom and is unlikely to decrease further.
BOLLINGER BAND WIDTH PERCENT - Average MACD Percentage Width, percent is used with Bollinger bands to allow for comparison with other assets.
RSI - Buying and Selling Pressure Strength: When assessing RSI, look for a balance between buying and selling pressure while still maintaining high volatility and sideways strength. Key RSI levels to consider:
• 40-60: Neutral range, indicating equilibrium and stability.
• Above 70: Approaching overbought conditions.
• Below 30: Nearing oversold conditions.
These confirmation indicators provide valuable insights into an asset's performance and direction, reinforcing the assessments made through the key indicators.
ADDITIONAL INDICATORS
DAYS ON EXCHANGE – This metric reveals how long the crypto pair has been listed on the exchange. It serves multiple purposes, such as assessing the data's historical depth and indicating whether the crypto might be relatively new. Keep in mind that while the asset could exist for a while, it might not have been available on the exchange for an extended period.
PRICE – This merely states the current price, making it suitable for those focusing on price action, it is provided for informational value only.
SAFE RANGE – This percentage indicates the price movement range from the highest to the lowest within a specified data range. Use this to determine the upper and lower levels for setting up your grid range.
Oasis Trading Group Market Making Bot - Mean Reversion BandsThe OTG Market Making Bot was designed with mean reversion trading in mind. It uses advanced ATR and other volatility formulas to create a set of bands that price should stay within. If price is testing the upper or lower bands then it is "extended" and a mean reversion back to the midline is likely.
The indicator comes with two sets of reversion bands, by default they are set to two and three standard deviations away from the midline, these can be changed to your preference. The indicator will give you Buy and Sell arrows if the conditions are being met. The conditions can be as simple as price hitting the bands or with certain filters, the filters are as follows:
Volatility Filter: Based on your settings it will look at the Current ATR vs Historic ATR Average if the Current ATR is higher than the average it will not show the mean reversion Buy/Sell signals because the volatility is too high. This filter can be turned on and off in the settings.
Trend Filter: Based on your settings it will lookback a certain amount of candles to see if the current price action is ranging or trending. If the current price action is determined to be trending it will not show the mean reversion Buy/Sell signals because it wants to trade within a range. This filter cannot be turned off in the settings, but if you wish to see all the Mean Reversion Buy/Sell signals without any filters you can turn them on in the style settings.
Midline: The midline is color coded based on your Trend Lookback settings. If it determines that the market is ranging it will be colored Green, if it determines that the market is trending it will be colored Red. Green means you are safe to take Mean Reversion trades.
The indicator comes with multiple alerts for all the different Buy/Sell signals. These signals can come from the first set of bands, second set, or unfiltered.
This indicator is designed to be paired with the ATR Improved Indicator I have created which is open source, it can be found here.
Also, paired with the OTG Automated Trading Bot. The OTG Trading Bot is a trend following bot, it excels in trend trading but fails in range trading. This Mean Reversion bot was designed to compliment the OTG Bot perfectly.
The Oasis Trading Group Market Making Bot will be available as a free add-on to all OTG Trading Bot users.
If you have any questions feel free to let me know in the comments or DM me.
The Witcher [30MIN] - AlertsHello,
This is the Witcher Bot
This bot is got best performance at BTCUSDTPERP BINANCE FUTURES
this is bot for leverage 1x,
I tried focusing at highest % profitable trades, bot could be optimalised to even higher profit net.
TP: 1.1
SL: 8.2
Stop-loss unfortunelly have to be high to avoid bear/bull traps
The core of this strategy is trend strenght ( MONEY FLOW INDKES)
Strategy can only open position on strong price movment, to avoid wrong decision
Settings are set for highest profitable trades %
Bot using 10 indicators to trigger basic condtition for long and short :
1) ADX - Is one of the most powerful and accurate trend indicators. ADX measures how strong a trend is, and can give valuable information on whether there is a potential trading opportunity.
2) RSI - value helps strategy to stop trade in right time. When RSI is overbought strategy don't open new longs , also when RSI is oversold strategy don't open new shorts
3) TREND STRENGHT
4) JURIK MOVING AVERAGE - The Jurik Moving Average indicator is one of the surest ways to smoothen price curves within a minimum time lag. The indicator offers currency traders one of the best price filters during strong price moves. In this time, when bitcoin price action is so strong, this indicator is necessary.
5) SAR - The parabolic SAR is a technical indicator used to determine the price direction of an asset, as well as draw attention to when the price direction is changing. SAR supporting bot, to not open new trades when the trends are slowly changing
6) TREND INDICATOR
7) MOMENTUM - Indicator istechnical analysis tool used to determine the strength or weakness of a stock's price. Momentum measures the rate of the rise or fall of stock prices. Common momentum indicators include the relative strength index ( RSI ) and moving average convergence divergence ( MACD ).
8) OBV - On-balance volume (OBV) is a technical trading momentum indicator that uses volume flow to predict changes in stock price.
9) FAST MA - like previous ones this is for better view of trends, and correctly define the trends, also Speed_MA are using for predict the future price action.
10) RANGE FILTER - this indicator is for the better view of trends, define trends, that is important for every bull/bear traps which helps a lot becouse of the very variable trends.
I decided to add momentum indicator to strategy, to make a fast-reacting decision on lower timeframes at extremly price volatility
Also bot got additional EMA scalping option, which increase profit net but, in some situation, that could be risky.
For max security I recommend to turn off this option.
Commision are set at standard binancefutures VIP-0 = 0.04%
After converting strategy into study version, bot is ready for automation.
All the ploting color depends of adx value.
Strategy are not Repainting
For the source code I tried to keep as clean as I could
Enjoy
Quantbot Pro
Bot built on advanced algo 'under the hood' made very simple for traders to enter/exit trades.
Notice how the bot enters short in good time before the drop from 10.2 and stays in the position until a long signal is triggered. The bot is designed to capture trends as well as do reasonably well in ranging conditions, and is a very good compromise for traders unwilling/unable to re-train machine learning bots each time market conditions change.
Usage:
Wait for long/short indication by the bot (unconfirmed initially), take the trade once the bot indicates 'confirmed' on candle close.
Exit when opposite unconfirmed signal is flashing (or use in combination with Better SCMR for early exit indication). Notice that the bot will provide dynamic sup/res levels.
It's beneficial to combine the bot signals with Better SCMR, which makes it possible to enter on unconfirmed signals when SCMR gives confluence.
Recommended timeframe for scalping is 1h, while higher timeframe signals give confirmation of sustained trend and keeps the trader in trade.
Quantbot Pro in combination with Better SCMR is a very profitable way to trade, and requires less than a week of practice before going live with good probability of success.
Lifetime license: $900
Monthly trial license: $250
Contact by pm for payment instructions
Martingale + Grid DCA Strategy [YinYangAlgorithms]This Strategy focuses on strategically Martingaling when the price has dropped X% from your current Dollar Cost Average (DCA). When it does Martingale, it will create a Purchase Grid around this location to likewise attempt to get you a better DCA. Likewise following the Martingale strategy, it will sell when your Profit has hit your target of X%.
Martingale may be an effective way to lower your DCA. This is due to the fact that if your initial purchase; or in our case, initial Grid, all went through and the price kept going down afterwards, that you may purchase more to help lower your DCA even more. By doing so, you may bring your DCA down and effectively may make it easier and quicker to reach your target profit %.
Grid trading may be an effective way of reducing risk and lowering your DCA as you are spreading your purchases out over multiple different locations. Likewise we offer the ability to ‘Stack Grids’. What this means, is that if a single bar was to go through 20 grids, the purchase amount would be 20x what each grid is valued at. This may help get you a lower DCA as rather than creating 20 purchase orders at each grid location, we create a single purchase order at the lowest grid location, but for 20x the amount.
By combining both Martingale and Grid DCA techniques we attempt to lower your DCA strategically until you have reached your target profit %.
Before we start, we just want to make it known that first off, this Strategy features 8% Commission Fees, you may change this in the Settings to better reflect the Commission Fees of your exchange. On a similar note, due to Commission Fees being one of the number one profit killers in fast swing trade strategies, this strategy doesn’t focus on low trades, but the ideology of it may result in low amounts of trades. Please keep in mind this is not a bad thing. Since it has the ability to ‘Stack Grid Purchases’ it may purchase more for less and result in more profit, less commission fees, and likewise less # of trades.
Tutorial:
In this example above, we have it set so we Martingale twice, and we use 100 grids between the upper and lower level of each martingale; for a total of 200 Grids. This strategy will take total capital (initial capital + net profit) and divide it by the amount of grids. This will result in the $ amount purchased per grid. For instance, say you started with $10,000 and you’ve made $2000 from this Strategy so far, your total capital is $12,000. If you likewise are implementing 200 grids within your Strategy, this will result in $12,000 / 200 = $60 per grid. However, please note, that the further down the grid / martingale is, the more volume it is able to purchase for $60.
The white line within the Strategy represents your DCA. As the Strategy makes purchases, this will continue to get lower as will your Target Profit price (Blue Line). When the Close goes above your Target Profit price, the Strategy will close all open positions and claim the profit. This profit is then reinvested back into the Strategy, which may exponentially help the Strategy become more profitable the longer it runs for.
In the example above, we’ve zoomed in on the first example. In this we want to focus on how the Strategy got back into the trades shortly after it sold. Currently within the Settings we have it set so our entry is when the Lowest with a length of 3 is less than the previous Lowest with a length of 3. This is 100% customizable and there are multiple different entry options you can choose from and customize such as:
EMA 7 Crossover EMA 21
EMA 7 Crossunder EMA 21
RSI 14 Crossover RSI MA 14
RSI 14 Crossunder RSI MA 14
MFI 14 Crossover MFI MA 14
MFI 14 Crossunder MFI MA 14
Lowest of X Length < Previous Lowest of X Length
Highest of X Length > Previous Highest of X Length
All of these entry options may be tailored to be checked for on a different Time Frame than the one you are currently using the Strategy on. For instance, you may be running the Strategy on the 15 minute Time Frame yet decide you want the RSI to cross over the RSI MA on the 1 Day to be a valid entry location.
Please keep in mind, this Strategy focuses on DCA, this means you may not want the initial purchase to be the best location. You may want to buy when others think it is a good time to sell. This is because there may be strong bearish momentum which drives the price down drastically and potentially getting you a good DCA before it corrects back up.
We will continue to add more Entry options as time goes on, and if you have any in mind please don’t hesitate to let us know.
Now, back to the example above, if we refer to the Yellow circle, you may see that the Lowest of a length of 3 was less than its previous lowest, this triggered the martingales to create their grids. Only a few bars later, the price went into the first grid and went a little lower than its midpoint (Yellow line). This caused about 60% of the first grid to be purchased. Shortly after the price went even lower into this grid and caused the entire first martingale grid to be purchased. However, if you notice, the white line (your DCA) is lower than the midpoint of the first grid. This is due to the fact that we have ‘Stack Grid Purchases’ enabled. This allows the Strategy to purchase more when a single bar crosses through multiple grid locations; and effectively may lower your average more than if it simply executed a purchase order at each grid.
Still looking at the same location within our next example, if we simply increase the Martingale amount from 2 to 3 we can see something strange happens. What happened is our Target Profit price was reached, then our entry condition was met, which caused all of the martingale grids to be formed; however, the price continued to increase afterwards. This may not be a good thing, sure the price could correct back down to these grid locations, but what if it didn’t and it just kept increasing? This would result in this Strategy being stuck and unable to make any trades. For this reason we have implemented a Failsafe in the Settings called ‘Reset Grids if no purchase happens after X bars’.
We have enabled our Failsafe ‘Reset Grids if no purchase happens after X bars’ in this example above. By default it is set to 100 bars, but you can change this to whatever works best for you. If you set it to 0, this Failsafe will be disabled and act like the example prior where it is possible to be stuck with no trades executing.
This Failsafe may be an important way to ensure the Strategy is able to make purchases, however it may also mean the Grids increase in price when it is used, and if a massive correction were to occur afterwards, you may lose out on potential profit.
This Strategy was designed with WebHooks in mind. WebHooks allow you to send signals from the Strategy to your exchange. Simply set up a Custom TradingView Bot within the OKX exchange or 3Commas platform (which has your exchange API), enter the data required from the bot into the settings here, select your bot type in ‘Webhook Alert Type’, and then set up the alert. After that you’re good to go and this Strategy will fully automate all of its trades within your exchange for you. You need to format the Alert a certain way for it to work, which we will go over in the next example.
Add an alert for this Strategy and simply modify the alert message so all it says is:
{{strategy.order.alert_message}}
Likewise change from the Alert ‘Settings’ to Alert ‘Notifications’ at the top of the alert popup. Within the Notifications we will enable ‘Webhook URL’ and then we will pass the URL we are sending the Webhook to. In this example we’ve put OKX exchange Webhook URL, however if you are using 3Commas you’ll need to change this to theirs.
OKX Webhook URL:
www.okx.com
3Commas Webhook URL:
app.3commas.io
Make sure you click ‘Create’ to actually create this alert. After that you’re all set! There are many Tutorials videos you can watch if you are still a little confused as to how Webhook trading works.
Due to the nature of this Strategy and how it is designed to work, it has the ability to never sell unless there it will make profit. However, because of this it also may be stuck waiting in trades for quite a long period of time (usually a few months); especially when your Target Profit % is 15% like in the example above. However, this example above may be a good indication that it may maintain profitability for a long period of time; considering this ‘Deep Backtest’ is from 2017-8-17.
We will conclude the tutorial here. Hopefully you understand how this Strategy has the potential to make calculated and strategic DCA Grid purchases for you and then based on a traditional Martingale fashion, bulk sell at the desired Target Profit Percent.
Settings:
Purchase Settings:
Only Purchase if its lower than DCA: Generally speaking, we want to lower our Average, and therefore it makes sense to only buy when the close is lower than our current DCA and a Purchase Condition is met.
Purchase Condition: When creating the initial buy location you must remember, you want to Buy when others are Fearful and Sell when others are Greedy. Therefore, many of the Buy conditions involve times many would likewise Sell. This is one of the bonuses to using a Strategy like this as it will attempt to get you a good entry location at times people are selling.
Lower / Upper Change Length: This Lower / Upper Length is only used if the Purchase Condition is set to 'Lower Changed' or 'Upper Changed'. This is when the Lowest or Highest of this length changes. Lowest would become lower or Highest would become higher.
Purchase Resolution: Purchase Resolution is the Time Frame that the Purchase Condition is calculated on. For instance, you may only want to start a new Purchase Order when the RSI Crosses RSI MA on the 1 Day, but yet you run this Strategy on the 15 minutes.
Sell Settings:
Trailing Take Profit: Trailing Take Profit is where once your Target Profit Percent has been hit, this will trail up to attempt to claim even more profit.
Target Profit Percent: What is your Target Profit Percent? The Strategy will close all positions when the close price is greater than your DCA * this Target Profit Percent.
Grid Settings:
Stack Grid Purchases: If a close goes through multiple Buy Grids in one bar, should we amplify its purchase amount based on how many grids it went through?
Reset Grids if no purchase happens after X Bars: Set this to 0 if you never want to reset. This is very useful in case the price is very bullish and continues to increase after our Target Profit location is hit. What may happen is, Target Profit location is hit, then the Entry condition is met but the price just keeps increasing afterwards. We may not want to be sitting waiting for the price to drop, which may never happen. This is more of a failsafe if anything. You may set it very large, like 500+ if you only want to use it in extreme situations.
Grid % Less than Initial Purchase Price: How big should our Buy Grid be? For instance if we bought at 0.25 and this value is set to 20%, that means our Buy Grid spans from 0.2 - 0.25.
Grid Amounts: How many Grids should we create within our Buy location?
Martingale Settings:
Amount of Times 'Planned' to Martingale: The more Grids + the More Martingales = the less $ spent per grid, however the less risk. Remember it may be better to be right and take your time than risk too much and be stuck too long.
Martingale Percent: When the current price is this percent less than our DCA, lets create another Buy Grid so we can lower our average more. This will make our profit location less.
Webhook Alerts:
Webhook Alert Type: How should we format this Alert? 3Commas and OKX take their alerts differently, so please select the proper one or your webhooks won't work.
3Commas Webhook Alerts:
3Commas Bot ID: The 3Commas Bot ID is needed so we know which BOT ID we are sending this webhook too.
3Commas Email Token: The 3Commas Email Token is needed for your webhooks to work properly as it is linked to your account.
OKX Webhook Alerts:
OKX Signal Token: This Signal Token is attached to your OKX bot and will be used to access it within OKX.
If you have any questions, comments, ideas or concerns please don't hesitate to contact us.
HAPPY TRADING!
[ADOL_]Trend Break Pro ARVIS BOTENG) Trend Break Pro Version : ARVIS BOT
It automatically draws trend lines and signals signals based on sophisticated standards.
It is an indicator that can be used as a tool for trading. from scalping
It was made as an all-round player that can even use the swing.
It contains all the signals of a breakout of the basic trend line,
By applying a new logic, signals that are faster than the breakout point of the basic trend line and
I made it to produce a better value while catching the signal of the press.
principle)
Basic trendline features:
It reflects the concepts of HH and LL.
Trendlines are created using the basic construction method, connecting highs and highs and lows and lows.
The 3 candles prior to the breakout of the trend line are the triggers to create a ready-to-prepare base signal.
What is HH? It is an abbreviation of Higher High, which means to raise the high.
What is LL? An abbreviation of Lower Low, which means to lower the low.
Features of the new core logic:
This is a quick way to find a reversal of a trend, taking into account candle patterns, volume, and moving averages.
The candle pattern that is reversed when the trading volume increases and then disappears is processed by subdividing and digitizing the pattern.
generate a signal. At the turning point of the trend, it triggers a long and short reversal signal.
For trading volume, obv was utilized. Overlaid elements allow you to find signals that are slightly faster than the trend line.
What is obv? OBV = An abbreviation of On Balance Volume. It is a secondary indicator showing the cumulative total of trading volume.
The background is a notation of the section where the trend is reversing.
option)
The degree of freedom to set options according to scalping, single stroke, swing, and bot implementation is given.
A volatility warning notification has been included. The function of TD setup is included.
You can set the range of candles as an option. The backtesting value is printed.
The backtesting value is calculated as the average of the opening and closing prices.
Volatility warnings are displayed in yellow.
TD Setup: Numbers floating on the candle, in ascending and descending order (=sequence) from 1 to 9.
The reason for writing up to 9 is based on statistics, and the more fundamental principle is the theory of the Fibonacci sequence.
The Fibonacci sequence is the number in the golden ratio that makes up nature, 1.1.2.3.5.8.13.21.34.55.89...
The sum of the nth and n+1th numbers becomes n+2th.
A note on odds of winning. Even if the win rate is 33%, if the profit-loss stop-loss ratio is 3 to 1, the profit exceeds 2, so cumulative profits are generated.
In other words, it is decided by considering both the win rate and profit/loss ratio, not just the win rate. The logic of a short stop loss and a long profit trend is reflected.
time frame)
Applicable to any timeframe.
Scalping: 1 minute, 3 minute, 5 minute / Danta: 15 minute, 1 hour / Swing: 4 hour, daily
Recommended time frame: 3, 15 minutes
alarm)
Various alert functions are available. based on the alert signal
When trading, various signals help to set specific conditions.
- Basic long and short alerts
- Volatility warning alert
- Filtered long and short alerts
- Long and short alerts occur Next peak alerts
- Uptrend line, downtrend line breakout alert
- Alerts about bot start and end when bot is running
- Filtered uptrend line, downtrend line breakout alert
- Alerts for rising and falling 1 setup and rising and falling 9 setups respectively
trading method)
1. For the trend line breakout signal, when the signal overlaps more than 3 times, the breakout probability increases.
It reflects the concept below.
One touch of support/resistance: The first touch sees longs at support and shorts at resistance.
2 touches of support/resistance line: Confirm the position once more in the stage of building support/resistance line (compacting). We see longs at support and shorts at resistance.
3 touches of the ground/resistance line: This is a section with a high possibility of both directions.
Support/resistance line 4 (over) touch: Used as a breakout reference line. When breaking through, short at support and long at resistance.
When the support/resistance line breaks through the closing price, support becomes resistance and resistance becomes support.
2. Trade support/resistance lines using the trend line breakout and signal as an important reference bar.
example)
3-1. Entry criteria/stop loss criteria (when trading hands and bots)
- entry criteria; Follow the signal.
- Stop loss criteria;
Use fixed stop loss: Set 1% fixed stop loss section from signal generation. (% is set individually)
Use Candle Stop Loss: Set a stop loss when the low or high point of the signal generating bar collapses.
Use flow stop loss: Set the stop loss considering the flow of the wave.
3-2. Entry criteria/stop loss criteria (in case of signal-based bot trading)
- Approach with a low magnification (more than 10 times is not recommended) to prevent the risk of liquidation of the largest drop,
There is an opposite signal after entering without setting stop loss separately.
4. Note
You are solely responsible for any trading decisions you make.
5. How to use
It is set to be available only to invited users. When invited,
Tap Add Indicator to Favorites at the bottom of the indicator.
If you click the indicator at the top of the chart screen and look at the left tab, there is a Favorites tab.
Add an indicator by clicking the indicator name in the Favorites tab.
KOR) Trend Break Pro버전 : ARVIS BOT ; 아비스 봇 입니다.
추세선을 자동으로 작도해주며, 정교화된 기준으로 시그널을
발생시켜 매매에 도구로써 활용가능한 지표입니다. 스캘핑부터
스윙까지 활용가능한 올라운드 플레이어로 만들어졌습니다.
기본 추세선 돌파의 시그널들을 모두 포함하고 있으며,
새로운 로직을 적용하여 기본 추세선 돌파시점보다 빠른 신호와
눌림의 신호까지 잡아내면서, 더 나은 값을 산출하도록 만들었습니다.
원리)
기본 추세선 기능 :
HH와 LL의 개념을 반영합니다.
추세선은 고점과 고점, 저점과 저점을 잇는 기본 작도 방법으로 만들어집니다.
추세선 돌파의 3개 이전 캔들부터 신호발생으로 준비를 기본 시그널을 만듭니다.
HH란 ? Higher High의 약자로 고점을 높인다는 의미입니다.
LL란? Lower Low의 약자로 저점을 낮춘다는 의미입니다.
새로운 핵심적인 로직의 기능 :
추세의 반전을 빠르게 찾기 위한 방법으로 캔들패턴, 거래량, 이평선을 고려하여 만들어졌습니다.
거래량이 증가하다가 소멸하는 시점에서 반전되는 캔들패턴을 세분화하고 수치화하여 가공된
신호를 발생시킵니다. 추세의 전환자리에서 롱과 숏의 전환 신호를 발생시키도록 합니다.
거래량에는 obv가 활용되었습니다. 중첩된 요소들을 통해 추세선보다 조금 더 빠른 신호를 찾을 수 있습니다.
obv란 ? OBV = On Blance Volume의 약자로 거래량의 누적합계를 나타내는 보조지표 입니다.
배경은 추세가 전환되는 구간의 표기입니다.
옵션)
스캘핑과 단타, 스윙, 봇의 구현에 맞게 옵션을 설정할 수 있는 자유도를 부여하였습니다.
변동성 경고 알림이 포함되었습니다. TD셋업의 기능이 포함되었습니다.
캔들의 범위를 옵션으로 설정할 수 있습니다. 백테스팅 값이 출력됩니다.
백테스팅 값은 시가와 종가의 평균값으로 산출됩니다.
변동성경고는 yellow 컬러로 표기됩니다.
TD셋업 : 캔들위에 플로팅 되는 숫자로 1~9까지의 오름차순, 내림차순 (=시퀀스)으로 구성됩니다.
9까지 쓰는 이유는 통계기반, 좀 더 근본적인 원리는 피보나치 수열의 이론이 반영되어 있습니다.
피보나치 수열이란 자연을 이루는 황금비율의 숫자로 1.1.2.3.5.8.13.21.34.55.89...
n번째와 n+1번째 숫자의 합이 n+2번째가 됩니다.
원리 예시)
승률에 관한 참고사항. 승률이 33퍼센트의 승률이어도 3대 1의 익절 손절 비율이면 이익이 2를 넘어가니까 누적수익이 발생합니다.
즉, 승률과 손익비를 모두 고려해서 결정하는 것이지, 승률만 봐서는 안됩니다.
손절은 짧게, 수익은 추세대로 길게의 로직이 반영되어 있습니다.
타임프레임)
모든 시간프레임에 적용 가능합니다.
스캘핑 : 1분봉, 3분봉, 5분봉 / 단타 : 15분봉, 1시간봉 / 스윙 : 4시간봉, 일봉
추천타임프레임 : 3, 15분봉
5분봉)
15분봉)
4시간봉)
알람)
다양한 얼러트 기능을 사용할 수 있습니다. 얼러트 신호를 기반으로
매매시 다양한 신호는 구체적 조건 설정에 도움이 됩니다.
- 기본 롱,숏 얼러트
- 변동성 경고 얼러트
- 필터링된 롱,숏 얼러트
- 롱,숏 얼러트 발생 다음봉 얼러트
- 상승추세선, 하락추세선 돌파 얼러트
- 봇구동시 봇의 시작과 종료에 관한 얼러트
- 필터링된 상승추세선, 하락추세선 돌파 얼러트
- 상승,하락1셋업과 상승,하락9셋업 각각에 대한 얼러트
매매방법)
1. 추세선 돌파신호는 신호가 3번이상 중첩될시 돌파확률이 상승합니다.
아래 개념을 반영합니다.
지지/저항선 1터치 : 첫번째 터치에는 지지선에서 롱을, 저항선에서 숏을 봅니다.
지지/저항선 2터치 : 지지/저항선 구축(다지기)의 단계로 한번 더 자리를 확인합니다. 지지선에서 롱을, 저항선에서 숏을 봅니다.
지/저항선의 3터치 : 양방향의 가능성이 높은 구간입니다.
지지/저항선4(이상)터치 : 돌파기준선으로 사용합니다. 돌파할 때, 지지선에서 숏을, 저항선에서 롱을 칩니다.
지지/저항선이 종가로 뚫리면 지지는 저항이 되고, 저항은 지지가 됩니다.
2. 추세선돌파와 시그널이 발생한 봉을 중요한 기준봉으로 활용하여 지지/저항선 매매를 합니다.
예시)
3-1. 진입기준/손절기준(손,봇 매매시)
- 진입기준; 시그널을 따릅니다.
- 손절기준;
고정손절가 이용 : 시그널 발생으로부터 1% 고정 손절가 구간을 설정합니다.(%는 개별로 설정)
캔들손절가 이용 : 시그널 발생봉의 저점이나 고점이 무너지면 손절을 설정합니다.
흐름손절가 이용 : 파동의 흐름을 고려하여 손절을 설정합니다.
3-2. 진입기준/손절기준(신호기반 봇 매매시)
- 저배율(10배이상은 권장하지 않습니다)로 접근해 최대낙폭의 청산위험을 예방하며,
손절가를 따로 설정하지 않고 진입후 반대신호가 뜰때마다 스위칭을 합니다.
4. 참고
귀하가 내리는 모든 거래 결정은 전적으로 귀하의 책임입니다.
5. 사용방법
초대된 사용자만 사용할 수 있도록 설정이 되어있습니다. 초대를 받을 경우,
지표 하단의 즐겨찾기에 인디케이터 넣기를 누릅니다.
차트화면 상단에 지표를 눌러서 왼쪽탭에 보면 즐겨찾기 탭이 있습니다.
즐겨찾기 탭에서 지표이름을 눌러서 지표를 추가합니다.
Bedrock Bot - BTCUSD 30m Scalper BotBedrock Bot trades on BTCUSD charts and is a high frequency scalper bot - for those that like a little more action.
The strategy was developed for use on more recent market conditions - smaller trends within larger sideways ranges. It will work in trends as well. It is made for quick take profits and tight stop losses to maximize overall profit and minimize losses (check out the win ratio and downdraw results). It does not trade on the weekends as much of the volume is now weekday based.
Backtest results look great and we have been running this bot on live markets as well in forward testing with profit results.
These live tests were done exclusively on BitMex and by using automation on Crypto Bots Hub . Monthly returns have been around 8% - you may think this doesn't sound amazing but understand compound interest and do check out the win percentage and downdraw. In these sideways markets, this can keep building your profits slow and steady with minimal risk.
The bot controls entries, stop losses, and take profits as part of the code.
Message me on information to get free access.
AlgoTrade DCA Bot Backtester█ OVERVIEW
This script can be used to backtest DCA Bots. It draws inspiration from 3Commas and has most settings that are available on 3Commas. It contains a few popular DCA Bot Presets that are well known in the community for you to test out! Preset used here: Kirigakure V4
█ FEATURES
DCA Preset (Custom, Standard TA,Urma Lite V3,Kirigakure V1,Kirigakure V3,Kirigakure V4)
Order Size Type (Fixed/% of equity to simulate compounding)
Base Order Size
Safety Order Size
Max Safety Trades Count
Price Deviation to open safety order %
Safety Order Volume Scale
Safety Order Step Scale
Take Profit %
Use ADR (Average Daily Range) as Take Profit
ADR length (if ADR as take profit is enabled)
Take Profit Type (% from total volume / % from base order)
Trailing Take Profit
Stop Loss
Deal Start Condition (Start ASAP) ▶ More Deal Starting Conditions will be added in the future
Bot Direction (Long / Short)
Start Time ▶ 1999-01-01 (Use this to always backtest the entire history)
End Time
This strategy also allows you to plot the Average Price and Take Profit of each trade, so it's easier to follow the trade and understand what's happening.
█ HOW TO USE
1. Select a DCA Preset and change the initial capital to the exact amount that is required (seen in the error message on top of the table). When using a Preset the following settings will be locked, meaning if you change them in the script's settings it won't have any effect:
Base Order Size
Safety Order Size
Max Safety Trades Count
Price Deviation to open safety order %
Safety Order Volume Scale
Safety Order Step Scale
Use ADR (Average Daily Range) as Take Profit
1.1 When using Presets you can choose the Order Size Type of Fixed or % of equity which simulates compounding
1.2 Choose a Direction and a Start and End Time
2. To backtest customized settings choose the preset "Custom"
2.1 All other settings are now "unlocked" and can be used
█ LIMITATIONS
Whenever a DCA preset is changed the initial_capital needs to be changed to the exact amount the settings require. If the initial_capital is not the same there will be an error of top of the table. To fix this error navigate to the Script's Settings and Properties and change the initial_capital to the same amount that is stated in the error.
DCA Bots with a high number of safety orders, e.g. 100, can run into an error that says "Maximum number of orders (9000) reached". If this error happens change the backtesting time to a shorter timeframe.
Using % of equity simulates compounding but is unrealistic because you cannot re-invest every single dollar
█ THANKS
This script in insipred by rouxam's "Backtesting 3commas DCA Bot v2" script
Sig30MALICEHello everyone
Bot is optimalized BINANCE:ALICEUSDTPERP BOT, which select leverage betwen 2x and 4x
TimeFrame : 30min
TP : 80 point
SL : 120 point
the bot works as follows:
the way he opens a position consists of two conditions
1) Moving average (crossovers)
2) RSI
Backtesting is set for counting as 13 contrat, this bot can get more with 50% of equity.
I think this is really solid 30min bot, which is already really important to make something solid on 30min
However keep in mind this is scalper and optimalization scalpers are really hard and have to be set from time to time
This bot is also great for other optimalizations .
.
.
.
.
.
.
Enjoy
Argo II - (alerts for 3commas composite bots) - publicThis script lets users create BUY/SELL alerts for 3commas composite bots (1 alert = 12 pairs) in a simple way, based on a built in set of indicators that can be tweaked to work together or alone through the study settings.
There is a version of this script for single pair bots, with slightly more features here .
If the user choses to create both BUY and SELL signals from the study settings, the (1) alert created will send both BUY and SELL signals for all 12 pairs selected. At this stage, the script forces the user to select 12 pairs in the study settings. If less pairs are inserted, it will not work. Also, the script will only send alerts for the pairs selected in the study settings, not for the current chart (if different).
How to use:
- Add the script to the current chart
- Open the study settings , insert bot details and select 12 pairs. You should write the pairs manually, using the format BTC , ADA, ETH, etc. They MUST be in capital letters or 3commas will not recognize them.
- Still in the study settings, tweak the deal start/close conditions from various indicators until happy. The study will plot the entry / exit points below the current chart (1 = buy, 2 = sell)
- Make sure your strategy works for all the pairs you have selected, simply by checking each chart with the same study settings
- When happy, right click on the "..." next to the study name, then "Add alert'".
- Under "Condition", on the second line, chose "Any alert () function call". Add the webhook from 3commas, give it a name, and "create".
That's it.
Notes:
- If you insert coins that are not available for the quote currency and exchange of your choosing, the script will not work and return an error.
- Make sure you run tests with paper trading or dummy bots (i.e without actual bot ID) to ensure your alerts trigger as intended on all coins.
- If alerts trigger too much (i.e they all trigger at the same time for all coins), Trading View will stop the alert. So probably not ideal for a scalping bot. It could also be the sign the script doesn't work as intended.
- The script is a bit slow on my side. I am a beginner in pinescript, so if anyone knows how to simplify it, please let me know.
- if anyone knows how to tell the script to function with less than 12 pairs (when not filling the 12 fields in the setting), please also let me know :)
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 Start & Stop BotThis script is using Average True Range (ATR) and works very well on the Bitcoin 4 hour timeframe to determine when to stop and start your bots.
It has a very similar visual to the EMA RSI Indicator found here:
This 'ATR Start & Stop Bot' is better because it has less confusion during sideways market movement.
As an example - You are using 3commas and have a Composite bot setup with several alt coins, you can use this indicator with the ' Stop bot ' alert to disable your composite bot from taking trades at times when the market is on a trend that looks in the red.
Alternatively you can use the ' Start bot ' alert to turn your bot back on during the green uptrends.
Using this indicator with these alerts on the Bitcoin 4-Hour chart add a great layer of automation to your already existing bots.
Credits:
Original 'ATR Stops' indicator belong to the user failathon and that script is found here:
Also credits to Dradian for the alert additions.
BTC botI made good money on this bot in last few month so i decided to donate it to community (its from my private bot collection) design for BTC mainly . it a great bot for longs , shity for shorts :)
no security in this bot so no repaint
the key issue in any bot design is to find good low , after you just exit by take profit
the exit strategy here is based on pivot system
entry is based on Low finder script (that i put as open script )
the Take profit system is based on Adolgov script
in reality main problem now is that bot cannot utilize signal from alerts .but we are working to fix this issue with a good that will come soon
this script is to show how to create a smart non repainting strategy using take profit and finding low as the key for it success
this strategy very good for bullish assets. may not work as well when we are on bearish trend so keep this in mind if you use it