hamster-bot HiDeep strategy// DESCRIPTION OF STRATEGY
HiDeep Strategy
Author foresterufa
This is a counter-trending strategy that is gradually gaining a position against the trend at the best price.
A prerequisite for completing a position is the price exit from the internal channel on the chart and the appearance of the HiDeep indicator.
The condition for closing the position is touching the opposite side of the internal channel.
A condition for facilitating closure along the middle line of the channel, with high price volatility , is that the price touches the border of the external channel.
Input signals are generated by HiDeep indicators. Closing a position by moving averages.
Pesquisar nos scripts por "algo"
Cracking Cryptocurrency - Bottom Feeder Strategy TesterBottom Feeder - Strategy Tester
The Bottom Feeder is designed to algorithmically detect significantly oversold conditions in price that represent profitable buying opportunities. Combining this with it’s unique Stop and Target System, the Bottom Feeder is designed to return consistent return with minimal draw down. Whether used as a Market Bottom Detector or as a system for executing safe, profitable mean reversion trades, the Bottom Feeder is a powerful tool in any trader’s arsenal.
Bottom Feeder was designed to be used on BTCUSD, however it is also effective on other USD/USDT pairs. One will have to check the individual pair they wish to trade with the Strategy Tester to simulate performance.
Strategy displayed is from 2018-2021 on **Conservative Mode** with Percent of Equity (30%) enabled.
Options
Let’s go through the input options one by one, so that you are able to comfortably navigate all that this indicator has to offer. The link below will display a picture of the layout of the settings for your convenience.
For the sake of simplicity, let’s note now that all settings marked **Conservative Mode** will not work in Aggressive Mode.
Mode : Determines how aggressively Bottom Feeder generates a buy signal. In Conservative Mode, trades can only be opened once per candle and the stop and target will update as new signals appear. In Aggressive Mode, a separate trade is opened each time Bottom Feeder signals, which may be multiple times within one Daily candle.
Position Sizing Strategy : Determines what Risk Management system you will deploy when trading Bottom Feeder. Your options are “Percent of Equity” and “Distance to Stop Loss”. If Percent of Equity is selected, a trade size will be equal to a percentage of your equity, pursuant to the value in the ‘Percent of Equity’ box. If Distance to Stop Loss is selected, then your Position Size will be determined based off the distance to your stop loss and the value in the ‘Risk Percentage’ box.
Percent Of Equity : Determines what percentage of your equity will be allocated to each trade when ‘Position Sizing Strategy’ is enabled.
Risk Percentage : Determines the size of each trade if ‘Distance to Stop Loss’ strategy is enabled. This value reflects what percent of your account you will lose per trade if the trade hits your stop loss.
Plot Target and Stop Loss : Toggles on/off the visualized take profit and stop losses on the chart.
**Conservative Mode** TP Multiplier : This is an input box, it requires a float value. That is, it can accept either a whole number integer or a number with a decimal. This number will determine your Take Profit target. It will take whatever number is entered into this box and multiply the Average True Range against it to determine your Take Profit.
**Conservative Mode** SL Multiplier : See above - this will modify your Stop Loss Value.
**Conservative Mode** Average or Median True Range : This is a drop-down option, the two options are Average True Range or Median True Range. If Average True Range is selected, then this indicator will use the Average True Range calculation, that is, the average of a historical set of True Range values to determine the Average True Range value for Target and Stop Loss calculation. If Median True Range is selected, it will not take an average and will instead take the Median value of your historical look back period.
**Conservative Mode** True Range Length : This is an input that requires an integer. This will represent your historical lookback period for Average/Median True Range calculation.
**Conservative Mode** True Range Smoothing : This is a drop-down with the following options: Exponential Moving Average ( EMA ), Simple Moving Average ( SMA ), Weighted Moving Average ( WMA ), Relative Moving Average (RMA). This will determine the smoothing type for calculating the Average True Range if it is selected. Note: if Median True Range is selected above, this option will not have any effect as there is no smoothing for a Median value.
**Conservative Mode** Custom True Range Value? : This is a true/false option that is false by default. If enabled, it will override the Average/Median True Range calculation in favor of a users custom True Range value to be input below.
**Conservative Mode** Custom True Range Value : This is an input box that requires a float value. If Custom True Range is enabled this is where a user will input their desired custom True Range value for Target and Stop Loss calculation.
From Month/Day/Year to Month/Day/Year : This sets the Time Frame of your backtest for the Bottom Feeder Strategy. It will run FROM the date selected TO the date selected.
Stop and Target Description
Because Bottom Feeder is designed only to scalp the various market bottoms that can appear over time in the market and not to identify trends or to trade ranges, it’s imperative that the indicator notify us not just to when to enter our trades, but when to exit! In the service of that, CC Bottom Feeder has a built in Stop and Target system that tracks and displays the stop loss and take profit levels of each individual open trade, whether in Aggressive or Conservative Mode.
Conservative Mode Targeting: In Conservative Mode, Bottom Feeder signals are aggregated into a compound trade. The signal will appear as a green label pointing up below a candle, and will appear upon a candle close. If Bottom Feeder then generates another signal the stop loss and target price will be updated. The process will continue until the aggregated trade completes in either direction. On a trade with multiple signals, a larger position is slowly entered into upon each buy signal.
Aggressive Mode Targeting: In Aggressive Mode, Bottom Feeder signals are individually displayed as they are generated, regardless of how many signals are generated on any single candle. If Bottom Feeder continues to signal, each individual open trade will have their own stop loss and target that will be displayed on the chart until the individual trade completes in either direction. As opposed to a large compound position, aggressive mode represents a higher number of independent signals with their own stop and target levels.
Stop losses and targets are designed to be hard, not soft. That is, they are intended to be stop market orders, not mental stop losses. If price wicks through the target or stop, it will activate.
Combo Backtest 123 Reversal & Comparative Relative Strength This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
Comparative Relative Strength Strategy for ES
WARNING:
- For purpose educate only
- This script to change bars colors.
hamster-bot REP strategyThe strategy basically contains RSI + EMA + Parabolic = REP.
Entry: RSI
Trend Filter: EMA
Exit: Trailing Stop Parabolic
05 MOSTÇİFTATRBBW STRATEGYENG: A private strategy for my Algo Trade students at Borfin for ALARMS and backtesting purposes.
TUR: Borfin Algo Trade öğrencileri için paylaştığım bir robotun ALARM ve BACKTEST amaçlı stratejisidir.
04 MOSTÇİFTATR STRATEGYENG: A private strategy for my Algo Trade students at Borfin for ALARMS and backtesting purposes.
TUR: Borfin Algo Trade öğrencileri için paylaştığım bir robotun ALARM ve BACKTEST amaçlı stratejisidir.
03 MOSTATRBBW STRATEGYENG: A private strategy for my Algo Trade students at Borfin for ALARMS and backtesting purposes.
TUR: Borfin Algo Trade öğrencileri için paylaştığım bir robotun ALARM ve BACKTEST amaçlı stratejisidir.
02 MOSTATR STRATEGYENG: A private strategy for my Algo Trade students at Borfin for ALARMS and backtesting purposes.
TUR: Borfin Algo Trade öğrencileri için paylaştığım bir robotun ALARM ve BACKTEST amaçlı stratejisidir.
GMS: RSI StrategyThis is just a basic RSI strategy that it easy to use and quite comprehensive so you can quickly test out an idea based on RSI.
- I made it comprehensive in that you can select long, short, or both.
- There is a simple moving average trend filter. You can filter for trades above, below, or don't include it at all.
- The exit is based on a simple moving average.
The source code should be open if you want to see it or modify it for your own project. I hope it helps!
Andre
Global Market Signals
Combo Backtest 123 Reversal & CMOaDisparity Index This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
The related CMOaDisparity Index article is copyrighted material from Stocks & Commodities Dec 2009
My strategy modification.
WARNING:
- For purpose educate only
- This script to change bars colors.
BEST Engulfing + Breakout StrategyHello traders
This is a simple algorithm for a Tradingview strategy tracking a convergence of 2 unrelated indicators.
Convergence is the solution to my trading problems.
It's a puzzle with infinite possibilities and only a few working combinations.
Here's one that I like
- Engulfing pattern
- Price vs Moving average for detecting a breakout
Definition
Take out the notebooks :) and some coffee (good for focus). I'm bullish in coffee
The engulfing pattern is a two-candle reversal pattern.
The second candle completely ‘engulfs’ the real body of the first one, without regard to the length of the tail shadows.
The bullish Engulfing pattern appears in a downtrend and is a combination of one red candle followed by a larger green candle
The bearish Engulfing pattern appears in a downtrend and is a combination of one green candle followed by a larger red candle
Example: imgur.com
We're bored sir... what's the point of all this?
In summary, an engulfing is a pattern to track reversals. (the whole TradingView audience stands up now giving a standing ovation)
Adding the Price vs Moving average filters allows to track reversals with momentums (half of the audience collapsed because this is too awesome)
Ok sir... you picked up my interest
I included some cool backtest filters:
- date range filtering
- flexible take profit in USD value (plotted in blue)
- flexible stop loss in USD value (plotted in red)
All the best
Dave
hamster-bot CCI_PSARTrending strategy using indicators:
Commodity Channel Index (CCI) www.tradingview.com(CCI)
Parabolic SAR (SAR) www.tradingview.com(SAR)
The trend is determined by PSAR indicator on the higher timeframe.
Signals of buy/sell by CCI indicator
Stochastic Pop and Drop by Jake Bernstein v1 [Bitduke]I found a simple strategy by Jake Bernstein, modified it a little and created a strategy with Risk Management System (SL+TP); After that I test it on the different cryptocurrency pairs.
About the Indicator
Basically it's the strategy of 2 indicators: Stochastic Oscillator to define the bias and Average Directional Index to confirm it.
One again, It uses Stochastic Oscillator to define the trading bias. In particular, the trading bias was deemed bullish when the weekly 14-period Stochastic Oscillator was above some default value (in him paper - 50) and rising and vice versa.
Once the trading bias is established, Steckler used the Average Directional Index (ADX) to define a slowdown in the trend. ADX measures the strength of the trend and a move below 20 signals a weak trend.
Modifications
I didn't implement Average Directional Index (ADX) and test just different sources for data, oscillator periods and different levels in relation to the crypto market.
So, it shows good results with two tight thresholds at 55 and 45 level.
The bar chart below the defining the bullish and bearish periods (green and red) and gives a signal to enter the trade (purple bars).
Backtesting
Backtested on XBTUSD , BTCPERP (FTX) pairs. You may notice it shows good results on 3h timeframe.
Relatively low drawdown
~ 10% (from 2019 to date) FTX
~ 22% (4 years from 2016) Bitmex
I backtested on the different altcoin pairs as well, but the results were just not good.
Relatively good results were shown by some index pairs from the FTX exchange ( FTX:SHITPERP ), but I think there is a few data for backtesting to be asure in them.
Bitmex 3h (2017 - 2020) :
i.imgur.com
FTX 3h (2019 - 2020):
i.imgur.com
Possible Improvements
- Regarding trading algorithm it would be good to check with strategy with ADX somehow. Maybe for the better entries
- As for Risk Management system, it can be improved by adding trailing stop to the strategy.
Link: school.stockcharts.com
N Bars Down Backtest Evaluates for n number of consecutive lower closes. Returns a value
of 1 when the condition is true or 0 when false.
WARNING:
- For purpose educate only
- This script to change bars colors.
N Bars Up Backtest Evaluates for n number of consecutive higher closes. Returns a value
of 1 when the condition is true or 0 when false.
WARNING:
- For purpose educate only
- This script to change bars colors.
[GM PRO] ASH+The Absolute Strength Histogram with built in strategy tester to help you find optimum trade entries, and best parameters for your System.
Includes
- Backtest start date
- Backtest end date
- Money Managment (percent risk, stop loss and take profit distance and ratio).
- Fully Featured Absolute Strength Histogram - with many MA modes and options.
The indicator comes with default settings. It is up to you to fine tune and find the optimal settings for the market you trade.
Coming Soon - Full fledged Algorithms - including entries, exits, and volatility/volume filters to keep you out of those choppy sideways markets. Look for the GM ELITE tag.
Adaptive Price Zone Backtest The adaptive price zone (APZ) is a volatility-based technical indicator that helps investors
identify possible market turning points, which can be especially useful in a sideways-moving
market. It was created by technical analyst Lee Leibfarth in the article “Identify the
Turning Point: Trading With An Adaptive Price Zone,” which appeared in the September 2006 issue
of the journal Technical Analysis of Stocks and Commodities.
This indicator attempts to signal significant price movements by using a set of bands based on
short-term, double-smoothed exponential moving averages that lag only slightly behind price changes.
It can help short-term investors and day traders profit in volatile markets by signaling price
reversal points, which can indicate potentially lucrative times to buy or sell. The APZ can be
implemented as part of an automated trading system and can be applied to the charts of all tradeable assets.
WARNING:
- For purpose educate only
- This script to change bars colors.
9KSCALPBOT 5x 15-min StrategyThis scalp bot uses low leverage to scalp small but high certainty movements on the 15-minute timeframe. Its amazing proprietary feature addresses the common problem of accumulated losses due to excessive stop-lossing -- this is done by assessing macro trends on higher timeframes when underwater, and then riding the position out until profitable again. You will get an average of about 1 entry and 1 exit per day.
The core logic uses a modified combination of CCI and Schaff Trend oscillators and a proprietary pattern recognition mechanic. Leverage should be kept low (5X or less) as the algorithm could temporarily go significantly underwater as well as pyramid (stack) same direction entries up to five times before closing. Any leverage higher than 5X significantly increases risk of liquidation. This bot has been consistently backtested for 10 months with about 75-85% win rate, 100%+ 3-month profitability, very low ~5% drawdown, all after factoring typical BitMex fees (0.06% after counting affiliate self-referral).
As with any automated strategy, it does not account for black swan events or disruptions in server connectivity (e.g., BitMex overload errors).
FearsAndHopesA strategy based on the assumption that if you buy in a panic and sell on the euphoria of the crowd, then in the long run you get a profit. The strategy is symmetrical, that is, we assume that FOMO and FUD have an equal impact on the crowd. Never make different paired parameters. Do not try to get a perfect result on the backtest. The setup is symmetrical, the program does not use EMA, requests to larger timeframes, and other things that can cause repaintings. However, if you use the value 1 in the Fast Sma Length field, repaintings is possible, use with caution. This algorithm makes me profit 2600% profit per year, which, of course, does not mean that the next year will bring the same. API history on Bitmex on request in PM. Use it as an indicator with pleasure. Access to the script and help in setting up costs 0.5 btc
Hull Suite strategy + alerts hamster-botThis is a trading strategy on the Hull Suite indicator. 3 Hull variations: HMA, THMA (3HMA), EHMA. The strategy is always in position according to the trend of the indicator.
bee ZZBreakdown trading system ( TS ) based on the ZZ indicator ( zig-zag ) using SAR (stop and reverse). The system calculates the long level and short level, depending on the direction of the breakdown - we enter the long or short position. The strategy is always in position (in the market), the strategy being in the long side reverses the position at the short level, and accordingly, on the contrary, it is in short at the long level, thereby fixing profit / loss. The strategy has proved itself to be highly volatile. Strategy tested on BitMEX exchange. It is possible to get acquainted with the results of the strategy by running the script by history.
Combo Backtest 123 Reversal & D_ELI (Ehlers Leading Indicator) This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
This Indicator plots a single
Daily DSP (Detrended Synthetic Price) and a Daily ELI (Ehlers Leading
Indicator) using intraday data.
Detrended Synthetic Price is a function that is in phase with the dominant
cycle of real price data. This one is computed by subtracting a 3 pole Butterworth
filter from a 2 Pole Butterworth filter. Ehlers Leading Indicator gives an advanced
indication of a cyclic turning point. It is computed by subtracting the simple
moving average of the detrended synthetic price from the detrended synthetic price.
Buy and Sell signals arise when the ELI indicator crosses over or under the detrended
synthetic price.
See "MESA and Trading Market Cycles" by John Ehlers pages 64 - 70.
WARNING:
- For purpose educate only
- This script to change bars colors.
Simple Price Momentum - How To Create A Simple Trading StrategyThis script was built using a logical approach to trading systems. All the details can be found in a step by step guide below. I hope you enjoy it. I am really glad to be part of this community. Thank you all. I hope you not only succeed on your trading career but also enjoy it.
docs.google.com
Backtesting on Non-Standard Charts: Caution! - PineCoders FAQMuch confusion exists in the TradingView community about backtesting on non-standard charts. This script tries to shed some light on the subject in the hope that traders make better use of those chart types.
Non-standard charts are:
Heikin Ashi (HA)
Renko
Kagi
Point & Figure
Range
These chart types are called non-standard because they all transform market prices into synthetic views of price action. Some focus on price movement and disregard time. Others like HA use the same division of bars into fixed time intervals but calculate artificial open, high, low and close (OHLC) values.
Non-standard chart types can provide traders with alternative ways of interpreting price action, but they are not designed to test strategies or run automated traded systems where results depend on the ability to enter and exit trades at precise price levels at specific times, whether orders are issued manually or algorithmically. Ironically, the same characteristics that make non-standard chart types interesting from an analytical point of view also make them ill-suited to trade execution. Why? Because of the dislocation that a synthetic view of price action creates between its non-standard chart prices and real market prices at any given point in time. Switching from a non-standard chart price point into the market always entails a translation of time/price dimensions that results in uncertainty—and uncertainty concerning the level or the time at which orders are executed is detrimental to all strategies.
The delta between the chart’s price when an order is issued (which is assumed to be the expected price) and the price at which that order is filled is called slippage . When working from normal chart types, slippage can be caused by one or more of the following conditions:
• Time delay between order submission and execution. During this delay the market may move normally or be subject to large orders from other traders that will cause large moves of the bid/ask levels.
• Lack of bids for a market sell or lack of asks for a market buy at the current price level.
• Spread taken by middlemen in the order execution process.
• Any other event that changes the expected fill price.
When a market order is submitted, matching engines attempt to fill at the best possible price at the exchange. TradingView strategies usually fill market orders at the opening price of the next candle. A non-standard chart type can produce misleading results because the open of the next candle may or may not correspond to the real market price at that time. This creates artificial and often beneficial slippage that would not exist on standard charts.
Consider an HA chart. The open for each candle is the average of the previous HA bar’s open and close prices. The open of the HA candle is a synthetic value, but the real market open at the time the new HA candle begins on the chart is the unrelated, regular open at the chart interval. The HA open will often be lower on long entries and higher on short entries, resulting in unrealistically advantageous fills.
Another example is a Renko chart. A Renko chart is a type of chart that only measures price movement. The purpose of a Renko chart is to cluster price action into regular intervals, which consequently removes the time element. Because Trading View does not provide tick data as a price source, it relies on chart interval close values to construct Renko bricks. As a consequence, a new brick is constructed only when the interval close penetrates one or more brick thresholds. When a new brick starts on the chart, it is because the previous interval’s close was above or below the next brick threshold. The open price of the next brick will likely not represent the current price at the time this new brick begins, so correctly simulating an order is impossible.
Some traders have argued with us that backtesting and trading off HA charts and other non-standard charts is useful, and so we have written this script to show traders what happens when order fills from backtesting on non-standard charts are compared to real-world fills at market prices.
Let’s review how TV backtesting works. TV backtesting uses a broker emulator to execute orders. When an order is executed by the broker emulator on historical bars, the price used for the fill is either the close of the order’s submission bar or, more often, the open of the next. The broker emulator only has access to the chart’s prices, and so it uses those prices to fill orders. When backtesting is run on a non-standard chart type, orders are filled at non-standard prices, and so backtesting results are non-standard—i.e., as unrealistic as the prices appearing on non-standard charts. This is not a bug; where else is the broker emulator going to fetch prices than from the chart?
This script is a strategy that you can run on either standard or non-standard chart types. It is meant to help traders understand the differences between backtests run on both types of charts. For every backtest, a label at the end of the chart shows two global net profit results for the strategy:
• The net profits (in currency) calculated by TV backtesting with orders filled at the chart’s prices.
• The net profits (in currency) calculated from the same orders, but filled at market prices (fetched through security() calls from the underlying real market prices) instead of the chart’s prices.
If you run the script on a non-standard chart, the top result in the label will be the result you would normally get from the TV backtesting results window. The bottom result will show you a more realistic result because it is calculated from real market fills.
If you run the script on a normal chart type (bars, candles, hollow candles, line, area or baseline) you will see the same result for both net profit numbers since both are run on the same real market prices. You will sometimes see slight discrepancies due to occasional differences between chart prices and the corresponding information fetched through security() calls.
Features
• Results shown in the Data Window (third icon from the top right of your chart) are:
— Cumulative results
— For each order execution bar on the chart, the chart and market previous and current fills, and the trade results calculated from both chart and market fills.
• You can choose between 2 different strategies, both elementary.
• You can use HA prices for the calculations determining entry/exit conditions. You can use this to see how a strategy calculated from HA values can run on a normal chart. You will notice that such strategies will not produce the same results as the real market results generated from HA charts. This is due to the different environment backtesting is running on where for example, position sizes for entries on the same bar will be calculated differently because HA and standard chart close prices differ.
• You can choose repainting/non-repainting signals.
• You can show MAs, entry/exit markers and market fill levels.
• You can show candles built from the underlying market prices.
• You can color the background for occurrences where an order is filled at a different real market price than the chart’s price.
Notes
• On some non-standard chart types you will not obtain any results. This is sometimes due to how certain types of non-standard types work, and sometimes because the script will not emit orders if no underlying market information is detected.
• The script illustrates how those who want to use HA values to calculate conditions can do so from a standard chart. They will then be getting orders emitted on HA conditions but filled at more realistic prices because their strategy can run on a standard chart.
• On some non-standard chart types you will see market results surpass chart results. While this may seem interesting, our way of looking at it is that it points to how unreliable non-standard chart backtesting is, and why it should be avoided.
• In order not to extend an already long description, we do not discuss the particulars of executing orders on the realtime bar when using non-standard charts. Unless you understand the minute details of what’s going on in the realtime bar on a particular non-standard chart type, we recommend staying away from this.
• Some traders ask us: Why does TradingView allow backtesting on non-standard chart types if it produces unrealistic results? That’s somewhat like asking a hammer manufacturer why it makes hammers if hammers can hurt you. We believe it’s a trader’s responsibility to understand the tools he is using.
Takeaways
• Non-standard charts are not bad per se, but they can be badly used.
• TV backtesting on non-standard charts is not broken and doesn’t require fixing. Traders asking for a fix are in dire need of learning more about trading. We recommend they stop trading until they understand why.
• Stay away from—even better, report—any vendor presenting you with strategies running on non-standard charts and implying they are showing reliable results.
• If you don’t understand everything we discussed, don’t use non-standard charts at all.
• Study carefully how non-standard charts are built and the inevitable compromises used in calculating them so you can understand their limitations.
Thanks to @allanster and @mortdiggiddy for their help in editing this description.
Look first. Then leap.