BitcoinNinjas NINJASIGNALS V4 (Script)BitcoinNinjas NINJASIGNALS V4 (Script)
(for Cryptocurrencies, Forex, GunBot, ProfitTrailer, Autoview, CryptoHopper, manual or automated trading, and more)
This is version 4 of our Ninja Signals trading script, with accompanying backtesting strategy.
BitcoinNinjas NINJASIGNALS V4 (Strategy)
•Allows users to easily set automated buy/long and sell/short alerts on TradingView for use with automatic and manual trading of cryptocurrencies, Forex securities, and more (alerts are compatible with automatic trading software such as GunBot, ProfitTrailer, Autoview, CryptoHopper, and more).
•Synthesizes many powerful indicators [e.g., Relative Strength Index (RSI), Stochastic RSI, Money Flow Index (MFI), Moving Average Convergence Divergence (MACD), etc.) into one powerful script to generate very precise buy and sell signals in virtually all market conditions.
•Features user-defined adjustable calibration settings, allowing traders to customize the script to fit any currency / security on any exchange available through TradingView.com, simply by adjusting settings.
•Buy/Long arrows, Sell/Short arrows, & EMA trendline can be customized or hidden, if desired.
•Complete with backtesting strategy version of script which allows users to test various trading strategies based on the alerts the script generates (see information and screenshots below).
•Backtesting strategy features a user-defined adjustable date range, so traders can estimate performance of the script over specific periods of time, such as the last week, month, or year.
•Script and backtesting strategy feature many user-adjustable settings including stop loss and take profit alerts, an ‘only sell for profit’ option (Gunbot-specific), many different buy and sell filters, and more. Simply adjust the script settings and the backtesting results will automatically refresh.
•Backtesting strategy allows for pyramid buying to test various average down / dollar cost average trading strategies. Simply adjust the number of pyramid buys and the quantity of each buy.
•Fully compatible with margin and futures trading for any currency / security on TradingView.com.
DISCLAIMER: By using our BitcoinNinjas ‘Ninja Signals’ planning script, you agree to the BitcoinNinjas 'Terms of Use'. No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. BitcoinNinjas is not responsible for any losses you may incur. Please invest wisely.
加密數字貨幣
BitcoinNinjas NINJASIGNALS V4 (Strategy)BitcoinNinjas NINJASIGNALS V4 (Strategy)
(for Cryptocurrencies, Forex, GunBot, ProfitTrailer, Autoview, CryptoHopper, manual or automated trading, and more)
This is version 4 of our Ninja Signals trading script, with accompanying backtesting strategy.
BitcoinNinjas NINJASIGNALS V4 (Script)
•Allows users to easily set automated buy/long and sell/short alerts on TradingView for use with automatic and manual trading of cryptocurrencies, Forex securities, and more (alerts are compatible with automatic trading software such as GunBot, ProfitTrailer, Autoview, CryptoHopper, and more).
•Synthesizes many powerful indicators [e.g., Relative Strength Index (RSI), Stochastic RSI, Money Flow Index (MFI), Moving Average Convergence Divergence (MACD), etc.) into one powerful script to generate very precise buy and sell signals in virtually all market conditions.
•Features user-defined adjustable calibration settings, allowing traders to customize the script to fit any currency / security on any exchange available through TradingView.com, simply by adjusting settings.
•Buy/Long arrows, Sell/Short arrows, & EMA trendline can be customized or hidden, if desired.
•Complete with backtesting strategy version of script which allows users to test various trading strategies based on the alerts the script generates (see information and screenshots below).
•Backtesting strategy features a user-defined adjustable date range, so traders can estimate performance of the script over specific periods of time, such as the last week, month, or year.
•Script and backtesting strategy feature many user-adjustable settings including stop loss and take profit alerts, an ‘only sell for profit’ option (Gunbot-specific), many different buy and sell filters, and more. Simply adjust the script settings and the backtesting results will automatically refresh.
•Backtesting strategy allows for pyramid buying to test various average down / dollar cost average trading strategies. Simply adjust the number of pyramid buys and the quantity of each buy.
•Fully compatible with margin and futures trading for any currency / security on TradingView.com.
DISCLAIMER: By using our BitcoinNinjas ‘Ninja Signals’ planning script, you agree to the BitcoinNinjas 'Terms of Use'. No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. BitcoinNinjas is not responsible for any losses you may incur. Please invest wisely.
RSI PRECISIONRSI PRECISION
By Giorgos Protonotarios, Financial Analyst
(March 2021)
--------
■ SHORT DESCRIPTION
RSI PRECISION is an oscillator designed to enhance RSI with price volatility and make it much more accurate on longer time frames. The oscillator aims to identify overbought/oversold market levels, and it is ideal for analyzing volatile markets such as the cryptocurrency market.
RSI PRECISION is extensively tested and optimized to work properly with any financial-traded asset. However, there is the option to customize settings, in order to match any out-of-the-ordinary market conditions.
■ RSI PRECISION MISSION
To enhance RSI and make it more accurate on longer time frames, and especially during market tops/bottoms.
■ RSI PRECISION OBJECTIVES
The RSI PRECISION formula combines RSI readings with the periodic measurement of market volatility. The main objectives are:
(1) identify overbought/oversold market levels in a simple and user-friendly manner
(2) make precise calculations near market tops and bottoms, where price volatility is always booming
(3) make precise calculations on longer time frames (monthly, weekly) where RSI readings are hardly readable
(4) allowing traders to experiment by offering a plethora of different settings
■ RSI PRECISION CALCULATIONS
The RSI PRECISION consists of 3 components:
(a) Relative Strength Index readings
(b) Price Volatility measurement (on a periodic base and according to the selected time frame)
(c) RSI Volatility measurement (optional)
■ BASIC SETTINGS
There are plenty of parameters. Negative values are allowed in order to enhance user experimentation:
--RSI PERIODS:
The RSI is most typically used on a 14-period timeframe. However, you can perfectly use RSI PRECISION on a 21-period timeframe. By default, it is 14.
--RSI FACTOR (%)
You can adjust the weight of RSI readings in the formula. By default, it is 100%.
--PERIODIC PRICE VOLATILITY (%)
You can adjust the weight of Periodic Price Volatility in the formula. If you enter the value=0, then the formula becomes the classic RSI. By default, it is 100%.
--ADD PERIODIC RSI VOLATILITY (%)
This is an extra measurement of volatility. This time the focus is exclusively on periodic RSI volatility, not on price volatility. By default, it is 0%.
--CROSSOVER/CROSSUNDER LEVELS
You can create visual signals on any significant RSI PRECISION crossover/crossunder.
--BASE LEVEL
The base level is the level of RSI PRECISION equilibrium. Below the level of equilibrium, RSI PRECISION readings are colored in red. By default, it is 50.
Happy trading!
□ Giorgos Protonotarios
(March 2021)
VP Extractor By CryptoScriptsThe VP Extractor is a combination of the Volume Extractor and Price Extractor. There was a lot of coding involved in this one and it involves a Volume/Price Oscillator derived from various volume/price metrics combined with Bollinger Bands and Overbought/Oversold levels. This indicator is unique because it not only measures the standard deviations whenever the oscillator crosses outside the BBs but it does so at ranges that are most advantageous for the trader to identify KEY buy/sell levels (as shown above). I'll break down each signal below and how to best take advantage of them so you can get the best entries and capture the most profit per trade.
*This indicator works best on the Binance or Bybit exchange for crypto but also works for stocks and forex. It's best used on small-medium timeframes such as the 5min, 15m, 1h, 4h, 8hr, or 12h. It tends to give more false signals on the 1D timeframes and higher.
Red Alarm - this signal indicates that the volume and/or price oscillators are overbought and/or crossing outside of the bollinger bands . This is a STRONG sell signal but should still be combined with support/resistance levels and confirmed with other indicators.
Red Diamond - this signal indicates that the volume and price oscillators are crossing outside of the bollinger bands above the 20 level but is not yet overbought. This is a potential sell signal but should still be combined with support/resistance levels and confirmed with other indicators.
Red Shaded Area - this indicates the volume and price oscillators are overbought. This is a potential sell signal but should still be combined with support/resistance levels and confirmed with other indicators.
Rocket - this signal indicates that the volume and/or price oscillators are oversold and/or crossing outside of the bollinger bands . This is a STRONG buy signal but should still be combined with support/resistance levels and confirmed with other indicators.
Green Diamond - this signal indicates that the volume and price oscillators are crossing outside of the bollinger bands below the 20 level but is not yet oversold. This is a potential buy signal but should still be combined with support/resistance levels and confirmed with other indicators.
Green Shaded Area - this indicates the volume and price oscillators are oversold. This is a potential buy signal but should still be combined with support/resistance levels and confirmed with other indicators.
Input Options
Show 80 Levels - This checkbox will create a red zone and green zone for the 60-80 levels on the indicator. This is useful if the volume and price oscillators reaches one of these levels, you can be sure it's going to reverse soon and can have more confidence if it crosses outside of the BBs in addition to that.
VEO Length - This changes the height of the oscillator and will change how your signals flash (more or less often). Use this if you find you're getting too many signals or not enough. I find this is best at 21 but feel free to test out what works for you depending on your timeframe.
PEO Length - This changes the height of the oscillator and will change how your signals flash (more or less often). Use this if you find you're getting too many signals or not enough. I find this is best at 21 but feel free to test out what works for you depending on your timeframe.
Moving Average Volume Source - This is currently set to None but you can change it to Exponential, Hull, or Simple moving average . I found that None works best but feel free to test out the different options.
Moving Average Length - Changing this length will do nothing to your chart if None is selected for the Moving Average Volume Source, therefore you will most likely keep this setting default at 9.
Alerts
I've set alerts on this indicator for each icon (Red Alarm, Red Diamond, Overbought, Rocket, Green Diamond, Oversold). I HIGHLY recommend setting the alerts for Candle Close so that you can be sure the signal is confirmed.
You may notice that the indicator can give multiple signals back-to-back or be overbought/oversold for multiple candles. When this happens, it's best to look at other indicators such as the RSI , MFI Pro, etc to nail the best entry and have confluence with your decision. With that said, having multiple signals back-to-back can also be an indication that the move is close to happening.
This indicator is a strong indicator by itself but works best when combined with my other indicators just as the Whales Buy-Sell and the MFI Pro as well as the RSI, and MACD i.e taking a trade when all indicators are showing overbought, "Buy", "Sell", etc. Measuring volume and price action is an extremely important aspect of trading and one I believe should not be overlooked. I hope I made everything as clear as possible and please let me know if I didn't.
PM me to obtain access and please let me know if you have any questions!
Bollinger Bands Trending Reverse StrategyWelcome to yet another script. This script was a lot easier since I was stuck for so long on the Donchian Channels one and learned so much from that one that I could use in this one.
This code should be a lot cleaner compared to the Donchian Channels, but we'll leave that up to the pro's.
This strategy has two entry signals, long = when price hits lower band, while above EMA, previous candle was bearish and current candle is bullish.
Short = when price hits upper band, while below EMA, previous candle was bullish and current candle is bearish.
Take profits are the opposite side's band(lower band for long signals, upper band for short signals). This means our take profit price will change per bar.
Our stop loss doesn't change, it's the difference between entry price and the take profit target divided by the input risk reward.
3Commas Bollinger StrategyThis strategy is intended for use as a way of backtesting various parameters available on 3commas.io composite bot using a bollinger band type trading strategy. While it's primary intention is to provide users a way of backtesting bot parameters, it can also be used to trigger a deal start by either using the {{strategy.open.alert_message}} field in your alert and providing the bot details in the configuration screen for the strategy or by including the usual deal start message provided by 3commas. You can find more information about how to do this from help.3commas.io
The primary inputs for the strategy are:
// USER INPUTS
Short MA Window - The length of the Short moving average
Long MA Window - The length of the Long moving average
Upper Band Offset - The offset to use for the upper bollinger offset
Lower Band Offset - The offset to use for the lower bollinger offset
Long Stop Loss % - The stop loss percentage to test
Long Take Profit % - The Take profit percentage to test
Initial SO Deviation % - The price deviation percentage required to place to first safety order
Safety Order Vol Step % - The volume scale to test
3Commas Bot ID - (self explanatory)
Bot Email Token - Found in the deal start message for your bot (see link in previous section for details)
3Commas Bot Trading Pair - The pair to include for composite bot start deals (should match format of 3commas, not TradingView IE. USDT_BTC not BTCUSDT)
Start Date, Month, Year and End Date, Month and Year all apply to the backtesting window. By default it will use as much data as it can given the current period select (there is less historical data available for periods below 1H) back as far as 2016 (there appears to be no historical data on Trading view much before this). If you would like to test a different period of time, just change these values accordingly.
Known Issues
Currently there are a couple of issues with this strategy that you should be aware of. I may fix them at some point in the future but they don't really bug me so this is more for informational purposes than a promise that they may one day be fixed.
Does not test trailing take profit
Number of safety orders and Safety Order Step Scale are currently not user configurable (must edit source code)
Using the user configuration to generate deal start message assumes you are triggering a composite bot, not a simple bot.
TemaI have found that such simple crossover can show good results. Basically it has only 2 TEMA and nothing more. I don't know what else to write here. The code is simplest and has only one filter, which take into consideration the direction of chart.
Donchian Channels Trending Breakout StrategyThis script looks for two entry signals. Long is when the previous breakout of the donchian channels was a low, price is above the input EMA, current price is equal or higher than the upper band and we're not in a position yet. Short is the other way around, so previous breakout of the donchian channels was a high, price is below the input EMA, current price is equal or lower than the lower band.
I haven't found a script that does take the previous highs and lows into consideration. Works for any markets in any conditions because the stop loss and profit targets are based on the upper and lower band of the donchian channels, which means the stop loss and profit targets move with the trend.
For more details see the script itself, I wrote a ton of comments.
HatiKO Envelopes v3Published source code is subject to the terms of the GNU Affero General Public License v3.0
Old flaws have been resolved.
This script describes and provides backtesting functionality to internal strategy of algorithmic crypto trading software "HatiKO bot".
Suitable for backtesting any Cryptocurrency Pair on any Exchange/Platform, any Timeframe.
Core Mechanics of this strategy are based on theory of price always returning to Moving Average + Envelopes indicator (Moving_average_envelope from Wiki)
Developement of this script and trading software is inspired by:
"Essential Technical Analysis: Tools and Techniques to Spot Market Trends" by Leigh Stevens (published on 12th of April 2002)
"Moving Average Envelopes" by ChartSchool, StockCharts platform (published on 13th of April 2015 or earlier)
"Коля Колеснік" from Crypto Times channel ("Метод сетка", published on 19th of August 2018)
"3 ways to use Moving Average Envelopes" by Rich Fitton, published on Trader's Nest (published on 28st of November 2018 or earlier)
noro's "Robot WhiteBox ShiftMA" strategy v1 script, published on TradingView platform (published on 29th of August 2018)
"Moving Average Envelopes: A Popular Trading Tool" Investopedia article (published 25th of June 2019)
and KROOL1980's blogpost on Argolabs ("Гридерство или Сетка как источник прибыли на форекс", published on 27th of February 2015)
Core Features:
1) Up to 9 Envelopes in each direction (Long/Short)
2) Use any of 6 different basis MAs, optionally use different MAs for Opening and Closure
3) Use different Timeframes for MA calculation, without any repainting and lookahead bias.
4) Fixed order size, not Martingale strategy
5) Close open position earlier by using Deviation parameter
6) PineScript v4 code
7) Anti-Spire (protection against situations like LTCUSD (Bitmex) 12/26/2020)
9) Lottery for each level
10) Total profit for the day. When activated, a histogram is drawn.
Options description:
Lot - % from your initial balance to use for order size calculation
Timeframe Short - Timeframe to use for Short Opening MA calculation, can be chosen from dropdown list, default is Current Graph Timeframe
MA Type Short - Type of MA to use for Short Opening MA calculation, can be chosen from dropdown list, default is SMA
Data Short - Source of Price for Short Opening MA calculation, can be chosen from dropdown list, default is OHLC4
MA Length Short - Period used for Short Opening MA calculation, should be >=1, default is 3
MA offset Short - Offset for MA value used for Short Envelopes calculation, should be >= 0, default is 0
Timeframe Long - Timeframe to use for Long Opening MA calculation, can be chosen from dropdown list, default is Current Graph Timeframe
MA Type Long - Type of MA to use for Long Opening MA calculation, can be chosen from dropdown list, default is SMA
Data Long - Source of Price for Long Opening MA calculation, can be chosen from dropdown list, default is OHLC4
MA Length Long - Period used for Long Opening MA calculation, should be >=1, default is 3
MA offset Long - Offset for MA value used for Long Envelopes calculation, should be >= 0, default is 0
Mode close MA Short - Enable different MA for Short position Closure, default is "false". If false, Closure MA = Opening MA
Timeframe Short Close - Timeframe to use for Short Position Closure MA calculation, can be chosen from dropdown list, default is Current Graph Timeframe
MA Type Close Short - Type of MA to use for Short Position Closure MA calculation, can be chosen from dropdown list, default is SMA
Data Short Close - Source of Price for Short Closure MA calculation, can be chosen from dropdown list, default is OHLC4
MA Length Short Close - Period used for Short Opening MA calculation, should be >=1, default is 3
Short Deviation - % to move from MA value, used to close position above or beyond MA, can be negative, default is 0
MA offset Short Close - Offset for MA value used for Short Position Closure calculation, should be >= 0, default is 0
Mode close MA Long - Enable different MA for Long position Closure, default is "false". If false, Closure MA = Opening MA
Timeframe Long Close - Timeframe to use for Long Position Closure MA calculation, can be chosen from dropdown list, default is Current Graph Timeframe
MA Type Close Long - Type of MA to use for Long Position Closure MA calculation, can be chosen from dropdown list, default is SMA
Data Long Close - Source of Price for Long Closure MA calculation, can be chosen from dropdown list, default is OHLC4
MA Length Long Close - Period used for Long Opening MA calculation, should be >=1, default is 3
Long Deviation - % to move from MA value, used to close position above or beyond MA, can be negative, default is 0
MA offset Long Close - Offset for MA value used for Long Position Closure calculation, should be >= 0, default is 0
Short 1..9 - % from MA value to put Envelopes at, for Shorts numbers should be positive, the higher is number, the higher should be Short n position, example: "Short 1 = 1, Short 2 = 2, etc."
Long 1..9 - % from MA value to put Envelopes at, for Longs numbers should be negative, the lower is number, the lower should be Long n position, example: "Long 1 = -1, Long 2 = -2, etc."
Graph notes:
Green lines - Long Envelopes .
Red lines - Short Envelopes .
Orange line - MA for closing of Short positions.
Lime line - MA for closing of Long positions.
Histogram - Profit for the last day. Black = 0, Green> 0, Red <0.
Old flaws have been resolved.
At the moment, there is one bug - if the closing and opening occurs on the same candle, then there is no close on the same candle. The situation is possible with small values of Envelope.
**************************************************************************************************************************************************************************************************************
Опубликованный исходный код регулируется Условиями Стандартной Общественной Лицензии GNU Affero v3.0
Старые недоработки были решены.
Этот скрипт описывает и предоставляет функции бектеста для внутренней стратегии алгоритмического программного обеспечения "HatiKO bot".
Подходит для тестирования любой криптовалютной пары на любой бирже/платформе, на любом таймфрейме.
Кор-механика этой стратегии основана на теории всегда возвращающейся к значению МА цены с использованием индикатора Envelopes (Moving_average_envelope from Wiki)
Разработка этого скрипта и программного обеспечения для торговли вдохновлена следующими источниками:
Книга "Essential Technical Analysis: Tools and Techniques to Spot Market Trends" Ли Стивенса (опубликовано 12 апреля 2002 года)
«Moving Average Envelopes» от ChartSchool, платформа StockCharts (опубликовано 13 апреля 2015 года или раньше)
«Коля Колеснік» с канала Crypto Times («Метод сетка», опубликовано 19 августа 2018 года)
«Moving Average Envelopes: A Popular Trading Tool», статья Investopedia (опубликовано 25 июня 2019 года)
Блог KROOL1980 из Argolabs («Гридерство или Сетка как источник прибыли на форекс», опубликовано 27 февраля 2015 года)
Основные особенности:
1) До 9-х Ордеров в каждом из направлении (Лонг / Шорт)
2) Выбор из 6-ти разных базовых МА, опционально используйте разные МА для открытия и закрытия.
3) Используйте разные таймфреймы для расчета MA, без перерисовки и "эффекта стеклянного шара".
4) Фиксированный размер ордера, а не стратегия Мартингейла
5) Возможность закрытия открытой позиции заблаговременно, используя параметр Deviation
6) Код реализован на PineScript v4
7) Антишпиль ( защита от ситуаций типа LTCUSD ( Bitmex ) 26.12.2020 )
9) Лотность для каждого уровня
10) Суммарный профит за день. При активации рисуется гистограмма.
Описание параметров:
Lot - % от вашего первоначального баланса, используется при расчете размера Ордера
Timeframe Short - таймфрейм, используемый для расчета МА Открытия Шорт позиций, может быть выбран из списка, по умолчанию - таймфрейм текущего графика
MA Type Short - тип MA, используемый для расчета МА Открытия Шорт позиций, может быть выбран из списка, по умолчанию SMA
Data Short - источник цены для расчета МА Открытия Шорт позиций, может быть выбран из списка, по умолчанию OHLC4
MA Length Short - период, используемый для расчета МА Открытия Шорт позиций, должен быть >= 1, по умолчанию 3
MA Offset Short - смещение значения MA, используемого для расчета Шорт Ордеров, должно быть >= 0, по умолчанию 0
Timeframe Long - таймфрейм, используемый для расчета МА Открытия Лонг позиций, может быть выбран из списка, по умолчанию - таймфрейм текущего графика
MA Type Long - тип MA, используемый для расчета МА Открытия Лонг позиций, может быть выбран из списка, по умолчанию SMA
Data Long - источник цены для расчета МА Открытия Лонг позиций, может быть выбран из списка, по умолчанию OHLC4
MA Length Long - период, используемый для расчета МА Открытия Лонг позиций, должен быть >= 1, по умолчанию 3
MA Offset Long - смещение значения MA, используемого для расчета Лонг Ордеров, должно быть >= 0, по умолчанию 0
Mode close MA Short - Включает отдельное MA для закрытия Шорт позиции, по умолчанию «false». Если false, MA Закрытия = MA Открытия
Timeframe Short Close - таймфрейм, используемый для расчета МА Закрытия Шорт позиций, может быть выбран из списка, по умолчанию - таймфрейм текущего графика
MA Type Close Short - тип MA, используемый при расчете МА Закрытия Шорт позиции. Mожно выбрать из списка, по умолчанию SMA
Data Short Close - источник цены для расчета МА Закрытия Шорт позиций, может быть выбран из списка, по умолчанию OHLC4
MA Length Short Close - период, используемый для расчета МА Закрытия Шорт позиции, должен быть >= 1, по умолчанию 3
Short Deviation - % отклонения от значения MA, используется для закрытия позиции выше или ниже рассчитанного значения MA, может быть отрицательным, по умолчанию 0
MA Offset Short Close - смещение значения MA, используемого для расчета закрытия Шорт позиции, должно быть >= 0, по умолчанию 0
Mode close MA Long - Включает разные MA для закрытия Лонг позиции, по умолчанию «false». Если false, MA Закрытия = MA Открытия
Timeframe Long Close - таймфрейм, используемый для расчета МА Закрытия Лонг позиций, может быть выбран из списка, по умолчанию - таймфрейм текущего графика
MA Type Close Long - тип MA, используемый при расчете МА Закрытия Лонг позиции. Mожно выбрать из списка, по умолчанию SMA
Data Long Close - источник цены для расчета МА Закрытия Лонг позиций, может быть выбран из списка, по умолчанию OHLC4
MA Length Long Close - период, используемый для расчета МА Закрытия Лонг позиции, должен быть >= 1, по умолчанию 3
Long Deviation -% для перехода от значения MA, используется для закрытия позиции выше или ниже рассчитанного значения MA, может быть отрицательным, по умолчанию 0
MA Offset Long Close - смещение значения MA, используемого для расчета закрытия Лонг позиции, должно быть >= 0, по умолчанию 0
Short 1..9 - % от значения MA для размещения Ордеров, для Шорт Ордеров должен быть положительным, чем выше номер, тем выше должна располагаться позиция Short n, например: « Short 1 = 1, Short 2 = 2 и т.д. "
Long 1..9 - % от значения MA для размещения Ордеров, для Лонг Ордеров должно быть отрицательным, чем ниже число, тем ниже должна располагаться позиция Long n, например: « Long 1 = -1, Long 2 = -2, и т.д."
Пояснения к графику:
Зеленые линии - Лонг Ордера.
Красные линии - Шорт Ордера.
Оранжевая линия - MA Закрытия Шорт позиций.
Лаймовая линия - MA Закрытия Лонг позиций.
Гистограмма - Профит за последние сутки.Черная = 0, Зеленая > 0, красная < 0.
Старые недоработки были решены.
На данный момент есть один баг - если закрытие и открытие происходит на одной свече, то на этой же свече нет закрытия. Ситуация возможна при небольших значениях Envelope.
Published source code is subject to the terms of the GNU Affero General Public License v3.0
Old flaws have been resolved.
This script describes and provides backtesting functionality to internal strategy of algorithmic crypto trading software "HatiKO bot".
Suitable for backtesting any Cryptocurrency Pair on any Exchange/Platform, any Timeframe.
Core Mechanics of this strategy are based on theory of price always returning to Moving Average + Envelopes indicator (Moving_average_envelope from Wiki)
Developement of this script and trading software is inspired by:
"Essential Technical Analysis: Tools and Techniques to Spot Market Trends" by Leigh Stevens (published on 12th of April 2002)
"Moving Average Envelopes" by ChartSchool, StockCharts platform (published on 13th of April 2015 or earlier)
"Коля Колеснік" from Crypto Times channel ("Метод сетка", published on 19th of August 2018)
"3 ways to use Moving Average Envelopes" by Rich Fitton, published on Trader's Nest (published on 28st of November 2018 or earlier)
noro's "Robot WhiteBox ShiftMA" strategy v1 script, published on TradingView platform (published on 29th of August 2018)
"Moving Average Envelopes: A Popular Trading Tool" Investopedia article (published 25th of June 2019)
and KROOL1980's blogpost on Argolabs ("Гридерство или Сетка как источник прибыли на форекс", published on 27th of February 2015)
Core Features:
1) Up to 9 Envelopes in each direction (Long/Short)
2) Use any of 6 different basis MAs, optionally use different MAs for Opening and Closure
3) Use different Timeframes for MA calculation, without any repainting and lookahead bias.
4) Fixed order size, not Martingale strategy
5) Close open position earlier by using Deviation parameter
6) PineScript v4 code
7) Anti-Spire (protection against situations like LTCUSD (Bitmex) 12/26/2020)
9) Lottery for each level
10) Total profit for the day. When activated, a histogram is drawn.
Options description:
Lot - % from your initial balance to use for order size calculation
Timeframe Short - Timeframe to use for Short Opening MA calculation, can be chosen from dropdown list, default is Current Graph Timeframe
MA Type Short - Type of MA to use for Short Opening MA calculation, can be chosen from dropdown list, default is SMA
Data Short - Source of Price for Short Opening MA calculation, can be chosen from dropdown list, default is OHLC4
MA Length Short - Period used for Short Opening MA calculation, should be >=1, default is 3
MA offset Short - Offset for MA value used for Short Envelopes calculation, should be >= 0, default is 0
Timeframe Long - Timeframe to use for Long Opening MA calculation, can be chosen from dropdown list, default is Current Graph Timeframe
MA Type Long - Type of MA to use for Long Opening MA calculation, can be chosen from dropdown list, default is SMA
Data Long - Source of Price for Long Opening MA calculation, can be chosen from dropdown list, default is OHLC4
MA Length Long - Period used for Long Opening MA calculation, should be >=1, default is 3
MA offset Long - Offset for MA value used for Long Envelopes calculation, should be >= 0, default is 0
Mode close MA Short - Enable different MA for Short position Closure, default is "false". If false, Closure MA = Opening MA
Timeframe Short Close - Timeframe to use for Short Position Closure MA calculation, can be chosen from dropdown list, default is Current Graph Timeframe
MA Type Close Short - Type of MA to use for Short Position Closure MA calculation, can be chosen from dropdown list, default is SMA
Data Short Close - Source of Price for Short Closure MA calculation, can be chosen from dropdown list, default is OHLC4
MA Length Short Close - Period used for Short Opening MA calculation, should be >=1, default is 3
Short Deviation - % to move from MA value, used to close position above or beyond MA, can be negative, default is 0
MA offset Short Close - Offset for MA value used for Short Position Closure calculation, should be >= 0, default is 0
Mode close MA Long - Enable different MA for Long position Closure, default is "false". If false, Closure MA = Opening MA
Timeframe Long Close - Timeframe to use for Long Position Closure MA calculation, can be chosen from dropdown list, default is Current Graph Timeframe
MA Type Close Long - Type of MA to use for Long Position Closure MA calculation, can be chosen from dropdown list, default is SMA
Data Long Close - Source of Price for Long Closure MA calculation, can be chosen from dropdown list, default is OHLC4
MA Length Long Close - Period used for Long Opening MA calculation, should be >=1, default is 3
Long Deviation - % to move from MA value, used to close position above or beyond MA, can be negative, default is 0
MA offset Long Close - Offset for MA value used for Long Position Closure calculation, should be >= 0, default is 0
Short 1..9 - % from MA value to put Envelopes at, for Shorts numbers should be positive, the higher is number, the higher should be Short n position, example: "Short 1 = 1, Short 2 = 2, etc."
Long 1..9 - % from MA value to put Envelopes at, for Longs numbers should be negative, the lower is number, the lower should be Long n position, example: "Long 1 = -1, Long 2 = -2, etc."
Graph notes:
Green lines - Long Envelopes .
Red lines - Short Envelopes .
Orange line - MA for closing of Short positions.
Lime line - MA for closing of Long positions.
Histogram - Profit for the last day. Black = 0, Green> 0, Red <0.
Old flaws have been resolved.
At the moment, there is one bug - if the closing and opening occurs on the same candle, then there is no close on the same candle. The situation is possible with small values of Envelope.
**************************************************************************************************************************************************************************************************************
Опубликованный исходный код регулируется Условиями Стандартной Общественной Лицензии GNU Affero v3.0
Старые недоработки были решены.
Этот скрипт описывает и предоставляет функции бектеста для внутренней стратегии алгоритмического программного обеспечения "HatiKO bot".
Подходит для тестирования любой криптовалютной пары на любой бирже/платформе, на любом таймфрейме.
Кор-механика этой стратегии основана на теории всегда возвращающейся к значению МА цены с использованием индикатора Envelopes (Moving_average_envelope from Wiki)
Разработка этого скрипта и программного обеспечения для торговли вдохновлена следующими источниками:
Книга "Essential Technical Analysis: Tools and Techniques to Spot Market Trends" Ли Стивенса (опубликовано 12 апреля 2002 года)
«Moving Average Envelopes» от ChartSchool, платформа StockCharts (опубликовано 13 апреля 2015 года или раньше)
«Коля Колеснік» с канала Crypto Times («Метод сетка», опубликовано 19 августа 2018 года)
«Moving Average Envelopes: A Popular Trading Tool», статья Investopedia (опубликовано 25 июня 2019 года)
Блог KROOL1980 из Argolabs («Гридерство или Сетка как источник прибыли на форекс», опубликовано 27 февраля 2015 года)
Основные особенности:
1) До 9-х Ордеров в каждом из направлении (Лонг / Шорт)
2) Выбор из 6-ти разных базовых МА, опционально используйте разные МА для открытия и закрытия.
3) Используйте разные таймфреймы для расчета MA, без перерисовки и "эффекта стеклянного шара".
4) Фиксированный размер ордера, а не стратегия Мартингейла
5) Возможность закрытия открытой позиции заблаговременно, используя параметр Deviation
6) Код реализован на PineScript v4
7) Антишпиль ( защита от ситуаций типа LTCUSD ( Bitmex ) 26.12.2020 )
9) Лотность для каждого уровня
10) Суммарный профит за день. При активации рисуется гистограмма.
Описание параметров:
Lot - % от вашего первоначального баланса, используется при расчете размера Ордера
Timeframe Short - таймфрейм, используемый для расчета МА Открытия Шорт позиций, может быть выбран из списка, по умолчанию - таймфрейм текущего графика
MA Type Short - тип MA, используемый для расчета МА Открытия Шорт позиций, может быть выбран из списка, по умолчанию SMA
Data Short - источник цены для расчета МА Открытия Шорт позиций, может быть выбран из списка, по умолчанию OHLC4
MA Length Short - период, используемый для расчета МА Открытия Шорт позиций, должен быть >= 1, по умолчанию 3
MA Offset Short - смещение значения MA, используемого для расчета Шорт Ордеров, должно быть >= 0, по умолчанию 0
Timeframe Long - таймфрейм, используемый для расчета МА Открытия Лонг позиций, может быть выбран из списка, по умолчанию - таймфрейм текущего графика
MA Type Long - тип MA, используемый для расчета МА Открытия Лонг позиций, может быть выбран из списка, по умолчанию SMA
Data Long - источник цены для расчета МА Открытия Лонг позиций, может быть выбран из списка, по умолчанию OHLC4
MA Length Long - период, используемый для расчета МА Открытия Лонг позиций, должен быть >= 1, по умолчанию 3
MA Offset Long - смещение значения MA, используемого для расчета Лонг Ордеров, должно быть >= 0, по умолчанию 0
Mode close MA Short - Включает отдельное MA для закрытия Шорт позиции, по умолчанию «false». Если false, MA Закрытия = MA Открытия
Timeframe Short Close - таймфрейм, используемый для расчета МА Закрытия Шорт позиций, может быть выбран из списка, по умолчанию - таймфрейм текущего графика
MA Type Close Short - тип MA, используемый при расчете МА Закрытия Шорт позиции. Mожно выбрать из списка, по умолчанию SMA
Data Short Close - источник цены для расчета МА Закрытия Шорт позиций, может быть выбран из списка, по умолчанию OHLC4
MA Length Short Close - период, используемый для расчета МА Закрытия Шорт позиции, должен быть >= 1, по умолчанию 3
Short Deviation - % отклонения от значения MA, используется для закрытия позиции выше или ниже рассчитанного значения MA, может быть отрицательным, по умолчанию 0
MA Offset Short Close - смещение значения MA, используемого для расчета закрытия Шорт позиции, должно быть >= 0, по умолчанию 0
Mode close MA Long - Включает разные MA для закрытия Лонг позиции, по умолчанию «false». Если false, MA Закрытия = MA Открытия
Timeframe Long Close - таймфрейм, используемый для расчета МА Закрытия Лонг позиций, может быть выбран из списка, по умолчанию - таймфрейм текущего графика
MA Type Close Long - тип MA, используемый при расчете МА Закрытия Лонг позиции. Mожно выбрать из списка, по умолчанию SMA
Data Long Close - источник цены для расчета МА Закрытия Лонг позиций, может быть выбран из списка, по умолчанию OHLC4
MA Length Long Close - период, используемый для расчета МА Закрытия Лонг позиции, должен быть >= 1, по умолчанию 3
Long Deviation -% для перехода от значения MA, используется для закрытия позиции выше или ниже рассчитанного значения MA, может быть отрицательным, по умолчанию 0
MA Offset Long Close - смещение значения MA, используемого для расчета закрытия Лонг позиции, должно быть >= 0, по умолчанию 0
Short 1..9 - % от значения MA для размещения Ордеров, для Шорт Ордеров должен быть положительным, чем выше номер, тем выше должна располагаться позиция Short n, например: « Short 1 = 1, Short 2 = 2 и т.д. "
Long 1..9 - % от значения MA для размещения Ордеров, для Лонг Ордеров должно быть отрицательным, чем ниже число, тем ниже должна располагаться позиция Long n, например: « Long 1 = -1, Long 2 = -2, и т.д."
Пояснения к графику:
Зеленые линии - Лонг Ордера.
Красные линии - Шорт Ордера.
Оранжевая линия - MA Закрытия Шорт позиций.
Лаймовая линия - MA Закрытия Лонг позиций.
Гистограмма - Профит за последние сутки.Черная = 0, Зеленая > 0, красная < 0.
Старые недоработки были решены.
На данный момент есть один баг - если закрытие и открытие происходит на одной свече, то на этой же свече нет закрытия. Ситуация возможна при небольших значениях Envelope.
Volume Extractor By CryptoScriptsThe Volume Extractor is an indicator I've been working on for awhile that involves a Volume Oscillator derived from various volume metrics combined with Bollinger Bands and Overbought/Oversold levels. This indicator is unique because it not only measures the standard deviations whenever the oscillator crosses outside the BBs but it does so at ranges that are most advantageous for the trader to identify KEY buy/sell levels (as shown above). I'll break down each signal below and how to best take advantage of them so you can get the best entries and capture the most profit per trade.
*This indicator works best on the Binance or Bybit exchange for crypto but also works for stocks and forex. It's best used on small-medium timeframes such as the 15m, 1h, 4h, 8hr, or 12h. It tends to give more false signals on the 1D timeframes and higher.
Red Alarm - this signal indicates that the volume oscillator is overbought AND is crossing outside of the bollinger bands . This is a STRONG sell signal but should still be combined with support/resistance levels and confirmed with other indicators.
Red Diamond - this signal indicates that the volume oscillator is crossing outside of the bollinger bands above the 20 level but is not yet overbought. This is a potential sell signal but should still be combined with support/resistance levels and confirmed with other indicators.
Red Shaded Area - this indicates the volume oscillator is overbought. This is a potential sell signal but should still be combined with support/resistance levels and confirmed with other indicators.
Rocket - this signal indicates that the volume oscillator is oversold AND is crossing outside of the bollinger bands . This is a STRONG buy signal but should still be combined with support/resistance levels and confirmed with other indicators.
Green Diamond - this signal indicates that the volume oscillator is crossing outside of the bollinger bands below the 20 level but is not yet oversold. This is a potential buy signal but should still be combined with support/resistance levels and confirmed with other indicators.
Green Shaded Area - this indicates the volume oscillator is oversold. This is a potential buy signal but should still be combined with support/resistance levels and confirmed with other indicators.
Input Options
Show 80 Levels - This checkbox will create a red zone and green zone for the 60-80 levels on the indicator. This is useful if the volume oscillator reaches one of these levels, you can be sure it's going to reverse soon and can have more confidence if it crosses outside of the BBs in addition to that.
VEO Length - This changes the height of the oscillator and will change how your signals flash (more or less often). Use this if you find you're getting too many signals or not enough. I find this is best at 21 but feel free to test out what works for you depending on your timeframe.
Moving Average Volume Source - This is currently set to None but you can change it to Exponential, Hull, or Simple moving average . I found that None works best but feel free to test out the different options.
Moving Average Length - Changing this length will do nothing to your chart if None is selected for the Moving Average Volume Source, therefore you will most likely keep this setting default at 9.
Alerts
I've set alerts on this indicator for each icon (Red Alarm, Red Diamond, Overbought, Rocket, Green Diamond, Oversold). I HIGHLY recommend setting the alerts for Candle Close so that you can be sure the signal is confirmed.
You may notice that the indicator can give multiple signals back-to-back or be overbought/oversold for multiple candles. When this happens, it's best to look at other indicators such as the RSI , MFI Pro, etc to nail the best entry and have confluence with your decision. With that said, having multiple signals back-to-back can also be an indication that the move is close to happening.
This indicator is a strong indicator by itself but works best when paired with my Price Extractor indicator i.e taking a trade when both indicators are displaying overbought/oversold or crossing outside of the bollinger bands . Measuring price action is an extremely important aspect of trading and one I believe should not be overlooked. I hope I made everything as clear as possible and please let me know if I didn't.
PM me to obtain access and please let me know if you have any questions!
Lash Out OscillatorPurpose of this Script
The Lash Out Oscillator (LOO) is designed to indicate local tops and bottoms of the considered asset when the price considerably 'lashes out', based on normalized price deltas. It also features divergences that can be used for trading. The LOO is mainly used for Ethereum (ETH) and Bitcoin (BTC), but can in theory be used for every asset. Customization of the input settings is then needed to match the boundaries well to the historic price data. The default parameters are tuned for Ethereum.
Settings
Default input settings are tuned for Ethereum (ETH/USD) on Kraken on daily (D) timeframe.
Generally best used on daily (D) timeframe. You might also want to test the 4-hourly (4H) timeframe.
After applying the indicator to the chart, one typically has to zoom into the oscillator as the raw price delta is also plotted (in blue) which often overshadows the oscillator in magnitude.
For all other assets besides Ethereum, the oscillator and boundary values have (very likely) to be adjusted.
All individual pieces can be hidden from the chart (especially important as one might want to hide the blue raw price delta as it could disturb the process of tuning the oscillator due to automatic zoom-outs).
Input Settings for Bitcoin
Aside from Ethereum (default settings), I provide the following settings which can be used for Bitcoin (BNC:BLX) on daily (D) timeframe:
Averaging Length: 20
Donchian Length: 40
Donchian Scaling: 0.2
Fixed Red High: 6.1
Fixed Red Low: 2.3
Fixed Green High: -2.3
Fixed Green Low: -6.1
Still, feel free to tune the LOO to your liking.
Differences to Classic Oscillators as e.g. Relative Strength Index (RSI)
Classic oscillators as the RSI feature fixed limit values (e.g. 0 to 100 for the RSI) and are therefore (as the name says) very relative (you cannot reliably guess tops or bottoms just from the RSI value). The LOO features non-fixed limit values (they can theoretically go to infinity, but are in practice very well contained within some range), leading to less relativity and more absolute behaviour, which is beneficial in spotting local tops and bottoms. Just as the RSI, the LOO shows (bullish and bearish) divergences on the chart, which can be used for refined trading.
Interpretation
Given are two boundary types:
Fixed boundary areas
Donchian channels
Normally one should look out for the LOO to hit the red or green fixed boundary areas. Although the range is in theory infinite, the fixed areas give good hints when a local top could be hit, at least for the Ethereum case. For additional trades one can look for the LOO to hit the Donchian channels. Note that these areas/channels have to be adjusted by hand for all other assets besides Ethereum. General trading ideas are:
After the red (green) area is hit, a short- to mid-term (depends on market phase) short/hedge (long) trade might be in order.
During full bullruns (bearmarkets), the LOO can extend a bit more into the red (green) area. Here look out for bearish (bullish) divergences to possibly enter mid-term trades.
After the upper (lower) Donchian channel is hit, a short/hedge (long) trade could be wagered.
Alerts
Alerts are built-in that trigger when the LOO crosses into the red or green fixed boundary regions.
Access
For access to this indicator please contact me via DM on TradingView or on Twitter (linked on my TradingView profile and in my signature).
MACD Crossover trend strategy, Long and ShortHey everybody,
This is my first strategy and script I wrote mostly myself. There's tons of content out there to learn how to code in Pinescript and it's exactly what I wanted and needed in this time of my life.
In any case, I made a rather simple MACD crossover strategy that only takes trades in the direction of both EMA and SMA (there are inputs to change the length of the moving averages and lots of other stuff too).
If the MACD line crosses upwards on the signal line, while above the zero point of the histogram and the price is above EMA + SMA , it's a long signal.
If the MACD line cosses downards on the signal line, while below zero on the histogram and the price is below EMA + SMA , it's a short signal.
There are a lot of default variables that make no sense, for basically any symbol you're going to be looking at. You're going to have to adjust the EMA , SMA , backtest date, take profit, stop loss and all that good stuff yourself to find decently profitable parameters.
I made this myself because I couldn't really find a strategy out there that allowed for so much customizing and it's an easy way to get started in Pinescript.
If you have any suggestions, tips or you see a flatout mistake in my code, please let me know. I'm still learning, everyday and I'm enjoying every second of it.
[astropark] Volume AnalyzerDear Followers,
today another awesome Analysis Tool, that you can use for day scalping: Volume Analyzer !
This indicator
works on every market, pair and timeframe
lets you see analysis of a different timeframes using the resolution parameter
has an optional trend colored background (I suggest to disable it if you use a different resolution)
integrates a tape profit strategy based on RSI (you can config it and enable/disable it)
lets you setup alarms on bull/bear signal as well as on TP RSI-based signals
I prefer to use this indicator in my day trading on low timeframes , like 5m - 15m - 1h, as you can have access to a more detailed volume information, but it works on high timeframes too as you can see in examples at the bottom of the description.
I truly think that Volume says a lot about future price action, as stated in my Cumulative Volume Delta (CVD) indicator, which you can find here below:
In this indicator, I'm much more interested in the bullish or bearish effect of volume generated by traders and following price action.
Be sure to understand that at current status this is not a complete automated strategy, but an analysis tool which aims to give you a positive bias, a profitable hedge in your trading journey.
As I always say, all tools are great if you use them correctly: this is not the "Holy Grail", so always use proper money and risk management strategies.
This indicator quite often calls bottoms and tops , most of the times it announces a coming reversals , sometimes it fails too of course.
Check this screenshot to have a clear idea of what I'm talking about:
You are supposed to discard signals of the same type that comes later and at a worse price (related to the trend) or you can use to re-fill your still-open position, using it as a re-entry.
You are supposed to act at first signals and average up/down if price goes against you when a new bear/bull signal appears at a better price.
Here it is another element you must consider: price action can deny a reversal stated by volume analysis .
In these cases, you must apply a stop loss in your trade and reverse your position. Don't average up/down your entry.
The reason in this screenshot below:
As you can see, the local downtrend was broken, as it was a simple pullback, previous bull trend was restored and price went up a lot!
The indicator here detected bears rejecting the run-up as much violently as they could, but that was a pullback, nothing more than that: main bull trend was still intact.
Another important advice: don't be greedy, always remember to take profits ! Avoid turning a winning trade into a losing one, which is a common mistake traders do.
That's why I decided to include an RSI based Take Profit algorithm inside:
when background is colored by green (and you can't see any bull signal), then you are in over bought region: start taking profits on you buy/long position or close it or set a trailing stop or a stop loss in profit!
when background is colored by red (and you can't see any bear signal), then you are in over sold region: start taking profits on you sell/short position or close it or set a trailing stop or a stop loss in profit!
when price is in a big overbought or oversold region, then you can see a "ob" label or a "os" label respectively
if you are in a bullish trend (you can see it from the trend colored green background as last signal was a "bull" one), "ob" becomes a clear "tp" - Take Profit advice
if you are in a bearish trend (you can see it from the trend colored red background as last signal was a "bear" one), "os" becomes a clear "tp" - Take Profit advice
Here some examples how you can use the signals produced by the indicator in order to be a successful trader.
I circled with pink signals you as supposed to take, then with a "$" pink backgrounded region where you are supposed to take profits, I finally put an X on failing signals, where you would theoretically have been stopped-out.
GBPUSD, 15m
ETHUSD, 1h
TSLA, 5m
BTCUSD, 15m
XAGUSD, 1h
EURUSD, 15m
SPX500, 1h
ETHUSD, 1D
ETHBTC, 6h
This is a premium indicator , so send me a private message in order to get access to this script.
Clean Market IndicatorI built this indicator to give a clear indication for when to look for long or short opportunities. It’s a very powerful indicator on both small- and large-time frames. So, whether you’re day-trading or trading a few times a week, this indicator will help you to improve your trading abilities. Since I’m a fond believer of the idea that a picture will tell a thousand words, please check out the pictures below.
Green = Bullish trend
Red = Bearish trend
Orange = Potential trend reversal
Black = No Signal
How to trade: in strong trending markets you could wait till the background changes into your desired color and trade that direction once it does. Another way to trade is to look for long opportunities in a certain market when the larger time frame’s background is green, since the trend is bullish and you don’t want to trade against the trend. In the end, countless possibilities to use this indicator to make yourself better at finding profitable opportunities.
Take a look at the pictures below where I show some different assets and timeframes with the Clean Market Indicator.
See below for examples:
RR 2
Software signal with Trend of the market/Central Pivot Range combined with RR1 for better results.
RR 1
Software signal with Pivots/Previous day high/Previous day low combined with RR2 for better results.
Flawless Victory Strategy - 15min BTC Machine Learning StrategyHello everyone, I am a heavy Python programmer bringing machine learning to TradingView. This 15 minute Bitcoin Long strategy was created using a machine learning library and 1 year of historical data in Python. Every parameter is hyper optimized to bring you the most profitable buy and sell signals for Bitcoin on the 15min chart. The historical Bitcoin data was gathered from Binance API, in case you want to know the best exchange to use this long strategy. It is a simple Bollinger Band and RSI strategy with two versions included in the tradingview settings. The first version has a Sharpe Ratio of 7.5 which is amazing, and the second version includes the best stop loss and take profit positions with a Sharpe Ratio of 2.5 . Let me talk a little bit more about how the strategy works. The buy signal is triggered when close price is less than lower Bollinger Band at Std Dev 1, and the RSI is greater than a certain value. The sell signal is triggered when close price is greater than upper Bollinger Band at Std Dev 1, and the RSI is greater than a certain value. What makes this strategy interesting is the parameters the Machine Learning library found when backtesting for the best Sharpe Ratio. I left my computer on for about 28 hours to fully backtest 5000 EPOCHS and get the results. I was able to create a great strategy that might be one of TradingView's best strategies out on the website today. I will continue to apply machine learning to all my strategies from here on forward. Please Let me know if you have any questions or certain strategies you would like me to hyper optimize for you. I'm always willing to create profitable strategies!
P.S. You can always pyramid this strategy for more gains! I just don't add pyramiding when creating my strategies because I want to show you the true win/loss ratio based buying one time and one selling one time. I feel like when creating a strategy that includes pyramiding right off the bat falsifies the win rate. This is my way of being transparent with you all. Have fun trading!
Tradespot - Trend SuiteTradespot - Trend Suite
No configuration needed, works out the box
Best used as a HTF analysis tool (1D, 3D, 1W, 1M), but can be applied to LTFs.
Makes use of a complex combination of indicatorss to paint a visual snapshot on the current trend
Completely open to building a core trading strategy upon
Want to know more or have questions? Come join the Tradespot community, or send me a message on TradingView.
hamster-bot PDD Pump and Dump DetectorPump and Dump detector by hamster-bot
strategy author: foresterufa
Pump and Dump detector (PDD)
This is a trend strategy, with a unique mechanism of multi-stage re-entry into a position (Take Profit-Entry) when a significant trend develops, based on our HiDeep indicator.
Positions are opened by the HiDeep indicator signal with trend direction filtering and volatility filtering. Positions are closed by a HiDeep indicator signal or a change in the trend direction.
The position can be accompanied by a unique Stoploss trailing MA.
hamster-bot RSI AlgoThis is a simple RSI based signal indicator. It is designed for algorithmic bot trading.
For best results, leave a time-frame of at least 1 hour.
When the RSI reaches 70, it gives a buy signal, and when the RSI reaches 30, it gives a sell signal. The position is then maintained until the opposite signal is given. If backtesting shows poor results, but looks like the opposite would be good, there is a simple switch in the settings to turn it over.
original indicator on the basis of which the strategy is made:
NYCOB Kill Zone StrategyI have now turned the NYCOB Kill zone into a stand alone strategy!
Fully customizable in regards to time of entry and levels of entry but the standard settings are the best all around.
Original NYCOB Kill Zone text below
This script plots the H and L of the first 2 hours of the NYC session and shades the space between in which i deem the NYC Order Block
It also maps out the First two hours on the chart as well so you can understand when the OB has formed
Over the past 3 years of trading cryptocurrency i have noticed a phenomena that has occurred nearly every day
The H or L will 90% of the time will be posted in the first two hours of this session
knowing this means you understand if you just wait til this time you can better your odds at not getting stop hunted due to poor entry
A few things to take from this study are these.
1. after the OB is formed
2. whichever side gets taken out first (H/L) will 90% define the bias for the day. I have found that using the m13-m15 TF will add some more confirmation with 1-2 closes outside of range H/L/
3. After general bias has formed 2 things can happen
A) PA just takes off and there is really nothing you can do about it unless you had other studies that told you that will happen
B) PA will dip back INTO the OB and create the OTE which is any retracement below the .5 Fibonacci of the shaded OB
4. Typically OTE happens after the session has ended
5. If you used OTE off of the past days NYCOB then you can use the new (forming or just formed) NYCOB to CONFIRM your initial bias presented from the previous days OTE and bias.
6. When PA cannot close outside the NYCOB it presents a range to range play where PA will visit the opposite side of the range to chase liquidity,
7. When the NYCOB is TIGHT then deviation is more likely to result in price expansion, when the NYCOB is WIDE then deviation tends to present more range to range plays.
8. After bias is formed and OTE has been made your stops should always be outside the NYCOB. I use the m30 or H1 ATR to get a slight cushion from the OB to ensure i dont get stop hunted.
Standard TP are all set at the same level but you can adjust them accordingly
Shout out to Elevate-Trading family member Boederzeng for helping me with the code!
Heikin Ashi+RSI+EMA Strategy 2.0 v4 [Cryptocurrency] by GodtrixHi,
I know a lot of people are looking for a more sophisticated and customizable strategy tool, I'm facing the same problem too, so I created one for myself and decided to share it for free trials and if you think this tool do what you wanted, you can contact me for the subscription "Premium" version.
I'll keep it simple with point forms, if you have any further inquiries or questions, please feel free to message me. Thank you.
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}}
One Alert will work for both Buy and Sell Order
If you using other Bot service, you can enter Custom Command too, so 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"
If you interested in our subscription version, message me for price.
Best Luck & a million dollar profit to you,
Godtrix BITSTAMP:BTCUSD BINANCE:DOTUSDT