RSI Strategy with alerts via TradingConnector to ForexSoftware part of algotrading is simpler than you think. TradingView is a great place to do this actually. To present it, I'm publishing each of the default strategies you can find in Pinescript editor's "built-in" list with slight modification - I'm only adding 2 lines of code, which will trigger alerts, ready to be forwarded to your broker via TradingConnector and instantly executed there. Alerts added in this script: 12 and 17.
How it works:
1. TradingView alert fires.
2. TradingConnector catches it and forwards to MetaTrader4/5 you got from your broker.
3. Trade gets executed inside MetaTrader within 1 second of fired alert.
When configuring alert, make sure to select "alert() function calls only" in CreateAlert popup. One alert per ticker is required.
Adding stop-loss, take-profit, trailing-stop, break-even or executing pending orders is also possible. These topics have been covered in other example posts.
This routing works for Forex, indices, stocks, crypto - anything your broker offers via their MetaTrader4 or 5.
Disclaimer: This concept is presented for educational purposes only. Profitable results of trading this strategy are not guaranteed even if the backtest suggests so. By no means this post can be considered a trading advice. You trade at your own risk.
If you are thinking to execute this particular strategy, make sure to find the instrument, settings and timeframe which you like most. You can do this by your own research only.
Cari dalam skrip untuk "algo"
Pivot Points AlgoThis is a Pivot Points Algo (PPA).
PPA uses an adaptive pivot algorithm that adapts to different market situations based on various factors.
PPA also includes depth filtering to make it more precise at its signal decision.
======= Signal Types ======
Main Signal of BUY and SELL shown by buy/sell labels.
Mini Signals of BUY and SELL shown by buy/sell arrows and shows additional breakouts after the Main Signal occurred.
Optional reversal signals show a possible reversal in trend (small triangle).
======= Alerts =======
Main Signals alerts - Alerts when a main Buy or Sell is triggered (Shown as Labels).
Combo Alerts - Alerts when main or mini signals of Buy and Sell are triggered (Shown as Arrows).
======= Assets and Time frames =======
Can be used on various assets, stocks, forex, crypto and works great for day trading as well as swing trading and long term investing.
PPA is designed to adjust to any time frame!
======= General info =======
The purpose of this indicator is to signal possible breakouts with a high rate of success.
PPA has been extensively tested and fine tuned to provide traders and investors with a valuable tool for timing long and short entries. However, no system is 100% perfect, and it is good practice to have a plan in place and use stop losses or other tools to mitigate unforeseen risk.
Also, note, I don't hide what PPA is doing as opposed to some other commercial indicators on the market. You can view pivot lines and pivot bands and so on.
The magic is the inner system itself which works for you to pinpoint the best entrance possible, I recommend confirming your own methods to make sure you want to take the trade.
To subscribe to Pivot Points Algo service see “Author's instructions” below.
For any question you can PM me.
Happy and profitable trading!
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.
function: Array DownsamplingA low cost function to down sample a array.
specially useful for pattern recognition algorithms.
Relativity BEARS FUTURES 50X 4H AlgorithmHi,
This system is prepared only for leveraged markets and for Futures and CFD markets.
Leveraged processing apply to cryptocurrency contracts that are also subject to.
System parameters:
Timeframe = 4H (4 Hours)
Leverage = 50X
Position Size = %1 (0.01) Each Trade
Market Direction : Short
System features :
- It targets the Risk /Reward Ratio of 1/3 and above. (Risk/Reward Ratio >= 3 )
- If a Take Profit Point has come in a successful trade but the parameter conformity has not deteriorated, system continues the trade.
- In this way, you can catch strong long trends several times a year.
But it is strict as stop-loss and avoids large declines,whipsaws whenever possible.
- The system tries to avoid unnecessary processes as much as possible.
This means less commission and less sideways market.
- Since it takes advantage of the reverse market, it is suitable not only for long and short but only for short position, ie "bears".
But this neutralizes unnecessary processes.
- Stop-Loss points and Snow-take points are shown in red and green.
-However, if there is a small amount of follow-up available at the computer, it is recommended to put stop-loss only.
Because the system revises both stop-loss and take profit points according to the conditions formed.
Doing this in the right major long trend here allows you to be in trades.
-The system takes into account the risk and only opens transactions where the value corresponding to 10 leverage ratio is greater than the risk.
This provides as much protection from risk as possible.
-Alerts added.
About Backtest :
Since this system uses leveraged market, backtest results are not healthy.
But since it targets the 1/3 Risk Reward Rate (3.00),
we must look Ratio Avg Win/Loss and it must be over 0.5 because :
This ratio means: When we reach 33% of our correct trades in all our trades, we are at breakeven.
This is 100 - 33 = 66
33/66 = 0.5 (Ratio Avg. Win / Avg Loss )
So whenever this rate is over 0.5, we make a profit.
*** The fact that this ratio is over 0.70-1.00 in terms of securing ourselves because there is a maturity in the future indicates that we are doing
successful snowball trades.(Because future contracts have loss of maturity and end dates)
And we achieve success cumulatively.
Important Note : This system is prepared only for these parameters.
These parameters are designed for Futures and CFDs.
It doesn't work in spot markets and Forex Markets.
NOTE :
The system has been prepared as a strategy to present success in a transparent manner.
Please check "Ratio Avg . Win / Avg Loss" rates in backtests.(Especially preferred financial instruments what you trade generally)
Important Note 2 -
Although the system revises the stop and take profit points in the required parameters, the most accurate place is when the signal comes.
It should be entered when the signal comes as much as possible and if this did not happen,
trade must be opened in the nearest bars after the signal comes.
If the position is not closed, renew your position in the new month by observing the maturity conditions.
Here you should pay attention to the maturity, the cost of transportation.
Because the more time to maturity, the more advantageous it will be.
Best regards.
Relativity BULLS FUTURES 50X 4H AlgorithmHi,
This system is prepared only for leveraged markets and for Futures and CFD markets.
Leveraged processing apply to cryptocurrency contracts that are also subject to.
System parameters:
Timeframe = 4H (4 Hours)
Leverage = 50X
Position Size = %1 (0.01) Each Trade
System features :
- It targets the Risk /Reward Ratio of 1/3 and above. (Risk/Reward Ratio >= 3 )
- If a Take Profit Point has come in a successful trade but the parameter conformity has not deteriorated, system continues the trade.
- In this way, you can catch strong long trends several times a year.
But it is strict as stop-loss and avoids large declines,whipsaws whenever possible.
- The system tries to avoid unnecessary processes as much as possible.
This means less commission and less sideways market.
- Since it takes advantage of the reverse market, it is suitable not only for long and short but only for long position, ie "bulls".
But this neutralizes unnecessary processes.
- Stop-Loss points and Snow-take points are shown in red and green.
-However, if there is a small amount of follow-up available at the computer, it is recommended to put stop-loss only.
Because the system revises both stop-loss and take profit points according to the conditions formed.
Doing this in the right major long trend here allows you to be in trades.
-The system takes into account the risk and only opens transactions where the value corresponding to 10 leverage ratio is greater than the risk.
This provides as much protection from risk as possible.
-Alerts added.
About Backtest :
Since this system uses leveraged market, backtest results are not healthy.
But since it targets the 1/3 Risk Reward Rate (3.00),
we must look Ratio Avg Win/Loss and it must be over 0.5 because :
This ratio means: When we reach 33% of our correct trades in all our trades, we are at breakeven.
This is 100 - 33 = 66
33/66 = 0.5
So whenever this rate is over 0.5, we make a profit.
*** The fact that this ratio is over 0.70-1.00 in terms of securing ourselves because there is a maturity in the future indicates that we are doing
successful snowball trades.(Because future contracts have loss of maturity and end dates)
And we achieve success cumulatively.
Important Note : This system is prepared only for these parameters.
These parameters are designed for Futures and CFDs.
It doesn't work in spot markets and Forex Markets.
NOTE :
The system has been prepared as a strategy to present success in a transparent manner.
Please check "Ratio Avg . Win / Avg Loss" rates in backtests.
Important Note 2 -
Although the system revises the stop and take profit points in the required parameters, the most accurate place is when the signal comes.
It should be entered when the signal comes as much as possible and if this did not happen,
trade must be opened in the nearest bars after the signal comes.
If the position is not closed, renew your position in the new month by observing the maturity conditions.
Here you should pay attention to the maturity, the cost of transportation.
Because the more time to maturity, the more advantageous it will be.
Best regards.
Relativity BEARS FUTURES 10X 1D AlgorithmHi,
This system is prepared only for leveraged markets and for Futures and CFD markets.
Leveraged processing apply to cryptocurrency contracts that are also subject to.
System parameters:
Timeframe = 1D (1 Day)
Leverage = 10x
Position Size = %1 (0.01) Each Trade
System features :
- It targets the Risk /Reward Ratio of 1/3 and above. (Risk/Reward Ratio >= 3 )
- If a Take Profit Point has come in a successful trade but the parameter conformity has not deteriorated, system continues the trade.
- In this way, you can catch strong long trends several times a year.
But it is strict as stop-loss and avoids large declines,whipsaws whenever possible.
- The system tries to avoid unnecessary processes as much as possible.
This means less commission and less sideways market.
- Since it takes advantage of the reverse market, it is suitable not only for long and short but only for short position, ie "bears".
But this neutralizes unnecessary processes.
- Stop-Loss points and Snow-take points are shown in red and green.
-However, if there is a small amount of follow-up available at the computer, it is recommended to put stop-loss only.
Because the system revises both stop-loss and take profit points according to the conditions formed.
Doing this in the right major long trend here allows you to be in trades.
-The system takes into account the risk and only opens transactions where the value corresponding to 10 leverage ratio is greater than the risk.
This provides as much protection from risk as possible.
-Alerts added.
About Backtest :
Since this system uses leveraged market, backtest results are not healthy.
But since it targets the 1/3 Risk Reward Rate (3.00),
we must look Ratio Avg Win/Loss and it must be over 0.5 because :
This ratio means: When we reach 33% of our correct trades in all our trades, we are at breakeven.
This is 100 - 33 = 66
33/66 = 0.5
So whenever this rate is over 0.5, we make a profit.
*** The fact that this ratio is over 0.70-1.00 in terms of securing ourselves because there is a maturity in the future indicates that we are doing
successful snowball trades.(Because future contracts have loss of maturity and end dates)
And we achieve success cumulatively.
Important Note : This system is prepared only for these parameters.
These parameters are designed for Futures and CFDs.
It doesn't work in spot markets and Forex Markets.
NOTE :
The system has been prepared as a strategy to present success in a transparent manner.
Please check "Ratio Avg . Win / Loss" rates in backtests.
Important Note 2 -
Although the system revises the stop and take profit points in the required parameters, the most accurate place is when the signal comes.
It should be entered when the signal comes as much as possible and if this did not happen,
trade must be opened in the nearest bars after the signal comes.
Here you should pay attention to the maturity, the cost of transportation.
Because the more time to maturity, the more advantageous it will be.
Best regards.
Bitcoin: Top & Bottom Mini-AlgoHere we have a mini-algorithm that tries to show absolute 4-year-cycle top and bottom zones for the case of the BraveNewCoin Liquid Index (BLX) for Bitcoin on the weekly (W) timeframe by using several oscillators as RSI, VPCI etc. employed with a custom logic. When the background gets red we might be near to a cycle peak, and when it gets green we might be near to the absolute bottom of the current cycle. Note that only absolute top/bottoms are indicated (at least since the end of 2013), so that the current strong drop in March 2020 was correctly not tagged, as it wasn't the lowest price of the current cycle.
It is best to combine this mini-algorithm with some of my boundary indicators for BLX, e.g. "Bitcoin: Price Action Integrals", for confluence . For the next peak one could then watch for the mini-algo to go red and for the price to hit the boundary. You can change the background transparency if you like to have this indicator be more unobstrusive on the chart.
For access please contact me via DM on TradingView or on Twitter (linked on my TradingView profile and my signature).
BlackPika X1 Algo StrategyBlackPika X1 Algo is a successor to the original BlackPika Algo.
It uses the following main elements:
RSI
ATR
ADX
Volume
Chopiness Filter
Trailing Profit
Fixed Profit
Trailing Stop loss
Fixed Stop Loss
Donchian channels and some more...
The backtest you see includes a commision of 1% and slippage of 1 tick. and the start date is from 2015
All the above mentioned settings are customisable, and can be adapted to your liking, timeframe and Asset.
Hit me up if you have any questions. This is only a backtest version.
All the best in your trading.
Aggressive Buy/Sell AlgoBacktested, high percentage gains aggressive indicator/algo.
Version 1.
I recommend using this script to form your bias for your selected timeframe.
If you are trading solely based off the indicator, each Buy/Sell signal is not an indication to close a previous position.
For example, if you open a position because of a recent sell signal you do not have to close it on the next buy signal.
If you are running an algo however, it is personal preference.
Self-Adjusting Parabolic SARWhat is this tool?
This is an implementation of the well-known Parabolic SAR indicator that can adjust parameters on the fly to achieve a better profitability.
The algorithm was borrowed from Profitable Parabolic SAR and connected to the basic Parabolic SAR implementation. So, now it will switch parameters automatically without any manual work required.
Profitable Parabolic SAR indicator can be found here:
Parabolic SAR indicator can be found here:
Self-Adjusting SuperTrendWhat is this tool?
This is an implementation of the well-known SuperTrend indicator that can adjust parameters on the fly to achieve a better profitability.
The algorithm was borrowed from Profitable SuperTrend and connected to the basic SuperTrend implementation. So, now it will switch parameters automatically without any manual work required.
Alerts
The same alerts as for the basic SuperTrend + special alert to notify user about parameters switching.
Profitable SuperTrend indicator can be found here:
SuperTrend indicator can be found here:
Good luck!
BSTtrend (and a quick note on trading psychology)Hi again :)
Script #2 for tonight, more to come :)
This one is a Pine transcription of a FXCM/LUA script called BSTrend
I used it years ago to trade index on very low timeframes with it. I'm always looking for oscillators that are more reactive than the traditional MACD. And even more reactive than the MACD Zero Lag
This is a proof of concept that Pinescript is my favorite trading programming language vs MT4/LUA/PRT. I just find it easier and the Pinescript community is helping a lot
With the BSTrend you can win but also lose. I see a lot of scripts out there but there is not a better or worst indicator. The key is HOW to use it.
In other words the key is your PSYCHOLOGY, without a rock-solid psychology, you'll end up committing a mistake even with G. himself whispering "BUY NOW", "SELL NOW" to your ears. (wait..... Do you mean this is happening only to me ????)
However, indicators help immensely in reducing the psychology pressure that we have to endure ... sometimes for days..... But better not to overcharge with dozens of indicators per chart and have a tool to detect whenever there is a confluence/convergence of your favorite indicators :) #algorithm #builder
I'll publish an educational post about next week
Those are the exact words that my mentor traders told me 6 years ago when I started trading
PS
____________________________________________________________
Be sure to hit the thumbs up as it shows me that I'm not doing this for nothing and will motivate to deliver more quality content in the future.
- I'm an officially approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
Double Top Pattern IdentifierI believe the most of users know the Double Top Pattern, so I omit the introduction.
The algorithm uses 10 internal watchers to identify the incomplete M-pattern. If any of the watchers finds the pattern, the signal will be plotted on the chart. You can customize the lookback periods for the watchers as well as you can specify the precision of the difference between two possible tops.
By default, all watchers wait for bar closing to avoid repainting issues. You can switch off this option.
Additionally, you can shift up/down the signal labels to the preferred distance.
NOTE: the orange straight lines are not included.
Double Bottom Pattern IdentifierI think everybody knows the Double Bottom Pattern, so I omit the introduction.
The algorithm uses 8 internal watchers to identify the incomplete W-pattern. If any of the watchers finds the pattern, the signal will be plotted on the chart. You can customize the lookback periods for the watchers as well as you can specify the precision of the difference between two possible bottoms.
By default, all watchers wait for bar closing to avoid repainting issues. You can switch off this option.
Additionally, you can shift down the signal labels to the preferred distance and set an alert for a new pattern found.
NOTE: the blue straight lines are not included.
Profitable Vortex Indicator ScannerIntroduction
The Vortex Indicator is a technical indicator invented by Etienne Botes and Douglas Siepman (Technical Analysis of Stocks & Commodities, V.28:1 (January, 2010): "The Vortex Indicator") to identify the start of a new trend or the continuation of an existing trend within financial markets.
It is composed of two lines, +VI and -VI . +VI represents up trending momentum and -VI represents down trending momentum.
The most basic strategy is to use the crossovers as trade signals:
when +VI crosses above -VI , go Long
when -VI crosses above +VI , go Short
Exit when a crossover occurs in the opposite direction
What is this tool?
This tool is a performance scanner that uses a decision tree-based algorithm under the hood to find the most profitable period's setting for the indicator. It analyzes the range of periods between 2 to 100 and backtests the Vortex Indicator for each period using the strategy mentioned above across the entire history of an instrument.
Settings
Net Profit line is optional and can be hidden through settings.
Alerts
It has an alert that notifies when a more profitable period was detected.
NOTE : It does not change what has already been plotted.
Good luck!
[New series!] [Consistent Losing Strategies] 34 EMA Scalping//---------------------------INTRO------------------------------
Hi All!
Let me introduce myself as a semi-successful forex trader & lover of automation.
I've taken to algo trading and have been hunting down strategies (that usually use indicators) to automate, backtest, and hopefully implement in MT4.
Unfortunately, most strategies are complete bulls*** and the select cases that are shown to "prove" success are limited.
These strategy sources often do not provide useful analytics either.
I want to change that approach to trading! We can really benefit each other and the community by being methodical about backtesting
as well as evaluating our results with some kind of scoring heuristic.
As for what that standardized process looks like..well I'm still working on it.
I'm pretty much on Tv for multiple hours of the day, screening strategies via Pinescript and I'd like to start sharing my progress!
This is a new series I'd like to start on consistently losing strategies. I'll make all the code public, so if you think I've made a blunder
or approached a problem the wrong way, then drop me a DM or paste your fix into the comments.
//---------------------------STRAT------------------------------
34 EMA Scalping strategy (ref. forextradingstrategies4u )
How you're supposed to trade it:
BUY:
1. Market is in an down trend as shown by the 34 EMA
2. Price breaks above a downwards trend line
3. Price breaks above the 34 EMA
4. Look for a very bullish candlestick or chart pattern
SELL:
1. Look for the 34 EMA to show we are in an uptrend
2. Price breaks below an upwards sloping trend line
3. Price breaks below 34 EMA
4. Look for a bearish candlestick or a chart pattern
//---------------------------CONC------------------------------
Q: Why does it fail?
A: I believe this strategy relies too much on subjective input (aka, trendlines).
Q: Why does it fail as an algo?
A: The 34 EMA is no more predictive than any other EMA, although it does a good job at filtering out noise.
Q: Should I try it out?
A: No, it's trash. This is the proof that it is trash.
BTC Precognition - Mtrl_ScientistHello Everyone,
I have been interested in algorithmic trading for a while now, and have picked up coding in Python/C++ 2 years ago, which made it possible for me to understand Pine Script (Trading View's proprietary language) fairly easily. I got interested in Bitcoin in 2013, but have only started actually investing in mid 2017. Making money during a bull run is easy but it's really the bear market that teaches you a lesson. So I went about and tried to avoid losses in future bear markets by digging into the analysis of financial time series. I looked around and found useful books, examples of pine script code, technical analyses from fellow chartists and sought out to combine it all into algorithms that can help prevent losses during the next bear market.
I came up with several profitable scripts, but let this be the first one I'm actually sharing with you guys. It draws data from all major Bitcoin exchanges (Hence this script will ONLY work for BTCUSD ) and is based on CVI, Fractal Adaptive Moving Avergage ( FRAMA ), and some calculus operations to make sense of their relationship.
I tried to tidy the final version up as much as possible, so that it becomes straightforward to use. All you need to look at is when the bar becomes green/red, the bar height is just the integrated area since it's crossed the 0-line and can serve as a threshold on lower time frames to avoid noise.
I've got a degree in Chemistry, so don't take this as financial advice, but please do let me know what you think!
Note:
- This is a re-upload because the first version got pulled due to linking to Twitter
- Script works best with Hekin Ashi candles
Planned features:
- Reduce amount of signals on lower time frames
- Make it work better with normal candles
Suggestions?
OmenImproved momentum-based trading algorithm based on my previous Merlin V6 script. Adjusted trade filtering rules to improve net return and profit factor on both long and short positions.
Works best with mid time-frame Heikin-Ashi data.
Apex Edge – Liquidity RaiderApex Edge – Liquidity Raider
The Predator That Hunts Where Retail Never Looks
The Liquidity Raider is not your average liquidity line plotter.
This is an institutional-grade hunting system that tracks the pools of liquidity Smart Money algos stalk — and tells you exactly when price is circling in for the strike.
Where most retail tools simply mark lines, this one acts like a predator:
Scans the chart dynamically to detect clustered highs & lows (pivot-based liquidity zones).
Filters noise with sensitivity & price rounding so you only get real liquidity levels — not every random swing.
Plots live BSL (Buy-Side Liquidity) & SSL (Sell-Side Liquidity) lines in clean dotted format.
Auto-deletes levels when swept, so your chart stays clean and focused.
Triggers directional arrows when price comes within your specified % distance to the target liquidity pool — before the market moves.
EMA confluence layer lets you align with institutional flow (customizable Fast & Slow EMAs).
Core Power
Cluster Logic – Finds high-probability liquidity zones using repeated pivot levels.
Sweep Awareness – Lines vanish the moment liquidity is taken, keeping focus on the next pool.
Proximity Strike Detection – Arrow signals only when price is within striking range.
Directional Clarity – Red arrows = targeting BSL, Green arrows = targeting SSL.
Scalable Across Timeframes – Adapts to your chart’s timeframe with dynamic lookback scaling.
Institutional Flow Filter – Optional EMA confirmation keeps you aligned with the real trend.
How to Use
Identify liquidity pools – Dotted green = buy-side, dotted red = sell-side.
Watch proximity arrows – These mean price is in range and hunting that pool.
Align with EMA bias – Enter only in the direction of institutional momentum.
Target the sweep – Your take profit is where the liquidity is resting.
Why Liquidity Raider Wins
This is not a lagging signal system.
It’s a real-time, clean, predictive tool designed to mimic the targeting logic of high-frequency algos.
By removing swept levels and focusing only on the next available pools, Liquidity Raider keeps you one step ahead of the crowd — and perfectly positioned for the kill shot.
BeeQuant - Hive Bars🔶 OVERVIEW
The "Hive Bars" indicator is a truly revolutionary analytical instrument, meticulously engineered to transcend the limitations of conventional price charting and unveil the profound, underlying essence of market dynamics. Imagine possessing a sophisticated visual engine that intelligently reconstructs raw price data into unique, dynamically consolidated "Hive Bars." These specialized constructs intuitively reveal the dominant market momentum and highlight high-conviction signals often obscured by the ubiquitous noise of traditional candlesticks. This indicator acts as a precision filter, illuminating exactly when pivotal shifts are occurring by coloring these reconstructed units with an adaptive, unparalleled accuracy. It is expertly crafted for the discerning trader seeking an undeniable analytical advantage, offering a fresh, meticulously refined perspective that enables the discernment of concealed patterns, fostering more decisive and confident trading actions. Crucially, "Hive Bars" now feature proactive, real-time alert capabilities, ensuring no critical market inflection point ever goes unnoticed.
__________________________________________________________________________
🧠 CONCEPTS
At its intellectual core, the "Hive Bars" indicator operates upon an advanced, proprietary framework that fundamentally reinterprets market data. It presents this refined information through its unique "Hive Bars"—specialized visual constructs that dynamically encapsulate the consolidated spirit and true directional bias of price action, delivering unparalleled clarity.
⬜ Smart Bar Reconstruction: Hive Bars don’t follow time, they follow the market. They are derived through a sophisticated, multi-faceted internal process that precisely captures the dominant price influence and momentum over variable periods. This structure adapts dynamically to changing conditions, letting you see the real pressure behind price moves with consistency that time-based candles can’t match. This proprietary reconstruction creates a new, inherently consistent, and highly focused visual narrative of underlying market flow, effectively stripping away extraneous "noise" and revealing the market's authentic directional intent.
⬜ Multi-Layered Internal Analysis: A dynamic and live, adaptive line powers the core of Hive Bars. It recalibrates constantly, tracking market structure in real time. Every bar is formed in relation to this internal baseline, giving immediate context to price behavior. You choose the data that drives this line—open, close, high, low, or custom blends—to match your style.
⬜ Intelligent Bar Formation Sequences: Bars are created when the market speaks, not when the clock ticks. A built-in pattern engine reads the flow and waits for real structure to form. This allows the indicator to autonomously consolidate price action, presenting a cleaner, more coherent visualization of trend development as it truly unfolds, rather than fragmented snapshots based on time.
⬜ Visual Signal Precision: "Hive Bars" spring to life with an intuitively powerful coloring system. While primary colors (Green for upward bias, Red for downward bias) denote the prevailing market direction, the "Hive Bars" indicator introduces distinctively colored "Signal Hive Bars". These specialized bars emerge when the market price exhibits a particularly robust, high-conviction interaction with the adaptive internal baseline, standing out instantly and often mark key turning points or breakouts you want to act on.
⬜ Daily Reset Option: For intraday traders, there’s a reset feature that clears the internal build-up at the start of each new trading day. This ensures fresh, unbiased perspectives that are meticulously tailored to the distinct market dynamics and cyclic rhythms of the current trading day.
⬜ Adjustable Sensitivity: With Hive Smoothing, you’re in full control. This setting lets you fine-tune how sensitive the bars are to price movement. Want tighter, faster signals? Dial it down. Prefer broader, more filtered setups? Turn it up. You decide when a new Hive Bar forms—and when a Signal Bar confirms. It’s all based on how you trade and how your asset moves. No guesswork, no one-size-fits-all defaults. Hive Bars adapts to your strategy and trading style, not the other way around.
__________________________________________________________________________
✨ FEATURES
The "Hive Bars" indicator is equipped with a comprehensive suite of cutting-edge features, designed for unparalleled clarity, adaptive responsiveness, augmented analytical depth, seamless interoperability with your broader analytical toolkit, and proactive real-time notifications:
🔹Proprietary Hive Bar Reconstruction
Experience a uniquely advanced visual representation of price action that dynamically consolidates market data, leading to enhanced trend and momentum clarity that goes beyond standard charting and candlestick data.
🔹Customizable Internal Analysis Line
Gain precise control over the underlying adaptive baseline's calculation by selecting various internal price source options, ensuring its alignment with your specific analytical focus.
🔹 Smart Alerts for Key Events 🔔
Get notified in real time when:
◦ A new Hive Bar completes – signaling a fresh structural range reset
◦ A new Signal Hive Bar closes – identifying a potential overbought or oversold condition
Built-in alert conditions make it easy to stay ahead of shifts without watching every candle manually.
🔹Intelligent Bar Formation Sequencing
Diamond-shaped markers clearly indicate the start of the indicator's internal combination logic for enhanced visual understanding.
🔹High-Conviction "Signal Hive Bars" (Distinct Colors)
Receive specialized, uniquely colored visual alerts when Hive Bars exhibit strong, decisive movements relative to the adaptive baseline, indicating moments of heightened market conviction and potential opportunity.
🔹Session-Based Reconstruction
Opt for the "Daily New Start" to intelligently reset the indicator's perspective with each new trading day, providing fresh, session-aligned insights tailored for intraday precision.
🔹Unrivaled External Indicator Collaboration
A truly unique and powerful advantage of "Hive Bars" is its capability to seamlessly integrate and profoundly enhance the performance of other external indicators. By outputting clean, smoothed price data, it lets you feed a higher-quality source into tools like RSI, MACD, moving averages etc. Use close for indicators like RSI, and close for moving averages. The result is better clarity, fewer false signals, and a stronger edge across your setup. Hive Bars isn’t just an indicator, it’s an upgrade for everything you use.
🔹Non-Repainting Historical Integrity
Hive Bars never repaints. Each bar is locked in only after all internal conditions are fully met. This means you can trust every historical signal—it won’t shift or vanish after the fact. What you see in hindsight is exactly what was shown in real time.
🔹Universal Timeframe Compatibility
Whether you're scalping on the 1-minute chart or analyzing multi-month trends, Hive Bars delivers consistent, clean insights. Its architecture adapts to any timeframe without losing fidelity, making it a reliable tool for any strategy or style.
🔹Cross-Market Versatility
Hive Bars is engineered to perform with precision across all major markets—whether you're trading forex, commodities, stocks, or indices. Its adaptive logic automatically aligns with the unique volatility and structure of each asset class, delivering consistently reliable insights no matter where you trade.
__________________________________________________________________________
⚙️ USAGE
Integrating the "Hive Bars" indicator into your daily analytical regimen is an intuitive process that will profoundly enhance your ability to discern crucial market dynamics and spot high-conviction opportunities with unprecedented clarity:
💁 Effortless Application
Simply add the "Hive Bars" indicator to any chart within your TradingView platform. Note that it plots on a separate panel below your main price chart to provide its unique visual output without obscuring the primary price action.
📊 Strategic Calibration
Access the indicator's comprehensive settings panel to meticulously calibrate its powerful engines and unlock its full potential:
⚙ "Internal EMA Config"
Configure the internal adaptive baseline by choosing its source (e.g., CLOSE, HL/2) and its specific EMA length. This shapes the core reference point for the dynamic formation of the "Hive Bars."
🤖 "CONFIG Group"
Here, you decide if you want "Daily New Start" for session-based analytical resets (particularly beneficial for intraday strategies). The "Hive Smoothing" input allows you to control a further layer of consolidation for the "Hive Bars."
🟩🟥 "Color": Customize the appearance of both standard "Hive Bars" and "Signal Hive Bars" to suit your visual preferences, enhancing their immediate interpretability.
🧭 Empirical Exploration
Experimentation with these parameters is paramount. Dedicate time to exploring different combinations across various assets and timeframes to discover the optimal configuration that resonates with your unique trading methodology and the inherent volatility of the market being analyzed.
👀 Interpreting the Unveiled Market Reality: Once calibrated, the "Hive Bars" will present a strikingly clear and actionable picture of market dynamics:
+ Green/Red Hive Bars: These visually denote the consolidated directional bias of the market over the reconstructed period. A sustained sequence of Green "Hive Bars" suggests pervasive bullish pressure and an upward path of least resistance, while a series of Red "Hive Bars" indicates dominant bearish control and a clear downward momentum.
+ "Signal Hive Bars" (Distinct Colors): Pay close attention to these specially colored "Hive Bars." They signify critical moments where the reconstructed price action exhibits a particularly strong, high-conviction interaction with its adaptive internal baseline. These often precede or confirm significant market movements and serve as your clearest, most reliable visual triggers for potential shifts in market control.
⛓️ Intermittent Appearance: Observe that "Hive Bars" do not necessarily appear for every single native time unit of your chart. They are intelligently reconstructed and consolidated representations of price action, appearing only when specific internal conditions are met to present a coherent, high-impact view of distinct market phases.
🔗 Harnessing Advanced External Synergy: To unlock a new dimension of analytical power, profoundly enhance your existing indicator suite by integrating the output of "Hive Bars" as the data source for other external indicators. When adding or configuring indicators such as RSI, Stochastic Oscillators, various Moving Averages (EMA, SMA), or any other indicator that prompts for a 'source' input, you can now select the purified output of the "Hive Bars" as your desired data stream.
For oscillators (e.g., RSI, MACD), select the close or a similar relevant output from "Hive Bars" as your source. This allows the oscillator to react to the purified, consolidated momentum of the "Hive Bars" rather than the potentially noisy raw price data, leading to smoother and more meaningful oscillator signals.
For moving averages (e.g., EMA, SMA), utilize the close or other pertinent "Hive Bar" output as your source. This provides an exceptionally smooth, highly responsive, and less choppy average that precisely tracks the true underlying trend as identified by "Hive Bars." This unique capability allows for the construction of powerfully layered and synergistic trading strategies.
📢 Setting Up Proactive Alerts for Critical Events: Leverage the newly incorporated alert capabilities to maintain real-time awareness of pivotal market developments, even when not actively monitoring your charts.
You can now choose to be alerted specifically when a "New Hive Bar Closed" (signifying the definitive completion of a major market phase as identified by the indicator) or when a "New Signal Hive Bar Closed" (highlighting a high-conviction market event that warrants immediate attention due to its pronounced significance).
__________________________________________________________________________
⚠️ LIMITATIONS
While the "Hive Bars" indicator is an incredibly powerful and advanced tool for dissecting market dynamics, it is vital to understand its inherent design parameters and the prevailing platform-specific constraints for optimal and informed utilization:
👉 Visual Gaps in Plotting: Due to current platform limitations pertaining to custom candle plotting functionality, you may occasionally observe visual gaps or intermittent non-contiguous plotting between "Hive Bars" on the chart. They’re not missing data, but a result of strict plotting rules. A bar is only drawn when all internal conditions are met. This ensures accuracy, even if the chart shows some spacing.
👉 Complementary Tool: This indicator excels at providing high-conviction directional insights and identifying significant market phases. However, it is fundamentally designed as a sophisticated complementary tool to a broader trading strategy, not as a standalone, all-encompassing system. Its true power is unlocked when integrated with other analytical methods.
👉 Input Calibration Essential: The efficacy and depth of insights derived from the "Hive Bars" are highly dependent on the careful and thoughtful calibration of its input parameters, including the "Internal EMA Config," "Hive Smoothing" setting. Optimal results necessitate empirical user experimentation and fine-tuning to discover the configurations best suited for specific assets, analytical objectives, and market conditions.
👉 Exclusion of Auxiliary Data: The "Hive Bars" indicator's primary focus is exclusively on transforming and presenting price data. It does not natively incorporate other vital market information such as fundamental economic data, or news events. Integrating these additional analytical layers remains an essential aspect of constructing a truly comprehensive and robust trading strategy.
█ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 『•••• ✎ ••••』 ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ █
🎯 CONCLUSION
The "Hive Bars" indicator offers an unparalleled, intuitively accessible, and highly adaptable framework for instantly grasping true price momentum and direction through its intelligent, non-repainting reconstruction of market data. By transforming chaotic raw data into strikingly clear, high-conviction "Hive Bars" and dynamic signals, and now with proactive alerts to highlight critical moments, it empowers you to cut through distractions and identify market currents with unprecedented ease. Think of it as a custom lens for the market. It filters out the clutter and shows you the real structure—bars formed not by time, but by intent. It's about seeing the unseen, with enhanced clarity and a deeper understanding of market forces, now with the power to supercharge all your other tools and keep you informed. No fluff. No hype. Just an edge you can actually see—and use.
▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣
🚨 RISK DISCLAIMER
Engagement in financial market speculation inherently carries a substantial degree of inherent risk, and the potential for capital diminution, potentially exceeding initial deposits, is a pervasive and non-trivial consideration. All content, algorithmic tools, scripts, articles, and educational materials disseminated by "Hive Bars" are exclusively purposed for informational and pedagogical objectives, strictly for reference. Historical performance data, whether explicitly demonstrated or implicitly suggested, offers no infallible assurance or guarantee of future outcomes. Users bear sole and ultimate accountability for their individual trading decisions and are emphatically urged to meticulously assess their financial disposition, risk tolerance parameters, and conduct independent due diligence prior to engaging in any speculative activity.
BeeQuant - Hive Factra🔶 OVERVIEW
The "Hive Factra" is a groundbreaking analytical instrument designed to unveil the true essence of market movement, transforming complex price action into powerfully consolidated insights. Imagine having a specialized lens that intelligently reconstructs market periods into unique "Hive Factra Bars," revealing underlying momentum and high-conviction signals often obscured in traditional charts. This indicator cuts through the noise, showing you precisely when significant shifts are occurring by coloring these reconstructed bars with an adaptive precision. It's built for traders who seek unfiltered perspective that helps see hidden patterns and make more decisive moves.
__________________________________________________________________________
🧠 CONCEPTS
Markets move in impulses and compressions. Most trend indicators rely on single-frame slope logic, which often flips during minor pullbacks. Hive Factra takes a different route. At its core, the "Hive Factra" operates on a sophisticated framework that reinterprets market data, presenting it through its proprietary "Hive Factra Bars", unique visualizations that capture the consolidated spirit of price action.
⬜ The "Hive Factra" Reconstruction: Unlike standard candles, "Hive Factra Bars" are intelligently re-engineered representations of market activity. They are derived through a proprietary process that captures the dominant price influence over specific periods, presenting a clearer, more focused view of underlying momentum. These unique bars visually consolidate information, making the core directional bias immediately apparent.
⬜ The Adaptive Baseline: An internal, dynamic analysis line constantly adjusts to market flow, serving as a crucial reference point for the "Hive Factra Bars." This adaptive baseline provides real-time context, helping the indicator precisely determine the significance of each reconstructed bar's movement.
⬜ High-Conviction Coloring & Signal Bars: The "Factra Bars" come to life with a discerning coloring system. While they reflect the primary market direction (Green for upward bias, Red for downward bias), the "Hive Factra" introduces specialized "Signal Hive Bars" with distinct colors. These unique bars appear when the consolidated price action exhibits a particularly strong, high-conviction interaction with the adaptive baseline, acting as powerful visual alerts for moments of heightened significance.
⬜ Session-Aligned Insights: For intraday traders, the "Daily New Start" option provides a unique advantage. When enabled, the indicator can reset its internal reconstruction process with each new trading session, offering fresh, unbiased perspectives tailored to the day's distinct market dynamics.
⬜ Dynamic Sensitivity: A configurable "Offset" allows you to fine-tune the indicator's responsiveness and the thresholds for initiating these "Hive Factra Bars" and "Signal Hive Bars." This ensures the indicator aligns perfectly with your individual trading style and the volatility of the asset you're analyzing.
__________________________________________________________________________
✨ FEATURES
The "Hive Factra" is equipped with a suite of cutting-edge features, all meticulously designed for unparalleled clarity, adaptive responsiveness, and augmented analytical depth:
🔹 Proprietary Hive Factra Bars
Experience a unique visual representation of price action that consolidates market data for enhanced trend and momentum clarity.
🔹 Customizable Internal Analysis Line
Control the underlying adaptive baseline's calculation for precise alignment with market flow, utilizing various price source options.
🔹 High-Conviction "Signal Hive Bars" (Distinct Colors)
Receive specialized visual alerts when Factra Bars exhibit strong, decisive movements relative to the adaptive baseline, indicating moments of heightened market conviction.
🔹 Overbought/Oversold Visuals
Signal Hive Bars highlight areas of potential exhaustion, providing intuitive insight into stretched conditions
🔹 Session-Based Reconstruction
Opt for the "Daily New Start" to reset the indicator's perspective with each new trading day, providing fresh, session-aligned insights.
🔹 Dynamic Offset Control
Adjust the "Offset" parameter to fine-tune the sensitivity of the Factra Bar reconstruction and signal generation thresholds, tailoring the indicator to specific market conditions.
🔹 Non-Repainting Logic for Historical Reliability
Each "Hive Factra Bar" is plotted only when its internal reconstruction conditions are fully met and confirmed. This ensures that the historical display of Factra Bars does not repaint, providing a high degree of reliability and trust in past signals and visualizations.
🔹 Cross-Market Versatility
This indicator is engineered to perform with precision across all major markets—whether you're trading forex, commodities, stocks, or indices. Its adaptive logic automatically aligns with the unique volatility and structure of each asset class, delivering consistently reliable insights no matter where you trade.
🔹 Custom Range Start Marker
A subtle diamond-shaped symbol is plotted to indicate the start of the Hive Factra logic cycle. This marks the bar from which the internal price range begins accumulating until a new Hive Factra Bar is confirmed and displayed. Helps visualize the dynamic evaluation period used in Factra’s structural detection.
🔹 Smart Alerts for Key Events
Get notified in real time when:
◦ A new Hive Factra Bar completes – signaling a fresh structural range reset
◦ A new Signal Hive Bar closes – identifying a potential overbought or oversold condition
Built-in alert conditions make it easy to stay ahead of shifts without watching every candle manually.
🔹 Universal Timeframe Compatibility: The "Hive Factra" is meticulously engineered to perform flawlessly across all timeframes, from rapid intraday charts to long-term weekly and monthly views. This universal compatibility ensures you receive consistent, high-quality insights regardless of your analytical horizon.
🔹 Unrivaled External Indicator Collaboration: A truly unique advantage of the "Hive Factra" is its capability to seamlessly integrate and enhance the performance of other external indicators. Its meticulously processed output, can serve as a highly purified and consolidated 'source' for indicators that accept such inputs (e.g., RSI, StochRSI, moving averages), which allows for more insightful data stream into your favorite indicators, potentially unlocking new levels of responsiveness and signal accuracy for your entire analytical setup.
__________________________________________________________________________
⚙️ USAGE
Integrating the "Hive Factra" into your daily analytical regimen is intuitive and will profoundly enhance your ability to discern crucial market dynamics and spot high-conviction opportunities:
💁 Effortless Application
Simply add the "Hive Factra" indicator to any chart within your TradingView platform. Note that it plots on a separate panel below your main price chart to provide its unique visual output without obscuring price.
📊 Tailored Calibration: Access the indicator's settings to unlock its full potential:
⚙ "Internal EMA Config"
Configure the internal adaptive baseline by choosing its source (e.g., Close, HL/2) and length. This shapes the core reference point for the Factra Bars.
⚙ "Hive Factra"
Decide if you want "Daily New Start" for session-based analysis and choose the "Source" type for how the Factra Bars are built.
🤖 "Offset"
Experiment with the "Offset" percentage to adjust the sensitivity of the Factra Bar's reconstruction. A smaller offset will make the Factra Bars appear more frequently, while a larger one will highlight only more significant movements.
🟩🟥 Green/Red Hive Factra Bars
These indicate the consolidated directional bias of the market over the reconstructed period. A sequence of Green bars suggests sustained bullish pressure, while Red bars point to dominant bearish control.
🚀 "Signal Hive Bars" (Unique Colors)
Pay close attention to these specially colored Hive Factra Bars. They signify moments where the reconstructed price action exhibits a high-conviction interaction with its adaptive baseline, often preceding or confirming significant market moves. These are your clearest signals for potential shifts.
✨ Appearance of Hive Factra Bars
Notice that these Bars do not necessarily appear for every single time unit. They intelligently reconstruct and consolidate price action, appearing only when conditions align to present a coherent, high-impact view of market phases.
🪢 Harnessing External Synergy
To unlock a new dimension of analysis, consider integrating "Hive Factra" as the data source for other indicators:
1. When adding indicators like RSI, StochRSI, or others that prompt for a 'source' input, you can select the "Hive Factra" as the input.
2. For oscillators (e.g., RSI, Stochastic), choose the close or similar output from "Hive Factra" as your source. This allows the oscillator to react to the purified, consolidated momentum of the Factra Bars rather than raw price.
For moving averages (e.g., EMA, SMA), use the close or other relevant Factra Bar output as your source. This provides an exceptionally smooth and responsive average that tracks the true underlying trend.
__________________________________________________________________________
⚠️ LIMITATIONS
While the "Hive Factra" is an incredibly powerful tool for dissecting market dynamics, it's vital to understand its design parameters for optimal use. It does not attempt to front-run reversals or predict market turns. Instead, it focuses on framing price behavior so traders can react with context.
👉 Visual Gaps in Plotting: Due to Tradingview platform limitations with custom candle plotting functionality, you may observe visual gaps between "Hive Factra Bars" on the chart. This occurs because the indicator only plots a Hive Factra Bar when its internal conditions for reconstruction are fully met, and there isn't an 'offset' parameter for custom candles to bridge these visual discontinuities. Importantly, this behavior ensures that each plotted Factra Bar is confirmed and does not repaint, providing reliable historical analysis.
👉 Reconstructed Data, Not Raw Price: It's crucial to remember that "Hive Factra Bars" are not traditional candles. They are a derived visualization that intelligently consolidates price data.
👉 Complementary Tool: This indicator excels at providing high-conviction directional insights and identifying significant market phases. However, it is designed as a sophisticated complement to a broader trading strategy, not a standalone system.
👉 Input Calibration Essential: The effectiveness of the "Hive Factra" is highly dependent on careful calibration of its input parameters, especially the "Offset" and internal EMA settings. Optimal results require user experimentation to find settings best suited for specific assets and timeframes.
👉 Exclusion of Auxiliary Data: The "Hive Factra" focuses solely on transforming price data. It does not incorporate other vital market information such as trading volume, market breadth, or fundamental news. Integrating these additional analytical layers remains essential for a comprehensive trading strategy.
█ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 『•••• ✎ ••••』 ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ █
🎯 CONCLUSION
The "Hive Factra" offers an unparalleled, intuitive, and highly adaptable framework for instantly grasping true price momentum and direction through its intelligent reconstruction of market data. By transforming chaotic raw data into strikingly clear, high-conviction "Factra Bars" and dynamic signals, it empowers you to cut through distractions and identify critical market currents with ease. Its revolutionary capability for seamless collaboration with external indicators (like RSI, EMA, etc., by using its purified output as their source) means you can elevate the performance of your entire analytical suite to new levels of precision and clarity. Seamlessly integrate this advanced visual tool within your analytical framework to gain a sharper, more confident perspective, and elevate your strategic decision-making in the markets. It's about seeing the unseen, with enhanced clarity and a deeper understanding of market forces, now with the power to supercharge all your other tools.
▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣
🚨 RISK DISCLAIMER
Engagement in financial market speculation inherently carries a substantial degree of inherent risk, and the potential for capital diminution, potentially exceeding initial deposits, is a pervasive and non-trivial consideration. All content, algorithmic tools, scripts, articles, and educational materials disseminated by "Hive Factra" are exclusively purposed for informational and pedagogical objectives, strictly for reference. Historical performance data, whether explicitly demonstrated or implicitly suggested, offers no infallible assurance or guarantee of future outcomes. Users bear sole and ultimate accountability for their individual trading decisions and are emphatically urged to meticulously assess their financial disposition, risk tolerance parameters, and conduct independent due diligence prior to engaging in any speculative market activity.