Bot Controller V1.1This script allows you to define various trading sessions with alerts for when the session starts and ends. This allows you to do things like switch your trading bots off while you are sleeping.
It starts with default settings for weekday daytime, evening, nighttime, and weekends
Setup recommendations:
Use the Timezone setting in the indicator to match your trading view timezone setting to have alerts triggered when you expect
Add alerts from a lower TF e.g 1min chart
Use once per bar for the alerts
Notes on alerts:
If you have a session stop then immediately have another starting with no time break in between the start/stop alerts may overlap/trigger at the same time so it's probably best just to use the stop or start alerts for each session.
Botsignal
Buy Sell Bot StrategyHello Everyone,
In this strategy, I benefited from the values of RSI and wave trend indicators, which are the oldest and most used indicators in the market. I contributed to this bi-valued indicator myself with a bivariate formula. My variables are actually a simple intersection algorithm, the intersection of the wave trend indicator and the RSI indicators when they are oversold or overbought.
As you all know, we can send signals to bot sites via tradingview. You can use bot signals boxes in this strategy. You can analyze past transactions in the Date settings section. In the indicator settings section, you can change the settings of the overbought and oversold zones. Perhaps the most important feature here is the USE SELL SIGNALS section. I would like to emphasize this section in particular that when you mark the use sell signal section, the strategy will be processed in the buy section and will not be processed in the sell section. If you do not click on the USE SELL SIGNALS section, the strategy will be processed in the buy section, but this time it will be exited when the target in the take profit section is reached. THIS WAS IMPORTANT.
There is another important point here. Always in position and USE SELL SIGNALS sections do not work together. Run these two features one by one. It is a strategy that is constantly in operation through the name of the Always in position feature, I do not recommend it. The USE PERCENTAGE DECREASE feature, on the other hand, is the section where we want the share to drop as a percentage to enter the second trade after the first purchase is made in the settings section if you activate the pyramiding feature. You can use the tradingview help page for the pyramiding feature.
I found this strategy suitable to use in the 1-hour time frame in the crypto market and adjusted it that way. Of course, you can use it by changing the settings in stocks and in different time periods. big wins
Supertrend NinjaSupertrend Ninja
The Basics
The Supertrend Ninja is a trend-following indicator. The indicator is optimised for daily, 2 days and 3 days candlesticks and can be used on varying trending markets.
Supertrend Ninja using 2 days candlesticks only gave 7 bullish signals in 2020 and 2 in 2021 for Bitcoin/USDT (based on Binance charts). Greatly reducing false signals. It can be used on lower time frames as well, although you will encounter more noise.
This indicator could be used as a compass for DCA or TV bots as well.
What To Look For
When the background of the candlestick closes green with an upwards pointing pink arrow. It indicates a possible bullish (up)trend. To enter a trade its best to place an order a few ticks above the candle high. This way we only enter a position, when there is trend continuation.
When the background of the candlestick closes red with a downwards pointing black arrow. It indicates a possible bearish (down)trend. To enter a trade its best to place an order a few ticks below the candle low.
Exits can be determined by Fibonacci extensions, orderblocks or other resistances to name a few. Or exit the trade when the opposite background color appears.
Final words
Disclaimer: Please use it with care and at own risk. The owner of this indicator is not liable for any financial losses.
Past performance is no guarantee of future returns.
Zendog V2 backtest DCA bot 3commasHi everyone,
After a few iterations and additional implemented features this version of the Backtester is now open source.
The Strategy is a Backtester for 3commas DCA bots. The main usage scenario is to plugin your external indicator, and backtest it using different DCA settings.
Before using this script please make sure you read these explanations and make sure you understand how it works.
Features:
- Because of Tradingview limitations on how orders are grouped into Trades, this Strategy statistics are calculated by the script, so please ignore the Strategy Tester statistics completely
Statistics Table explained:
- Status: either all deals are closed or there is a deal still running, in which case additional info
is provided below, as when the deal started, current PnL, current SO
- Finished deals: Total number of closed deals both Winning and Losing.
A deal is comprised as the Base Order (BO) + all Safety Orders (SO) related to that deal, so this number
will be different than the Strategy Tester List of Trades
- Winning Deals: Deal ended in profit
- Losing deals: Deals ended with loss due to Stop Loss. In the future I might add a Deal Stop condition to
the script, so that will count towards this number as well.
- Total days ( Max / Avg days in Deal ):
Total Days in the Backtest given by either Tradingview limitation on the number of candles or by the
config of the script regarding "Limit Date Range".
Max Days spent in a deal + which period this happened.
Avg days spent in a deal.
- Required capital: This is the total capital required to run the Backtester and it is automatically calculated by
the script taking into consideration BO size, SO size, SO volume scale. This should be the same as 3commas.
This number overwrites strategy.initial_capital and is used to calculate Profit and other stats, so you don't need
to update strategy.initial_capital every time you change BO/SO settings
- Profit after commission
- Buy and Hold return: The PnL that could have been obtained by buying at the close of the first candle of the
backtester and selling at the last.
- Covered deviation: The % of price move from initial BO order covered by SO settings
- Max Deviation: Biggest market % price move vs BO price, in the other direction (for long
is down, for short it is up)
- Max Drawdown: Biggest market % price move vs Avg price of the whole Trade (BO + any SO), in the other
direction (for long price goes down, for short it goes up)
This is calculated for the whole Trade so it is different than List of Trades
- Max / Avg bars in deal
- Total volume / Commission calculated by the strategy. For correct commission please set Commission in the
Inputs Tab and you may ignore Properties Tab
- Close stats for deals: This is a list of how many Trades were closed at each step, including Stop Loss (if
configured), together with covered deviation for that step, the number of deals, and the percentage of this
number from all the deals
TODO: Might add deal avg value for each step
- Settings Table that can be enabled / disabled just to have an overview of your configs on the chart, this is a
drawn on bottom left
- Steps Table similar to 3commas, this is also drawn on bottom left, so please disable Settings table if you want
to see this one
TODO: Might add extra stats here
- Deal start condition: built in RSI-7 or plugin any external indicator and compare with any value the indicator plots
(main purpose of this strategy is to connect your own studies, so using external indicator is recommended)
- Base order and safety orders configs similar to 3commas (order size, percent deviation, safety orders,
percent scale and volume scale)
- Long and Short
- Stop Loss
- Support for Take profit from base order or from Total volume of the deal
- Configs help (besides self explanatory):
- Chart theme: Adjust according to the theme you run on. There is no way to detect theme at the moment.
This adjust different colors
- Deal Start Type: Either a builtin RSI7 or "External indicator"
- Indicator Source an value: If using External Indicator then select source, comparison and value.
For example you could start a deal when Volume is greater than xxxx, or code a custom indicator that plots
different values based on your conditions and test those values
- Visuals / Decimals for display: Adjust according to your symbol
- BO Entry Price for steps table: This is the BO start deal price used to calculate the steps in the table