Gauss KenJi Robot
Gauss KenJi Trading Robot: Precision and Automation for Traders
The Gauss KenJi robot is a cutting-edge trading solution designed for experienced traders seeking to enhance their decision-making through advanced statistical models and automation. Unlike traditional trading tools that rely on generic indicators prone to false signals, the Gauss KenJi robot offers an innovative approach by utilizing two unique indicators: the Kenji Indicator v.2.0 and the Gauss Indicator .
Kenji Indicator v.2.0
Traditional moving averages and related indicators often fail in flat market conditions, where frequent crossovers lead to confusing signals and false trends. The Kenji Indicator addresses this issue by using a combination of correlation analysis and moving averages to more accurately identify the market’s state. This real-time insight allows for better navigation of local trends, reducing noise and increasing the precision of trade signals.
Gauss Indicator
The Gauss Indicator brings the power of statistical analysis into trading by applying the 3 sigmas rule. It calculates and predicts the likely price ranges for specific time frames (hourly, daily, weekly) with probabilities of 68%, 95%, and 99%. This offers traders an actionable framework for setting stop-loss, take-profit, and identifying key support and resistance levels. By providing a clearer view of potential price movements, the Gauss Indicator improves decision-making, ensuring that traders enter and exit the market at optimal points.
Gauss KenJi Robot: How it Works
The Gauss KenJi robot operates on a statistical algorithm based on the Gaussian function, which uses market volatility as a core indicator of price movements. The robot opens positions in the direction of the trend when the price reaches the predetermined Gauss border. Position sizes are calculated according to the “Initial_lot” parameter, with stop-loss and take-profit levels defined by the “Pips” parameter. Trades are automatically closed either when profit targets or stop-loss limits are reached, or if local trend reversals are detected by the Kenji Indicator.
This highly adaptable algorithm can be applied to any asset class (stocks, forex, crypto, commodities) and any time frame, providing traders with a versatile tool to navigate various markets.
Why Gauss KenJi is Essential for Traders
1. Time Efficiency: The robot operates autonomously, allowing traders to step away from constant chart monitoring while still capitalizing on market movements.
2. Profit Maximization: By leveraging machine learning and advanced statistical models, the robot identifies opportunities faster than human traders, ensuring more profitable trades.
3. Risk Management: The robot strictly adheres to predefined rules, helping traders minimize losses and protect their capital in volatile market conditions.
4. Cross-market Versatility: Whether you’re trading forex, stocks, crypto, or commodities, Gauss KenJi adapts to different markets and time frames, making it a versatile tool for professional traders.
The Gauss KenJi robot is a comprehensive, scientifically driven trading solution designed to eliminate common pitfalls associated with traditional indicators. Its combination of the Kenji Indicator’s trend identification and the Gauss Indicator’s price prediction capabilities makes it an indispensable tool for traders looking to enhance both the precision of their trades and the automation of their strategies. Whether you are aiming for consistent daily profits or optimizing long-term trading strategies, Gauss KenJi offers the efficiency and accuracy required to stay ahead in today’s competitive markets.
Robot
Trailing Stop SnippetThis is an example snippet that should allow for adding a trailing stop and trailing stop activation to almost any script.
You can use it by setting a trailing stop alone. This will provide you standard trailing stop functionality allowing you to lock in profits and increase your stop-loss as the price moves in your direction.
You can also set the trailing stop activation to trigger the original trailing stop at a certain level. "Once price rises 5%, set a trailing stop at break even". This would be set as 5 and 5 in the settings.
Hyper Bot | Self Optimizing Buy & SellThis strategy primarily uses Bollinger Bands with custom improvements and alterations in entry exit signals which i have learned over the past years.
How to use?
Visit strategy settings. You will see checkboxes before all options, meaning they can be turned ON and OFF.
For "Long SL %" to work, the "LONG" should be enabled aswell. If Long is not enabled, changing numbers in "Long SL%" won't make any difference.
Likewise if you want to test take profit, then either long or short or both should be enabled with "TP Long%" or "TP Short%"
This wide customization is being provided for you to be able to test all possible variations and choose whichever best is working for you. Play around with the numbers of SL% and TP% and find best ones that work for you in terms of drawdown, risk to profit etc.
Commission 0.1% by default is included, if however your commissions are lower, please change them to get better results.
This strategy is mainly optimized for Cryptocurrencies, however if you wish to use for indices and commodities please DM me, i will provide customization services.
Enjoy!
© Copyright 2022 "M Tahreem Alam"
Bot fib/pivot Hello, friends!
This strategy is based on the fibonacci level you choose in the setup and possible pivot points under the control of Williams’ Percent Range.
Williams' Percent Range is a dynamic indicator that detects overbought/oversold conditions.
When the possible reversal points coincide with the fibonacci level, and the high or low points according to Williams also coincide, then an entry occurs.
One of the oldest and most reliable trading tools are widely used support and resistance levels.
In this strategy, we are trying to find these reversal levels based on fibonacci.
//LOGIC ENTRY SETTINGS
Deviation-deviation from the pivot point, the lower this figure, the more entries. The yellow lines on the chart are pivot points.
Fibonacci lvl-fibonacci level, from which the entry will occur, provided that other conditions match
Highest lookback-The setting, which refers to Williams' Percent Range , looks at how many candles ago, was high or low. The smaller the number, the larger, but less accurate inputs.
//AMOUNT(USDT) FIRST ORDER AND > % NEXT
-Martingale first order (the amount of the entrance to the usdt) / next order (Increase of each subsequent order as a percentage)
//EXIT SETTINGS (%, RSI)
-Use RSI for close position? (the position will not be closed if it is in the red, even if the RSI conditions worked)
-Use % for exit? Exit immediately upon reaching the specified percentage
-Use trailing? When the checkbox is checked, the position will be exited by trailing.
Activation trail,after?- When the specified percentage is reached, trailing is activated!
Stop_trail,%- if the last candle falls from the high (after the trailing is activated), the position will be exited.
For example:
We entered the purchase at 100 per asset, activation costs 10, and stop is 2.
the price reached 110, there was an activation, after that it went up to 120, and from the high of the last candle, a 2% drop occurs and the trade is exited.
PS:The default value is 1%, what does this give us? if there is a sharp increase, then we take away all the movement
Use only long?
Allow long?- Only long trades will be displayed
Allow short? Only short trades will be displayed
Allo reverse? Upon receipt of a return signal, the opposite position will be closed.
//MARTINGALE GRID
If there is a check mark in the line "Use martingale and grid?"
then the grid will be active
If there is a check mark in the "Limit each next entry,%?" then, even if the entry from the bot logic is triggered, and the price does not fall by the specified percentage, then there will be no entry!
If there is a check mark in the "Grid,%" column, then purchases with martingale support will be added with a decrease by the specified percentage!
PS: "Grid" always starts anew, as the input from logic triggered!
//FILTER SETTINGS
1) Use filter oscillator? (The filter uses 7 averaged oscillators)
Period-the period for which you will be billing
Upper line-Short entry border.
(if 40, then there will be no entry until it reaches)
Lower line-Long entry border.
(20 until below 20 no entry)
2)Use filter range?
Filter type-moving average selection
Bars back-offset speed based on number of last bars
Period-period to calculate
3)Use filter supertrend?
Supertrend filter with multitimeframe
// How do filters work 2 and 3?
Filters can work either one by one or together.
A trade is entered when conditions from the logic and filters in the red zone are triggered, when there are no entries in the green zone.
//DATA RANGE:
-Testing results for any period of time
//PIRAMIDING
-Also in the settings there is a pyramid of order, keep this in mind. Make a deal for a small part of the deposit, and not for all the money at once!
PS: to use martingale, you need to write in the hook messages:
"amount": "{{strategy.order.contracts}}" (purchases will be in the amount of coins equivalent to USDT)
The default settings for TF are 1 minute, 10 inputs.
You can choose your settings for any TF, but look at different coins to make sure you have good statistics
Bounce Manager ATRThis is a tool to turn any line or indicator into a signaller from bounces from the source line.
The ATR version is build to specify what would be considered a worthy entry from the line using ATR multiplier values as inputs.
COMPONENTS:
- Max violation: When price moves past this the script will no longer look for entry until a new trend has been established. The line can also be used as a stop loss.
- Confirmation line: When price touches the line during a trend it
will wait to cross over this line to confirm a reaction from the line.
- Min past distance: A trend filtering system, this is a distance from
the line price has to break to confirm trend direction.
- Stop loss: This can be set to a percentage distance from the low after
bounce. Or it can be set to the max violation line
- Take profit: This can be a fixed take profit target or a risk to reward
based take profit. With risk to reward it will multiply the stop loss
distance by the input and use that to create target (green cross)
- ATR based or % based: there are 2 versions of the script, one for strict
percentage based logic and another one based on ATR values
In bounce manager v1 these stop loss and take profit targets are there only for plotting and visual backtesting purposes. Right now it can only send long and short signals.
Part of the Honest Algo service.
Technimentals RobotThis robot includes multiple trade signal algorithms and technical overlays. With tools for all markets and trading styles, access original and beautiful charting tools that work for you.
Flexible and robust trend detection & confirmation
Maverick mean reversion signals
Immensely customizable settings for all markets
Indicator prediction zones, perfect for options traders
The most beautiful bands in the world
As of this update, Technimentals Robot includes:
Queen Mary - A powerful mean reversion algorithm which compares the performance of the chart against the performance of a user-chosen benchmark. She uses short term mean reversion optionally combined with longer term trend following logic to detect possible deviations and thus unique pivot points which may lead to short term reversals or continuations of trend.
Brian - An agile and fully customizable trend following algorithm which uses various filtering systems to hone signals.
Prediction Zones - Projections of future price levels and indicator levels, currently featuring RSI and MFI.
Volume Weighted Filtered Bands - The most beautiful bands in the world.
...and much more! Check the change log below for new features.
Technimentals Robot is an all-in-one suite of indicators designed to be used as a standalone trading system. The backbone of this indicator is the trade signal generation. However, blindly following trade signals without context is unwise and that's where the supplementary bands and Prediction Zones come in. The signals are designed to be used primarily for entry signals; the bands can be used to determine whether or not a chart is overextended (and worth stopping out or profit taking) or not. The Prediction Zones are built in particular for those wishing to trade these signals via options due to the quantifiable nature of their predictions, but they too can be used to add an extra data point for knowing which areas of support & resistance to use when determining take profit and stop loss locations.
Sub-Component Descriptions:
Queen Mary
Queen Mary is a versatile trading signal generator which uses another symbol as a benchmark to build trading signals for your chart.
Queen Mary works by detecting whether or not there are sustained divergences and alerts the user via trade signals for when reversions to the mean are expected.
A typical use case for Queen Mary would be to set her to run on a technology stock with a technology ETF as the benchmark, but you use any pair of your choice.
Buy signals on the chart simultaneously indicate sell signals in the benchmark.
This can be used for pairs trading and long/short portfolio strategies.
Suppose the following; you’ve applied Queen Mary to a chart of AAPL and are using XLK as the benchmark. A buy signal for AAPL would also indicate a sell signal for the XLK. The user could then long AAPL and short XLK the same dollar amount, expecting a reversion to the mean.
Brian
Brian is a flexible trend following algorithm which uses multiple filtering techniques to hone entries and exits.
Brian has been designed to catch every major trend without fail. The inevitable problem all breakout or trend following algorithms face is their propensity to get chopped up during sideways market action. Brian addresses this problem via the ‘Risk’ setting which allows the user to determine the market conditions via a risk/reward standpoint.
During periods of sideways action, the risk setting should be increased. This will reduce the number of signals Brian gives and increase the odds of the breakout leading to a continuation.
Brian signals profit taking signals via blue flags. These always occur at a user defined risk to reward ratio. Partial profits should always be taken as soon as these flags occur. It is advised to use a user-defined trailing stop loss on the remaining position which suits the user’s own risk preferences.
Prediction Zones
Prediction Zones predict zones of indicator and price levels into the future.
Currently featuring the Relative Strength Index and the Money Flow Index, Prediction Zones will display at what future prices these indicators will reach user defined outputs.
A classic use-case example of this would be for options traders as these zones can be used as support and resistance areas. For example, if you believe the daily RSI won’t reach below 30 before the end of the week, you can use this zone as another data point for deciding where to put your short strike.
The zones can be shown into the past too so you can see how they behaved on historical data.
Volume Weighted Filtered Bands
These bands are built by firstly using a volatility and short term range detection algorithm and plugging this into three different lengths of smoothing filters. The output is then combined and filtered one last time before being coloured and plotted as multiple bands.
They can be customized to suit any trading style, but were built with scalp traders particularly in mind. It’s rare for prices to deviate from these bands for long.
A typical use case for these bands would be to trade with the trend while price is trading cleanly inside and in the same direction as the bands. Profit taking should typically be considered when price exceeds the bands, although this will depend on the settings chosen by the user.
The bands can also be used to gauge volatility (with an unusual increase in width) and volume (increased brightness).
The brightness of the bands are determined by volume, the brighter the bands are, the greater the volume.
Queen Mary
Brian
Most of the above images were carefully chosen, others were not. No indicator or strategy is perfect. Trend following algorithms will inevitably experience chop. Mean reversion algorithms will inevitably miss out on the big moves. Our tools aim to give you the data to help you determine which signals to act upon.
You are responsible for your own trading decisions. Trading signals are worthless if you do not have a clear plan, including exit targets and risk management. If you do not have these, you should study them seriously before considering fancy indicators. This indicator is probably unsuitable for beginners.
[BTCUSD] Multi Entries Autotrade BinanceCommission = 4 USD per order >>> check in the Performance Summary
Slippage = 2 ticks
- I see from Kodify (tradingview.com/pine-wizards)
Risk: 1% per trade >>> check at the "List of trades"
* Auto trade BINANCE FUTURE by Webhook + Pro, Pro+, Premium Tradingview user.
Binance future quantity setting:
- Fixed Quantity = 0 => Auto quantity (Balance, risk, pips loss)
- Fixed Quantity > 0 (0.001, 0.002, 0.01,...) => send signal with Fixed Quantity
H4 timeframe is main trend: Supertrend indicator.
- Uptrend when closes candle is below the red line
- Downtrend when closes candle is above the green line
H1 timeframe: Keltner Color count & RSI indicator:
- Keltner Color Count input:
- Length = 50
- Multi1 = 1
- Multi2 = 2
- Multi3 = 3
- Source = Close
- Lookback = 25
- RSI input: Length: 14, Source: Close
I. Entry 1: BASIS KELTNER CHANNEL
- BUY when previous OHLC4 candle crossover Basis line AND Supertrend H4 uptrend AND Keltner channels uptrend. Not repaint.
- SELL when previous OHLC4 candle crossunder Basis line AND Supertrend H4 downtrend AND Keltner channels downtrend. Not repaint.
II. Entry 2: UPPER 2/LOWER 1 KELTNER CHANNEL
- BUY when previous OHLC4 candle crossunder Upper 1 AND Supertrend H4 uptrend AND Keltner channels uptrend AND rsi uptrend. Not repaint.
- SELL when previous OHLC4 candle crossover Lower 1 AND Supertrend H4 downtrend AND Keltner channels downtrend AND rsi downtrend. Not repaint.
III. Entry 3: SELL UPPER 2/ BUY LOWER 1 KELTNER CHANNEL
- BUY when previous OHLC4 candle crossover Lower 1 AND Supertrend H4 uptrend AND Keltner channels uptrend AND rsi uptrend. Not repaint.
- SELL when previous OHLC4 candle crossunder Upper 1 AND Supertrend H4 downtrend AND Keltner channels downtrend AND rsi downtrend. Not repaint.
IV. Report all history BTCUSD (H1 timeframe)
- 01/01/2019 - 20/11/2021
- 01/01/2018 - 01/01/2021
- 01/01/2017 - 01/01/2020
- 01/01/2016 - 01/01/2019
- 01/01/2015 - 01/01/2018
- 01/01/2014 - 01/01/2017
- 01/01/2013 - 01/01/2016
- 01/01/2012 - 01/01/2015
ETHUSD Multi Entries Autotrade BinanceCommission = 4 USD per order >>> check in the Performance Summary
Slippage = 2 ticks
- I see from Kodify (tradingview.com/pine-wizards)
Risk: 1% per trade >>> check at the "List of trades"
* Auto trade BINANCE FUTURE by Webhook + Pro, Pro+, Premium Tradingview user.
Binance future quantity setting:
- Fixed Quantity = 0 => Auto quantity (Balance, risk, pips loss)
- Fixed Quantity > 0 (0.001, 0.002, 0.01,...) => send signal with Fixed Quantity
H4 timeframe is main trend: Supertrend indicator.
- Uptrend when closes candle is below the red line
- Downtrend when closes candle is above the green line
H1 timeframe: Keltner Color count (Free): 2 Entries (I. Basis line, II. Upper 1/Lower 1 line)
Keltner Color Count input
- Length = 50
- Multi1 = 1
- Multi2 = 2
- Multi3 = 3
- Source = Close
- Lookback = 25
I. Basis entry rule:
1. Keltner channels:
Long when closes candle crossover the Upper 3 Keltner.
Short when closes candle crossunder the Upper 3 Keltner.
2. Rule of Basis's correction zone before open trades.
- Buy when previous OHLC4 candle crossover the Keltner Basis (Supertrend uptrend & Keltner long). Not repaint.
- Short when previous OHLC4 candle crossunder the Keltner Basis (Supertrend downtrend & Keltner short). Not repaint.
II. 'Upper 1/Lower 1' entry rule:
1. Keltner color count: lookback = 25
2. Keltner channels:
- Long when closes candle crossover the Upper 2 Keltner and Keltner Color count Uptrend.
- Short when closes candle crossunder the Upper 2 Keltner and Keltner Color count Downtrend.
3. RSI down when crossover 70, RSI down when crossunder 30
4. Rule of 'Upper 1/Lower 1' correction zone before open trades.
- Buy when previous OHLC4 candle crossunder the Keltner Upper 1 (Supertrend uptrend & Keltner long & RSI up). Not repaint.
- Short when previous OHLC4 candle crossover the Keltner Lower 1 (Supertrend downtrend & Keltner short & RSI down). Not repaint.
III. Stoploss move: Height of Keltner * 1.3
IV. Report all history ETHUSD (h1 timeframe):
1. Keltner Basis line entries:
- 14/01/2019 - 20/11/2021
- 18/01/2021 - 01/01/2021
- 02/01/2020 - 01/01/2020
- 05/02/2016 - 01/01/2019
- 23/10/2015 - 01/01/2018
- 23/10/2015 - 01/01/2017
2. Keltner 'Upper 2/Lower 1' entries:
- 20/01/2019 - 20/11/2021
- 10/01/2018 - 01/01/2021
- 12/01/2017 - 01/01/2020
- 04/02/2016 - 01/01/2019
- 19/08/2015 - 01/01/2018
- 19/08/2015 - 01/01/2017
3. Combine 2 entries (Basis & 'Upper 1/Lower 1':
01/01/2019 - 20/11/2021
01/01/2018 - 01/01/2021
01/01/2017 - 01/01/2020
01/01/2016 - 01/01/2019
01/01/2015 - 01/01/2018
01/01/2015 - 01/01/2017
Excitement - Crypto Surfer v1For those of us who need more excitement in our crypto journey besides just HODL, here’s a simple crypto robot that trades on the hourly (1H) candles. I call it the Crypto Surfer because it uses the 20 and 40 EMAs (Exponential Moving Averages) to decide when to enter and exit; price tends to “surf” above these EMAs when it is bullish, and “sink” below these EMAs when it is bearish. An additional 160 SMA (Simple Moving Average) with slope-angle detection, was added as a bull / bear filter to reduce the sting of drawdowns, by filtering-out long trades in a prolonged bear market.
USER NOTES:
- This script will buy $10,000 USD worth of crypto-currency per trade.
- It will only open one trade at a time.
- It has been backtested on all the high market cap coins such as Bitcoin, Ethereum, Binance Coin, Polkadot, Cardano.
- It should be run on the Hourly (H1) chart.
- In general, this moving average strategy *should be* profitable for 80% to 90% of the coins out there
- The 160 SMA filter with slope angle detection is designed to stop you from going long in a bear market.
- It is recommended you copy this script and modify it to suit your preferred coin during backtesting, before running live.
- Trading is inherently risky (exciting), and I shall not be liable for any losses you incur, even if these losses are due to sampling bias.
RSI Trend CryptoDear community,
Today I want to present you one of my favorite and simple trading bots: The RSI Trend.
This bot is based on the RSI, which normally is used as a trend reversal indicator. However, here it’s used as a trend finding indicator, often with great success. This bot making long-only trades, which is quite successful in bull-markets like the one we’re currently in.
In case you want to use an emergency exit for your trade, toggle the Emergency Exit parameter. During bull-markets it’s better in the long term to keep this option off.
Currently the bot only makes one trade at a time (pyramiding = 1), for higher risk and higher rewards you can increase this parameter. More than 5 is not advised.
I’ve optimized this bot on 15min time frame. It has some decent results for most cryptos on this TF, feel free to test this out.
In case you want to hook this bot up to your exchange, feel free to edit the ALERT messages in the code.
Default Trading Rules:
Long: RSI crosses over 35
Close Long: RSI crosses under 75
Emergency Exit: RSI crosses under 10
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.
AUDCAD - DinhChienFX Corner signal- Long signal is comfirmed when the Candle's close crossover the Keltner Channel:
- Short's signal confirms when Candle' close crossunder Lower Keltner.
- The formule Stoploss and Take profit
BTCUSD signal [DinhChienFX Corner] Ver 2.01. How to use Keltner Channel
a_ Length of Keltner's basis line is 50. It gives the best result in finding rule of BTCUSD.
b_ How to confirms a trend.
- Upper 2 is used to confirm Keltner channel at Uptrend.
- Lower 2 is used to confirm Keltner channel at Downtrend.
c. How to determine a swing Entry.
_ Upper 1 is used to buy when the market make a corrective.
_ Lower 1 is used to sell when the market make a corrective.
2. Long signal is confirmed when Closed of candle crossover the Upper 2.
3. Short signal is confirmed when Closed of candle crossunder the Lower 2.
4. Stoploss is calculated by the price closed candle +/- the value of Average true range (length=20 bars)
Stoploss = previous Close +/- atr(20)x2
-> To move the stoploss every 1 hour.
5. Filter the Candle is over 93% for Not Entry.
ETHUSD signal [DinhChienFX Corner] Ver 1.01. How to use Keltner Channel
a_ Length of Keltner's basis line is 50. It gives the best result in finding rule of ETHUSD.
b_ How to confirms a trend.
- Upper 1 is used to confirm Keltner channel at Uptrend to give Buy_1.
- Lower 1 is used to confirm Keltner channel at Downtrend to give Sell_1.
c. How to determine a swing Entry.
- Upper 1 is used to buy when the market make a corrective.
- Lower 1 is used to sell when the market make a corrective.
d. Color count calculate
- Color count = Green + Red
- If Color count > 0 is Uptrend to give Buy_2
- If Color count < 0 is Downtrend to give Sell_2
2. Long signal is confirmed when Closed of candle crossover the Upper 1 & Color count for Uptrend.
3. Short signal is confirmed when Closed of candle crossunder the Lower 1 & Color count for Downtrend.
4. Stoploss is calculated by the price closed candle +/- the value of Average true range (length=20 bars)
Stoploss = previous Close +/- atr(20)x2x0.9
-> To move the stoploss every 1 hour.
5. Filter the Candle is over 93% for Not Entry.
6. Report the result at Backtest:
a. Longterm result 2018-23/9/2020:
b. Midterm result (every year)
_ 2018-2019:
_ 2019-2020:
c. Shortterm 01/01/2020 to 09/23/2020
--------------
"Use the link below to obtain access to this indicator" or "PM us to obtain access"
EURNZD signal [DinhChienFX Corner] V1.0The right screen is never predicting before. Just a the best result at the history for confident to using for Trade.
------------------------
Risk: 1%.
1. The Long signal is calculate by the RSI indicator crossover 70, wait to Buy when the price corrects and crossunders the Upper Keltner Channel.
2. The Short signal is calculate by the RSI indicator crossunder 30, wait to Sell when the price corrects and crossovers the Lower Keltner Channel.
3. Stoploss and Take Profit is calculated by Plus or Minus the Average True Range indicator from the Price Entry.
4. Report the result at Backtest:
a. The Long-term result: 1/1/2017 - 13 Sep 2020
b. The Mid-tern result (every year):
- From 1/1/2017 to 1/1/2018:
- From 1/1/2018 to 1/1/2019:
- From 1/1/2019 to 1/1/2020:
c. The Short-term result:
- From 1/1/2020 - 13 Sep 2020
---------------------------------------
The right screen is never predicting before. Just a the best result at the history for confident to using for Trade.
---------------------------------------
"Use the link below to obtain access to this indicator" or "PM us to obtain access"
The Lazy Trader - Index (ETF) Trend Following Robot50/150 moving average, index (ETF) trend following robot. Coded for people who cannot psychologically handle dollar-cost-averaging through bear markets and extreme drawdowns (although DCA can produce better results eventually), this robot helps you to avoid bear markets. Be a fair-weathered friend of Mr Market, and only take up his offer when the sun is shining! Designed for the lazy trader who really doesn't care...
Recommended Chart Settings:
Asset Class: ETF
Time Frame: Daily
Necessary ETF Macro Conditions:
a) Country must have healthy demographics, good ratio of young > old
b) Country population must be increasing
c) Country must be experiencing price-inflation
Default Robot Settings:
Slow Moving Average: 50 (integer) //adjust to suit your underlying index
Fast Moving Average: 150 (integer) //adjust to suit your underlying index
Bullish Slope Angle: 5 (degrees) //up angle of moving averages
Bearish Slope Angle: -5 (degrees) //down angle of moving averages
Average True Range: 14 (integer) //input for slope-angle formula
Risk: 100 (%) //100% risk means using all equity per trade
ETF Test Results (Default Settings):
SPY (1993 to 2020, 27 years), 332% profit, 20 trades, 6.4 profit factor, 7% drawdown
EWG (1996 to 2020, 24 years), 310% profit, 18 trades, 3.7 profit factor, 10% drawdown
EWH (1996 to 2020, 24 years), 4% loss, 26 trades, 0.9 profit factor, 36% drawdown
QQQ (1999 to 2020, 21 years), 232% profit, 17 trades, 3.6 profit factor, 2% drawdown
EEM (2003 to 2020, 17 years), 73% profit, 17 trades, 1.1 profit factor, 3% drawdown
GXC (2007 to 2020, 13 years), 18% profit, 14 trades, 1.3 profit factor, 26% drawdown
BKF (2009 to 2020, 11 years), 11% profit, 13 trades, 1.2 profit factor, 33% drawdown
A longer time in the markets is better, with the exception of EWH. 6 out of 7 tested ETFs were profitable, feel free to test on your favourite ETF (default settings) and comment below.
Risk Warning:
Not tested on commodities nor other financial products like currencies (code will not work), feel free to leave comments below.
Moving Average Slope Angle Formula:
Reproduced and modified from source:
PpSignal Algorithmic trading system this strategy uses
1) trend
2) volatility
3) volume
Also, you can find in additional tools, rsi wilders on the chart and its standard deviation.
CFB composite fractal behavior and smoothed atr.
Candle converter MTF.
The strategy uses these four indicators to generate inputs and outputs.
Basically buy when cfb, rsi and atr go in the same direction upwards and the movement is accompanied by a rising volume (cfb green color and rsi Aqua ATR).
Idem in reverse for sell, when cfb, atra and rsi are giving a sell signal (Red color) and the volume is descending.
It is important that you also use other trading systems that you consider convenient. Support and resistance and also fibonacci levels all help to better trading.
Not all assets have or use the same configuration, for this, you must find the appropriate parameters with the variables, long length, short length, source, and period.
for example for btcusd the optimal parameters for me are:
long length = 2
short length = 2
signal length = 2
source = ohlc4
period = 9
It also has a take profit and stops loss tool in percentage.
remember to use parameters according to your tolerance as a trader or investor.
enjoy it
PD: you can write to me privately I have many optimizations and settings already done
este estrategia usa
1) trend
2)volatilidad
3)volumen
Tambien usted podrá encontrar en herramientas adicionales, rsi wilder on the chart y su desviación estándar.
CFB composite fractal behavior y atr suavizado.
Candle converter MTF.
La estrategia usa estos cuatro indicadores para generar entradas y salidas.
Básicamente buy cuándo cfb, rsi y atr van en la misma dirección hacia arriba y el movimiento está acompañado por un volumen ascendente (color verde cfb y rsi Aqua ATR).
Idem a la inversa para el sell, cuando cfb, atra y rsi están dando señal de venta (color Rojo) y el volumen es descendente.
Es importante que también use otros sistemas de trading que usted crea conveniente. Soporte y resistencia y también niveles fibonacci todo ayuda a un mejor trading.
No todos los activos tienen o usan la misma configuración para esto usted deberá encontrar los parámetros adecuado con las variables, long length, short length, source y period.
por ejemplo para btcusd los parámetros óptimos para mi son:
long length = 2
short length = 2
signal length = 2
source = ohlc4
period = 9
También posee una herramienta de take profit y stop lose en porcentaje.
recuerde usar parámetros acorde a su tolerancia como trader o inversor.
disfrutelo
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.
HatiKO EnvelopesPublished source code is subject to the terms of the GNU Affero General Public License v3.0
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 4 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
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 Shift 1..4 - % from MA value to put Envelopes at, for Shorts numbers should be positive, the higher is number, the higher should be Shift position, example: "Shift 1 = 1, shift 2 = 2, etc."
Long Shift 1..4 - % from MA value to put Envelopes at, for Longs numbers should be negative, the lower is number, the lower should be Shift position, example: "Shift 1 = -1, shift 2 = -2, etc."
From Year 20XX - Backtesting Starting Year number, only 20xx supported as script is cryptocurrency-oriented.
To Year 20XX - Backtesting Final Year number, only 20xx supported as script is cryptocurrency-oriented.
From Month - Years starting Month, optional tweaking, changing not recommended
To Month - Years ending Month, optional tweaking, changing not recommended
From day - Months starting day, optional tweaking, changing not recommended
To day - Months ending day, optional tweaking, changing not recommended
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.
**************************************************************************************************************************************************************************************************************
Опубликованный исходный код регулируется Условиями Стандартной Общественной Лицензии 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 года)
«3 ways to use Moving Average Envelopes» Рича Фиттона, опубликованные в «Trader's Nest» (опубликовано 28 ноября 2018 года или раньше)
Скрипт стратегии noro "Robot WhiteBox ShiftMA" v1, опубликованный на платформе TradingView(опубликовано 29 августа 2018 года)
«Moving Average Envelopes: A Popular Trading Tool», статья Investopedia (опубликовано 25 июня 2019 года)
Блог KROOL1980 из Argolabs («Гридерство или Сетка как источник прибыли на форекс», опубликовано 27 февраля 2015 года)
Основные особенности:
1) До 4-х Ордеров в каждом из направлении (Лонг / Шорт)
2) Выбор из 6-ти разных базовых МА, опционально используйте разные МА для открытия и закрытия.
3) Используйте разные таймфреймы для расчета MA, без перерисовки и "эффекта стеклянного шара".
4) Фиксированный размер ордера, а не стратегия Мартингейла
5) Возможность закрытия открытой позиции заблаговременно, используя параметр Deviation
6) Код реализован на PineScript v4
Описание параметров:
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 Shift 1..4 - % от значения MA для размещения Ордеров, для Шорт Ордеров должен быть положительным, чем выше номер, тем выше должна располагаться позиция Shift, например: «Shift 1 = 1, Shift 2 = 2 и т.д. "
Long Shift 1..4 - % от значения MA для размещения Ордеров, для Лонг Ордеров должно быть отрицательным, чем ниже число, тем ниже должна располагаться позиция Shift, например: «Shift 1 = -1, Shift 2 = -2, и т.д."
From Year 20XX - Год начала тестирования, из-за ориентированности на криптовалюты поддерживаются только значения формата 20хх.
To Year 20XX - Год окончания тестирования, из-за ориентированности на криптовалюты поддерживаются только значения формата 20хх.
From Month - Начальный месяц, опционально, менять не рекомендуется
To Month - Конечный месяц, опционально, менять не рекомендуется
From day - Начальный день месяца, опционально, менять не рекомендуется
To day - Конечный день месяца, опционально, менять не рекомендуется
Пояснения к графику:
Зеленые линии - Лонг Ордера.
Красные линии - Шорт Ордера.
Оранжевая линия - MA Закрытия Шорт позиций.
Лаймовая линия - MA Закрытия Лонг позиций.
CryptoEngineering 🔥Isn’t It Time You Made Your Crypto Portfolio Great Again? 🔥
The falling knives, the heartbreaking crashes, the devastating feeling of watching a missed trade soar all the way to the moon.
The markets aren’t fair, which means you need a tool that gives you an edge. So,It is time to try EngineeringRobo.
The Engineeringrobo is a great ally in a crypto market - when the price moves the algorithm will automatically show Buy and Sell orders when there is a best opportunity to make a profit. It is a just SMART trading system script on TradingView that brings the easiest approach to trading with a high profitability rate.
I created EngineeringRobo to help you on your traders as a robo advisor , It will "not " trade on behalf of you on exchanges via API. It is not an AI robot,It is am ALGO Trading robot. You can use it on any trading markets (BIST, S&P 500,Commodities ,Forex, Crypto ) with any time frame!
My unique algorithm find profitable altcoins based on their Ichimoku, McGinley, MA, RSI, MACD, Stochastic, Volumes and Price Changes gives you BUY and SELL signals. The EngineeringRobo indicator displays two different signals for entry and exit on a coin to maximize its profitability on the chart. The signals can appear at any time during an open candle, but once closed the signal is final and wont change in the future.
One of the biggest advantages of algo trading is removing human emotion from the crypto markets,humans trading are susceptible to emotions that lead to irrational decisions.Robo doesn't have to think or feel good to make a trade. If conditions are met, it enters.When the trade goes the wrong way or hits a profit target, It exits. It doesn't get angry at the market or feel invincible after making a few good trades. The two emotions that lead to poor decisions that algo traders aren't susceptible to are fear,and greed.
That's why It makes money but most of you not!
What Are the Advantages of using it as a ROBO Advisor?
🔴Reduce your required screen-time
🔴Reduce anxiety over missing setups when you are busy
🔴Turn existing indicators into alerts (eg. Whenever RSI goes overbought)
🔴Find comfort in knowing that you have me on your side
To get the maximized results from @EngineeringRobo
Open tradingview
Decide the coin/BTC
Pick 1M
Draw the Support & Resistance lines
Change the 1W
Draw the lines - Support & Resistance
Find out Chart Patterns
Change to 3D/1D / 3H
Check Robo' signals
Set your orders
Enjoy your profits💰
***Even the best automated day trading software can trigger false trends.
In August 2012 by Knight Capital group;who lost over $440 million in just half an hour when their trading software went rogue in response to market conditions. That's why it is a Robo advisor not trading bot! Engineeringrobo is not a get-rich-quick scheme as well!
Disclaimer
Information on EngineeringRobo should not be seen as a recommendation to trade BIST, S&P 500,Commodities ,Forex, Crypto.
EngineeringRobo is not licensed nor authorized to provide advice on investing and related matters.
Information on the page is not, nor should it be seen as investment advice.Any trading decisions that you make are solely your responsibility. Clients without sufficient knowledge should seek individual advice from an authorized source.
Crypto and Forex trading entails significant risks and there is a chance that clients lose all of their invested money. Past performance is not a guarantee of future returns. Before trading with any of the Algos, clients should make sure they understand the risks.
EngineeringRobo nor its agents or partners are not registered and do not provide any services on the US territory.
***I have been trading since 2016 . Got my first bitcoin in 2013
EURUSD Binary Strategy Indicator ALERTS!Good afternoon traders!
The EURUSD Binary Strategy Indicator ALERT, is a continuation of the " EURUSD Binary Strategy 73% Win Ratio " strategy made by my self. This indicator allows you to add alerts in order for you not to miss a trade! Furthermore, for the purchase of the " EURUSD Binary Strategy 73% Win Ratio " strategy, this indicator is also included.
A FREE 5 DAY VERSION of the " EURUSD Binary Strategy 73% Win Ratio " Strategy is available! Go try it now!
Best regards!
Contact:
emilianomesauribe2000@live.com
EURUSD 5 Minute Binary Strategy by Emiliano Mesa 73% Win RatioEURUSD Binary Strategy 73% Win Ratio.
-----Free 5 Day Trial-----
¿How it works?
This is a binary indicator, meaning it may be only
used for EURUSD options. Its use is simple:
1) Wait for the blue background to appear, this
means a possible trade may be upcoming
2) Wait for the purple background to appear, this
is our entry. And enter in the suggested direction
by the arrows after the close of the bar
3) Establish your expiration bar the # of
bars missing in the white area (which are 3 bars
per area) + 1 bar of the yellow area
for instance:
- Each background color both blue and yellow, have
the same ammount of bars in between (3), and so
does the white space between them, each bar is 5
minutes. In this case we are given an entry 1 bar
later, so 5 miutes inside our whitespace. Saying
so there are 2 bars left inside our white area, plus
one yellow bar, which means our expiration time
is 15 minutes since Entry to exit!
Wohooo! PROFIT!
Go ahead and send me a PRIVATE MESSAGE or EMAIL
if you are intrested in trying my Binary Strategy FREE
for 5 DAYS!
¿WANT ALERTS?
If you purchase the EURUSD Binary Strategy
Ill add up the EURUSD Binary Indicator! For you
not to miss a trade!
-----------------------
Contact:
emilianomesauribe2000@live.com