Hull MA of RSI StrategyThis simple strategy base on RSI value of Close Price, High Price, Low Price, Median Price and RSI value smoothed by Hull Moving Average.
1. Optimize parameter on BTC H1 Binance chart
RSI period: 13
Hull MA period: 3
Middle Channel: 55-45
Overbough / Oversold: 70-30
2. Setup
2.1 Long Condition
- RSI of Close Price crossunder Overbought
- Close Price lower than Median Price (HL2)
- RSI of Median Price above Overbought
2.2 Close Long Position
- RSI of Close Price crossover Overbought (Take profit)
or
- RSI of Low Price crossunder upper value of Middle Channel (Stop loss)
2.2 Short Condition
- RSI of Close Price crossover Oversold
- Close Price higher than Median Price (HL2)
- RSI of Median Price below Oversold
2.2 Close Long Position
- RSI of Close Price crossunder Oversold (Take profit)
or
- RSI of High Price crossover lower value of Middle Channel (Stop loss)
3. Idea
- Follow strong momentum of Price to catch Flash Buy/Sell Bar in Crypto Market
- RSI of High Price and Low Price help to regconize setup failure quickly.
- This case study desire to find a balance of Winrate, Profit factor, Sharpe Ratio
Cari dalam skrip untuk "momentum"
RSI Strategy w/ Trailing SL / TP Optimized for Crypto [Strategy]This strategy is designed to use the RSI and EMA filters. A 200 period EMA is used for short / long filters, and the 50 period EMA is used to determine the direction of the short term trend.
In addition, the script uses "rate of change" for the fast EMA (trend), volume , RSI (momentum), and price (volatility) and only takes trades when all are in optimal conditions.
I.E., the EMA is in an uptrend, the volume is increasing, price is in an uptrend, and the RSI is in an uptrend, so we will place a Long trade.
This strategy uses EMAs as a trailing stop loss and take profit. As this is a trend following strategy, the idea is to maximize profits when correct and minimize losses when
wrong.
It was designed specifically using crypto pairs, and was optimized for the 10 minute chart.
My goal was to get the best use out of the RSI indicator. I was originally an MACD fanboy, but have recently converted.
Want to help me improve this code or strategy? Have suggestions for improvement? Leave them in the comments below.
Thanks for using my script! I hope it works well for you and good luck in the markets.
If you have any questions, please leave them in the comments and I'll do my best to respond.
This script does not repaint as it only relies on close data to make a decision to enter a trade.
How to use this strategy:
___________________________
Enable Long Entries? - Used to enable or disable the strategy from executing long entries.
Enable Short Entries? - Used to enable or disable the strategy from executing short entries.
How Many Bars To Look Back for Hi/Lo: - This is used for the Stop Loss and Take Profit targets. An integer of bars is used to look back and calculate the values.
RSI Length (Rec: 8) - The length of the RSI
Source - The RSI Source
Use Slow EMA? - If checked, a 200 period EMA will be used to filter entries long or short (only take shorts when the price is below, long when above). In addition, the script will close any trades that cross the 200 period EMA. By default this is disabled.
EMA Slow - the period of the Slow EMA (200 by default)
EMA Slow Src - what to use to calculate the Slow EMA (high by default)
EMA Fast - The Fast EMA (50 period) is used to calculate the direction of the short term trend. This also factored into the Rates of Change.
EMA Fast Src - what to use to calculate the Fast EMA
ATR Length - If used, the ATR length is used to calculate the Stop Loss and Take Profit targets.
SL Multiplier - The distance away from the initial value to multiply the Stop Loss
TP Multiplier - The distance away from the initial value to multiply the Take Profit.
Use EMA as SL / TP? - If true (default) a 3 period EMA is used to calculate Stop Loss and Take Profit targets. Else, an ATR is used to calculate these values.
Stop Loss / Take Profit Offset - Default: 3 - this is used to shift the EMA / ATR Stop Loss and Take Profit lines to the right X bars. This is to ensure that they are hit properly and not exceeded.
Short Len Vol - Use to calculate the volume of the short length, used in rate of change calculations
Long Len - Use to calculate the volume of the long length, used in rate of change calculations
RSI Long Entry Val - Minimum RSI crossover value to enter a trade Long. If the RSI is below this value, trade entries are not valid.
RSI Long Cutoff Threshold - Long entry RSI value cutoff to no longer enter trades. If the RSI is above this value, trades entries are not valid.
RSI Short Entry Val - Minimum RSI crossover value to enter a trade Short. If the RSI is above this value, trade entries are not valid.
RSI Short Cutoff Threshold - Short entry RSI value cutoff to no longer enter trades. If the RSI is below this value, trades entries are not valid.
ROC Fast EMA - Calculates the rate of change between the Fast Ema now and 'X' bars ago. \n\n For a long entry, a positive value is needed, and for a short entry, a negative value is needed.
ROC Price - Calculates the rate of change between the most recent price close and 'X' bars ago. \n\n For a long entry, a positive value is needed, and for a short entry, a negative value is needed.
ROC RSI - Calculates the rate of change between the RSI now and 'X' bars ago. \n\n For a long entry, a positive value is needed, and for a short entry, a negative value is needed.
Use Close for SL - Default = Off - If checked, when a candle hits the stop loss, the trade will close on the next candle. If unchecked, the trade will remain open until the candle closes at or beyond the stop loss lines.
Custom Message Boxes - Primarily used for bots, but can be used to also insert your own messages for your trading alerts.
Scalper Helper System===========================================================================
===========================================================================
Description
===========================================================================
===========================================================================
Scalper Helper System combines a series of trade strategies which have been learned and honed in the Jim of All Trades channel.
Paixy has contributed candlestick combination rules, Jonas has shared his deep understanding of Stochastic.
Jim himself has taught clearly on the merits of RSI.
This system attempts to formulate all the notes and rules I have made over the past months.
The system searches for 10 - 15 rules which are divided into bullets and bombs. Bombs relate to momentum, so these signals may not be pinpoint accurate, but they are more often leading to bigger moves.
This initial version is released mainly only to the JOAT community to help continue the development of the idea and to help find
continued improvements.
Special thanks to FiendishFeather for his strategy work, (check out his work to learn how to apply any trading strategy to his back testing harness), and the date filtering snippet and the tip to show this option at the top.
===========================================================================
===========================================================================
The strategy decisions are based on the following general rules:
===========================================================================
===========================================================================
BULLETs are hint to the idea of firing a small sized position into the market, BOMBs are hints to go all in - however this does not mean proper risk management should be forgotten.
Without risk management this and any strategy will lead to failure.
Without risk management this and any strategy will lead to failure.
Without risk management this and any strategy will lead to failure.
Without risk management this and any strategy will lead to failure.
===========================================================================
Bullet1 uses the value of the stochastic and checks for buy/sell cross over on 5m, 8m and 13m chart.
These values should be calculated on a ratio basis ideally.
Bullet2 measures divergence between the printed Stochastic signals.
Bullet3 has been decommissioned.
Bullet4 is an RSI divergence and value indicator.
Bullet5 has been decommissioned.
Bullet6 uses the history of the stochastic buy and sell signals
Bullet7 uses the Scalper Helper Trends for entries by attempting to see how the overall trend is changing. More refinement is needed here.
Bullet8 uses the Scalper Helper Trends on multiple timeframes for entries.
Bullet9 strict buy/sell signals from Stochastic RSI
Bomb1 relies on the Fast, Medium and Slow MA's being correctly lined up as well as the Stochastic, this hints at a more imminent move and so the strategy suggests a quicker entry.
Bomb2 relies on the Fast, Medium and Slow MA's NOT being correctly lined up as well as the Stochastic, and therefore has the luxury of suggesting Limit orders near the local high/low.
Bomb3 looks for two or more Stochastics signals in the same direction and then performs a divergence calculation.
Bomb4 looks a change in the Stochastics signals direction and then performs a divergence calculation.
===========================================================================
===========================================================================
Configuration settings:
===========================================================================
===========================================================================
Users can chose to show mainly buy and/or sell signals and can select a level of strictness. Enabling strict rules will force a multi timeframe comparison of Stochastic analysis.
Users can try different levels for long and short targets for profit and stop loss. This is important because the market does not behave the same going up as it does going down.
The RSI conditional check makes the strategy more selective. This discernment can be applied to bullets or bombs in order to validate entry and exits.
During the bull run and perhaps even in ranging markets, the RSI overbought levels is usually 70-80, but in the bear market we are seeing in Crypto now, a value of 60 is more useful. Try for yourself to see what works for you and feedback in the comments.
An additional indicator, Scalper Helper Trends is recommended to get a quick view on the trend condition (rally, base, down) by viewing the MACD from multiple time frames. Further research is required to know which larger timeframes work best here.
For the 15min chart, 15m, 30m, 45m, 60m, 120m, 240m, 360m, 960m would work well. Note it is not possible to go higher than 1000 at this time.
Whether you use the Scalper Helper trends or not for your own visual confirmation, it is possible to allow this indicator to attempt to read it for you. More research is required to best model the reading of this. For now, it will simply measure the gradient of the number of up versus down colors.
The system can also find entries off the Scalper Helper Trends - but really this, by design is not the best use of Scalper Helper Trends. Although you may prove me wrong so the option is given for you to find buy/sells with your own testing.
Users can chose to use some engulfing candle arrangements to trigger exits and define the length of the 200MA and decide if this should play a part in the filtering of the signals. Similarly, a check can be made to ensure that the first two candles after a signal are behaving as we would expect with the "Wait for 2 closing in the direction of the signal" option. This has a lot of value on the 1min chart.
When Revenge trade is set to true you may re-enter a trade in the same direction as the last one when the last one was stopped out, otherwise you would only be looking for trades in the other direction. We all should not revenge trade, and indeed I have only seen a few cases when it has increased the profitability, however this option remains for now.
The flip opens a new trade in the reverse direction when a signal is given to close a trade, but does not apply to scenarios where stop losses or take profit closed the trade.
Combo Backtest 123 Reversal & RSI based on ROC 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 is the new-age indicator which is version of RSI calculated upon
the Rate-of-change indicator.
The name "Relative Strength Index" is slightly misleading as the RSI
does not compare the relative strength of two securities, but rather
the internal strength of a single security. A more appropriate name
might be "Internal Strength Index." Relative strength charts that compare
two market indices, which are often referred to as Comparative Relative Strength.
And in its turn, the Rate-of-Change ("ROC") indicator displays the difference
between the current price and the price x-time periods ago. The difference can
be displayed in either points or as a percentage. The Momentum indicator displays
the same information, but expresses it as a ratio.
WARNING:
- For purpose educate only
- This script to change bars colors.
FCMS - Time in x Timing - The Market - StudyTime in x Timing - The Market
█ DISCLAIMER
THIS IS NOT AN INVESTMENT ADVICE
The use of strategy functions doesn't compile recurring investments/contributions as used in this study, so disregard the results of the strategy tester.
As seen in the style/plots lists, I calculate the results in internal variables to analyze historical results.
prnt.sc
Anyway, this is only a historical study and past performance is no guarantee of future results
█ CONCEPTS
There is a discussion about Timing x Time in the market.
The point of this discussion is between buying in the better moment, against exposing yourself to the market as soon as possible.
Anyone who argues that the most important factor is the time exposed to the asset, no matter when, is usually based on the SP500 asset.
As shown in the image above, a hypothetical investor who made a single investment of US $ 1500.00 in December 1999, was trapped by a volatility of approximately 10% in the period, followed by a loss of around 50% in the following years. In December 2012, this investment was finally positive, and after 20 years it accumulated a gain of 180% - without reducing inflation in the period.
█ Timing the news
When an asset reaches a new historic high, the idea of "time in the market is the best strategy" gains momentum, after all, at this "moment" everyone previously exposed to the asset is making a profit, regardless of inflation or any benchmark.
█ Time in the market
Considering using this strategy, we can define 3 points for a brief analysis:
1. Asset
SPX is used as a reference for this type of statement due to the difficulty of finding another one with such consistency, liquidity, ease of access and time of history.
2. Long Term
We cannot consider it a long term strategy, as it never has a predetermined term
3. Recurring contributions.
To generate an average cost spread over periods of high and low, opening the possibility to realize positions with profit in eventual needs.
As shown in the image below, if this hypothetical investor made monthly contributions since the date of the first contributions, he would have the possibility of making profits between the period from October 2004 to September 2008, returning to the loss until October 2010, and then with a profit of 100% over the total amount invested.
Below, an example of an asset in a downtrend with the final balance returning below the total volume invested.
█ First Conclusion
> Recurring contributions (3) to an asset (1) during a downtrend will increase the loss for an indefinite period (2).
> Recurring contributions (3) to an asset (1) during an uptrend are more important than immediate exposure to the asset, regardless of the term (2).
> Recurring contributions (3) in an asset (1) in a region of possible long-term top (2), will negatively affect profitability even considering the resumption of the upward trend in an indefinite period.
█ Timing the market
As shown in the image below, following the strategy above: a single contribution in the amount of US$ 1000.00 at the worst moment (Dec / 2017), the hypothetical investor would have hold a loss of over 80%. At the moment it accumulates 89% of profit, having reached the maximum of 200% at the beginning of the year.
By making monthly contributions since the date of the first contribution, this investor would have the possibility to make profits from May 2019, accumulating 335% profit at the moment.
Adding the condition of buying the maximum cost of 10% above the average price of the last 200 days, the final result is little affected, and reduces losses in the initial investment period.
Adding the condition of taking profit of 50% of the position when the price is above the average of the last 200 days, and reinvesting 50% of the cash obtained in the next purchase opportunity (paying a maximum of 10% above the average of the last 200 days), the profit cumulative final price drops to 270%, but the realized profit already exceeds the total amount invested, which eliminates future risk of the operation. (favorable risk-return ratio)
Adding the condition to reinvest 50% of the cash flow, with the condition to buy when the price is below 20% away from the average of the last 200 days, the final result would be more than 400% of retained earnings, and realized profit in cash greater than the total amount invested.
█ Other Assets
It's possible to analyze other assets, including dividend yield and earnings for the equity formula. This way we can analyse assets more fairly.
ITSA4
BOVA11
█ Final Conclusion
> Exposing yourself early to a good opportunity may be good, but the risk of doing so at the wrong time could delay your projects indefinitely.
> Investment recurrence is the main driver for your future results.
> Setting a maximum value for making entries reduces short-term fluctuation but, in the long run, the effect is almost imperceptible.
> The realization of profits at favorable times considerably reduces the risk and volatility of the balance, in addition to providing cash for better opportunities in the short and medium term.
> Taking advantage of part of this cash flow for purchases in moments of opportunity, enhances future earnings.
Even an extremely simple strategy like the one used in the examples above, offers a better risk return for the investor compared to the immediate exposure to an asset.
Thus arises the desire to study more sophisticated strategies, as we will see in the future
█ Challenges
Time in the market
- Find good assets (1) to make recurring contributions (3) for an indeterminate period (2).
Timing the market
- Reading the markets to position yourself in favor of the more probable trends at certain times with predetermined terms.
3x SuperTrend Strategy (Mel0nTek) V1This is a triple SuperTrend based strategy for lower time frame trades such as day trades and scalping. I have not seen many strategies that combine multiple SuperTrends so I thought I would publish this one since I put it together and have been quite happy with the results. I have found through testing that the best results are on currency exchange markets such as Crypto or Forex on 1-15 min time frames.
The core idea was inspired by a youtube video put out by Trade Pro:
"Trade Pro - HIGHEST PROFIT Triple Supertrend Trading Strategy Proven 100 Trade Results"
I went ahead and set the defaults to the ones he uses in his video for anyone who wants to try a configuration similar to his. They work pretty well in general, however the EMA, SuperTrend ATR multipliers, and P/L ratio can be tuned/optimized to fit the timeframe/market desired. The video is quite good but not a required watch as I will explain below.
The 200EMA is used as a medium-term trend direction indicator.
- Price closing consistently above the 200EMA means that only long positions should be entered.
- Price closing consistently below 200EMA means that only short positions should be entered.
The 3 SuperTrend indicators should be used as direction confirmation for entries. Typically, price above SuperTrend indicates bullish movement, while price below SuperTrend indicates Bearish movement. However by itself, it is not a great indication to enter/exit positions in my experience. By combining 3 of them with slightly longer periods and increased ATR multipliers, we can get much stronger confirmation of trend direction/strength.
The way they are used in this strategy is such that:
- We only want to enter a position if at least 2 out of 3 SuperTrends are on our side.
- 3/3 SuperTrends on our side is the best case, since we are taking trades WITH momentum/price strength.
- The second farthest SuperTrend from entry price is used as a Stop Loss
SuperTrend being on our side is not the only requirement for an entry however. The probability of success is increased with SuperTrend, and a longer EMA on our side, but we want to be sure that we aren't getting in too late/after the movement has already happened.
So we use Stoch RSI to pick our entries where price is oversold/overbought and reversing. That means the Stoch RSI is above 80, or below 20, and our indication to enter the trade is when the 2 lines cross/begin reversing direction.
So with trend direction on our side, we can get really good entries at these oversold/overbought extremes, especially as it's reversing (Stoch RSI K and D are crossing). This allows us to use the SuperTrend as a support/stop loss on our entry since price should be above it.
Then we just target 1.5x our max loss so that even if we only win 50% of the time, we still make a profit.
The explicit rules of this strategy are as follows:
=== Rules ===
long only
- price above EMA200
short only
- price below EMA200
Stop Loss = 2nd SuperTrend line above (short) or below(long) entry candle
Profit = 1.5x SL/risk (Profit Ratio x Max Loss)
=== Entry Setup ===
LONG
- Stoch RSI below 20, cross up
- at least 2 SuperTrend lines below close
SHORT
- Stoch RSI above 80, cross down
- at least 2 SuperTrend lines above close
P.S. Special thanks to Trade Pro for producing so many quality videos, putting strategy claims to the test, and providing me with so many good ideas I apply to my own strategies.
DRSI DMA Scalping Strategy No RepaintThis strategy compares the slope of a Moving Average (of your choosing) to the slope of a Momentum Indicator (of your choosing). Zero is the center line because 0 slope means sideways movement. When both lines cross your buy threshold, it buys. When both lines cross your Sell threshold, it sells. The lines may look choppy, but that is probably because it is referencing a different timeframe than what the chart is set to. I left as many settings adjustable by the user as possible so you can tune this strategy to the relative behavior of whatever you are trading.
This also includes a No Repaint function so the backtest should be as close to live trading as possible.
Combo Backtest 123 Reversal & Percentage Volume Oscillator (PVO) 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 Percentage Volume Oscillator (PVO) is a momentum oscillator for volume.
PVO measures the difference between two volume-based moving averages as a
percentage of the larger moving average. As with MACD and the Percentage Price
Oscillator (PPO), it is shown with a signal line, a histogram and a centerline.
PVO is positive when the shorter volume EMA is above the longer volume EMA and
negative when the shorter volume EMA is below. This indicator can be used to define
the ups and downs for volume, which can then be use to confirm or refute other signals.
Typically, a breakout or support break is validated when PVO is rising or positive.
WARNING:
- For purpose educate only
- This script to change bars colors.
Zweig Market Breadth Thrust Indicator StrategyThe Breadth Thrust Indicator is a technical indicator which determines market momentum, signaling the start of a potential new bull market.
The Breadth Thrust Indicator was developed by Martin Zweig, an American stock investor, financial analyst, and investment adviser. According to Zweig, the concept is based on the principle that the sudden change of money in the investment markets elevates stocks and signals increased liquidity. In other words, this indicator is all about how quickly the NYSE's advancing and declining numbers go from poor to great in a compressed time period.
A "Thrust" indicates that the stock market has rapidly changed from an oversold condition to one of strength, but has not yet become overbought. This is very rare and has happened only a few times. Dr . Zweig also points out that most bull markets begin with a Breadth Thrust.
More info can be found at www.investopedia.com
I have inspired by indicator introduced in TradingView by LazyBear and adopted the logic from there. Thanks LazyBear !!!
Though indicator signals the new Bull market, but I have not found much information how to use it in daily market. So I had come up with a strategy, which would allow us to trade SPY, QQQ , AMEX and securities under these markets.
I have used MA setting as 65 (since Zweig indicator setting was 10 days , based on that I set 65 for Hourly chart ... 10d x 6.5 Hrs = 65 in my startegy). You have to change this setting if you change the timeframe. Also , note that this strategy is for Stock Market only.
Strategy Rule/Settings
===================
Select the market type based on your security symbol.
SPY => use NYSE
QQQ => use NASDAQ
any other security => check exchange it was listed and select the corresponding market.
if you dont know , use COMBINED option
BUY
====
when indicator cross 0.40 from below
Note:
1. see how well it picks the bottoms ... example : Nov 2020 ....
2. setting 0.45 is also produces good results , only thing is you get more signals.
EXIT
=====
Exit when indicator cross down from 0.60 . I have used RSI (5) for partial exits. These two are available in settings
Close the whole position when indicator crossing down 0.40
STOP LOSS
=========
defaulted to 5%
Please Note , I have tested SPY , QQQ on Horly chart with MA 65. You need to chnage the MA setting based on your time frame and check the results.
WARNING
========
For the use of educational purposes only
Dankland Playground DCAing multi-strategy OPThis is essentially a script that I made for myself before deciding it may be good enough for you all as well.
How it works basically is this... you have 18 oscillators which can all be used as independently as you wish. That means there are 20 groups which they can be split amongst as you choose.
When in separate groups they should not be able to sell eachothers positions without triggering a stop loss. Every single oscillator has its own position sizing and exit sizing which can be stated as either a percent of balance or a flat amount of contracts. Each oscillator has a minimum amount of profit you can tell it to sell it, which is calculated from the average cost of your current position, which does include all groups. This works out to help you average out better entry and exit prices, essentially a method of DCAing.
You can set the minimum sale amount, which is to keep it from placing orders below your exchanges minimum dollar trade cost.
The included oscillators are as follows:
Chande Momentum cross
Moving Average Cross
MACD cross
%B Bollinger cross
Stochastic cross + region filter
Stochastic RSI cross + region filter
SMII cross and region
Three RMIs
Standard RSI
LSMA-smoothed RSI
Know Sure Thing
RSI of KST
Coppock Curve
RSI of Curve
PPO
RSI of PPO
Trix
RSI of Trix
So the idea is that this is essentially multiple strategies combined into one backtestable house. Balance is calculated for all position sizes in order to try to prevent false entries that plague so many scripts (IE, you set pyramiding to 2, each buy $1000, initial balance $1000, and yet it buys two orders off the bat for $2000 total and nets 400% profit because the second was considered free)/
You tune each side and position size them so that they work together as well as you can and in doing so you are able to create a single backtest that is capable of running a bot, essentially, between multiple strategies - you can run a slower Moving Average cross, a faster SMI cross or MACD, or Bollinger that grabs big moves only, all the while having MACD trade small bonuses along the way. This way you can weight the Risk to Reward of each against eachother.
I will not try to claim this is something you can open and with no work have the best bot on the planet. This scripts intention is to take a lot of relatively common trading strategies and combine them under on roof with some risk management and the ability to weigh each against eachother.
If you are looking for a super advanced singular algorithm that tries to capture every peak and valley exactly on the dot, this is not for you. If you are looking for a tool with a high level of customizability, with a publisher who intends to update it to the best of his ability in accordance to seeking to make the best product that I personally can make for both myself and the community (because I will be using this myself of course!) that was specifically designed with the intention of performing well in spot markets by averaging low entry costs and high exit costs, this is for you! That is the exact intention here.
I do not trade margin currently, I trade spot. I am sure this script can be tuned to work on margin but this is not my intention or area so if this is you and there is something you need for margin specifically implemented, ask, because I likely don't know what you need yet.
The current backtest shown is hand-optimized by myself for BTC/USD 1hr market with NO stop loss enabled and all sales weighed to be around 0% minimum profit from the total average entry cost.
I chose to run it myself with no stop losses because Bitcoin is so bullish to me. The stop losses can still be very profitable, but not 1495% net profit. This style of automation is not for everyone as when running with no stop loss and the requirement every sale is somewhat profitable, or at least no very noticeable loss, you wind up relying on yourself to manually stop out if things crash too much and the bot has to stop trading to wait for market to go back up. The thing to do here if you are playing without a stop loss is to have your own alerts set at your fear level, a % drop in a period of time or something like that, and when you reach that point I would consider resetting the bot so it continues to take trades. I personally will accept a temporary drop in USD as long as I can keep my BTC holdings up overall as the goal should always be to have as many BTC as possible by the start and end of the bull run.
Companion::InsurgentCompanion::Insurgent is a combined indicators strategy. Performances are pretty good on 1D, 4H and 1H timeframes and it can be used on Bitcoin and Altcoin markets.
Mainly, it is a trategy based on Ehlers formulas.
Used indicators:
- Ehlers Instantaneous Trend: trendline analysis;
- Ehlers Super Bandpass Filter: momentum detection;
- EMA: Long/Short time selector.
What the script does:
- determines trendlines combining mulitple indicators;
- automaticlally calculates Take profit and Stop Loss levels;
- permits automation generating Autoview signals (create an alert with {{strategy.order.alert_message}} in message text field to trap Autoview commands;
- supports for margin trading. Spot trading will be added in the future.
BACKTESTING
Backtest is not leveraged. Defaults are set as follow:
Capital: 10000
Percent of equity used for trades: 10%
Commission: 0.18% this is Bitfinex commission on orders
Change them accordingly on how you trade to get a more realistic backtest results.
Smoothed Trend Wave (Strategy)
This is a the Final version of Smooth Trend Wave
* Average Trend is show
* Calculation of different period of moving average
* Candlestick Pattern
* Background color is based on candle color.
Use Strategy Format to show back-test result. When I create this indicator is based on daily chart. (lower timeframe, result might be different)
7 type of strategy (can be select)
Strategy 1 & 2 : long/short according the trend
Strategy 3 & 4 : long/short according retracement in same trend
Strategy 5 & 6 : long/short bet for rebound
Strategy 7 : potential buying point (low chance happens)
Example of back-testing is use crypto between 1-1-2019 to 30-7-2020 (after JULY is a bullish momentum will causing *repaint" of strategy result)
* Strategy is set initial equity of 10000usd
* Each order is only 30% of equity, to make risk management
* Maximum 5 order is allow in strategy
Kindly PM or comment below if you have any question.
DD_ScalpDD_Scalp is a buy/sell trading strategy based on momentum from breakout levels. It works well on 1D and 4H timeframes. It is a helpful indicator for scalping short range profits on a daily basis or for booking profits in a high time frame setups such as those given by my DD_Echo indicator. It works for all major cryptos such as BTC, ETH, LINK, and other alts. It also works for forex.
If you want to access this, please DM me.
Combo Backtest 123 Reversal & Inertia Strategy 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 inertia indicator measures the market, stock or currency pair momentum and
trend by measuring the security smoothed RVI (Relative Volatility Index).
The RVI is a technical indicator that estimates the general direction of the
volatility of an asset.
The inertia indicator returns a value that is comprised between 0 and 100.
Positive inertia occurs when the indicator value is higher than 50. As long as
the inertia value is above 50, the long-term trend of the security is up. The inertia
is negative when its value is lower than 50, in this case the long-term trend is
down and should stay down if the inertia stays below 50.
WARNING:
- For purpose educate only
- This script to change bars colors.
RSI 75/25 SignalThis momentum-based script prints long and short signals according to the 14 candle RSI average. When it crosses over 75, the market is bullish and as such, a trader should look for long based trades. When it crosses under 25, a trader should focus on shorts. This indicator works best on high timeframes such as 4hour and 1day.
SWING TRADING HOURLY - NIFTYSWING TRADING STARTEGY - NIFTY
TIME FRAME - 1 Hour
INSTRUMENT - NIFTY
STARTEGY LOGIC - Startegy involves 4 components to initiate a trade.
1). Simple moving average cross for trend confirmation.
2). ADX (higher time frame) for trend confirmation.
3). RSI for momentum confirmation.
4). Price Action confirmation in form of range breakout to TRIGGER a trade. Range breaakout is inspired from Donchain Channels
EXIT LOGIC - Close above / below the SMA (simple moving average) in oppoite direction.
TRADE TYPE - Swing Trading
HOLDING PERIOD - As long as Trend remains and till EXIT signal appears.
TRADE METHOD -----
METHOD 1 -
BUY / SHORT NIFTY Futures as per the trend direction.
METHOD 2 -
OPTION SELLING. At The Money (ATM) Weekly Options can be sold to gain premium decay (theta decay). This process can be continued to sell ATM option every week till the trade signal is active.
NOTE 1 - Option Selling can be more profitable in weekly option selling but also carries risk. One must have deep knowledge about risks related to Option Selling.
NOTE 2 - Please analyse the trade signals from this startegy for some period to gain confidence before starting to trade.
NOTE 3 - Trading is a serious business and one must consult a financial advisor before taking a trade. Profits / Loss from this script (strategy) is completely individual user's responsibility.
[NLX-L3] Backtest- Introduction -
This backtest module is part of my new modular trading framework - however it can be used with any indicator that has a signal plot output (1 = long / -1 = short)
I chose to release this one first, I've got all the modules for the framework ready and they going to be released in the coming days. Got to start somewhere... ;)
This trading framework is the result of many years experience building indicators and trading strategies.
I couldn’t find a trading framework in Pine Script that would suit my needs and so I started to design my own from scratch. I’m trading with this framework myself so I’ve made sure that it’s flexible and absolutely reliable in a live-trading environment.
- Architecture -
What makes this framework so flexible is the modular architecture, different layers that all serve a very specific purpose.
You will notice that the module names include either L1 - L2 or L3:
- Layer 1 (L1) is the base layer and the foundation. L1 indicators are used to determine the trend, volume profile and filter noise. You would use L1 to see if it’s a good time to trade, what is the direction - or if it's better to trade at all in unfavourable conditions
- Layer 2 (L2) receives the result of L1 and if the market conditions are good the L2 indicator looks for an optimal entry point to go long or short. It is possible to combine several L2 indicators and trigger a long/short signal only if all L2 indicators agree.
- Layer 3 (L3) receives the final signal from L2 and it’s where we can now backtest the result of our trading strategy and trigger trade alerts with help of the alert module.
- Features -
External Input Source (any indicator with signal plot can be used)
Safe Entries Option: Enter a trade only if the position is profitable ad the momentum allows
Pyramid Entries
Partial Take-Profit: %-Step Interval and Quantity per Step
Stop Methods: Trailing Stop, TP/SL with ATR Option, several type of stop bands...
Profit/Loss Label with Fee, Slippage and Leverage Calculation
- Upcoming Modules -
I'll release a couple of great indicators and filter in the coming days...
Trend Score (includes 10 different Trend and Filter algorithms)
Breakouts & Pullbacks
QQE++
True Range Filter
Support / Resistance
Consolidation Range Breakouts
- Alerts & Trading Automation -
Will be released shortly. Check my signature below.
Intraday StrategyThis script helps you to determine entry for long trades and short trades.
Conditions checked:-
1. VWAP for long/short
2. 20 EMA for confirmation
3. STOCHASTIC RSI for momentum
How to enter:-
After the indicator plots the entry for long/short on chart, wait for the price to break nearest pivot point and close above it. Combine with price action for better results.
when long signal is plotted, wait for the nearest resistance to be broken, while entering make sure that the price has not been in a continues uptrend or downtrend.
Time Frame:-
5 & 15 minutes timeframe
When to exit:-
Exit the position after 1% raise of price. eg:- if stock price is 1000, exit after 10 points. you can trail SL if you see a long trend comming
Where to place SL :-
Place your SL 0.5%-1% from you entry or determine the nearest support.
Ichimoku Kinko Hyo Strategy+ EMA + 3ATRThis trading strategy uses combination of the Ichimoku Kinko Hyo system with Fibonacci numbers based 13/21/55 exponential moving average ( EMA ) crossover, giving good results in various trending assets !
Also has the Trend-following indicator combining SuperTrend with Chiku breakout from Ichimoku is added in order to confirm trend pattern.
The Ichimoku Kinko Hyo system includes five kinds of signal, of which this strategy uses the most recent of ones i.e. Tenkan Sen / Kijun Sen Cross and price crosses the Kijun Sen. As the Chikou Span, Senkou Span A and Senkou Span B are shifted into the past/future.
The Tenkan Sen, also known as the Turning or Conversion line, is a moving average of the highest high and lowest low over the last 9 periods in this strategy.
The Kijun Sen, also known as the Standard or Base line, is a moving average of the highest high and lowest low over the last 26 periods in this strategy.
The Chikou Span, also known as the Lagging line, is the closing price plotted 26 periods behind in this strategy.
The Senkou Span A, also known as the 1st leading line, is a moving average of the Tenkan Sen and Kijun Sen and is plotted 26 periods ahead in this strategy.
The Senkou Span B, also known as the 2nd leading line, is a moving average of the highest high and lowest low over the last 52 trading days is plotted 26 periods ahead in this strategy.
EMA is quicker to react to the current market price is because EMA gives more importance to the most recent data points. This helps the trader to take quicker trading decisions. Just used the laws of nature for EMA numbers: taken from Fibonacci sequence numbers 13/21/55
A SuperTrend employs ATR values to calculate the indicator values. The SuperTrend indicator combined with Chiku breakout from Ichimoku and plotted. The indicator line changes its color between green and red based on the price momentum in the underlying.
Cyatophilum Swing Trader [BACKTEST]This is an indicator for swing trading which allows you to build your own strategies, backtest and alert. This version is the backtest which allows to use the Strategy Tester. The alert version can be found in my profile scripts page.
The particularity of this indicator is that it contains several indicators, including a custom one, that you can choose in a drop down list, as well as a trailing stop loss and take profit system.
The current indicators are :
CYATO AI: a custom indicator inspired by Donchian Channels that will catch each big trend and important reversal points .
The indicator has two major "bands" or channels and two minor bands. The major bands are bigger and are always displayed.
When price reaches a major band, acting as a support/resistance, it will either bounce on it or break through it. This is how "tops" and "bottoms", and breakouts are caught.
The minor bands are used to catch smaller moves inside the major bands. A combination of volume, momentum and price action is used to calculate the signals.
Advantages of this indicator: it should catch top and bottoms better than other swing trade indicators.
Cons of this indicator: Some minor moves might be ignored. Sometimes the script will catch a fakeout due to the Bands design.
Best timeframes to use it : 2H~4H
Sample:
Other indicators available:
SARMA: A combination of Parabolic Stop and Reverse and Exponential Moving Average (20 and 40) .
SAR: Regular Parabolic Stop and Reverse .
QQE: An indicator based on Quantitative Qualitative Estimation .
SUPERTREND: A reversal indicator based on Average True Range .
CHANNELS: The classic Donchian Channels .
More indicators might be added in the future.
About the signals: each entry (long & short) is calculated at bar close to avoid repainting. Exits (SL & TP) can either be intra-bar or at bar close using the Exit alert type parameter.
STOP LOSS SYSTEM
The base indicators listed above can be used with or without TP/SL.
TP and SL can be both turned on and off and configured for both directions.
The system can be configured with 3 parameters as follows:
Stop Loss Base % Price: Starting Value for LONG/SHORT stop loss
Trailing Stop % Price to Trigger First parameter related to the trailing stop loss. Percentage of price movement in the right direction required to make the stop loss line move.
Trailing Stop % Price Movement: Second parameter related to the trailing stop loss. Percentage for the stop loss trailing movement.
Another option is the "Reverse order on Stop Loss". Use this if you want the strategy to trigger a reverse order when a stop loss is hit.
TAKE PROFIT SYSTEM
The system can be configured with 2 parameters as follows:
Take Profit %: Take profit value in percentage of price.
Trailing Profit Deviation %: Percent deviation for the trailing take profit.
Combining indicators and Take Profit/Stop Loss
One thing to note is that if a reversal signal triggers during a trade, the trade will be closed before SL or TP is reached.
Indeed, the base indicators are reversal indicators, they will trigger long/short signals to follow the trend.
It is possible to use a takeprofit without stop loss, like in this example, knowing that the signal will reverse if the trade goes badly.
The base indicators settings can be changed in the "Advanced Parameters" section.
Configuration used for this snapshot:
BACKTEST SETTINGS
· Initial Capital: 10 000 $
· Order Size: 10% equity (to avoid compounding effect)
· Commission : 0.1% per order (total commission paid: 244.41 €)
· Slippage: 5 ticks
Oldest trade: 2014-04-01
Backtest Period: From 2014-04-01 to 2020-09-04
Use the link below to obtain access to this indicator.
Retail Slayer StrategyRetail Slayer Strategy
Intended Markets: Forex, Indices, Cryptocurrencies, and metals (Gold, Silver)
Timeframe Use: 15 minutes only
Trailing Stop: 35-pips for Forex
The purpose of this strategy is to answer the question many retail traders have: Why does it feel like trades go against me immediately after placing a buy/sell? This strategy puts you into the position of taking trades against the majority of retail traders.
The underlying logic of this strategy involves the use of specific momentum, volatility, intra-week, and intra-day data to determine whether certain extremes that exist in common retail oscillators are truly indicative of a corrective move or a trend reversal. This strategy checks against those conditions to monitor whether certain breaks of certain price ranges are truly honest, or just fake-outs.
The 35-pip trail is intended for all of the Intended Markets listed above (ticks/points where necessary), and the 15-minute chart is also intended for all of the above-Intended Markets. There are options for you to adjust the trailing-stop, profit target, and stop(s) to fine-tune an instrument to your desired settings. However, I would recommend you stick with the 15-min, 35-pip default settings until you are more familiar with how this strategy works.
To utilize this strategy as an alert, simply add it to your chart then click on the Strategy Tester below. You will see a small alarm clock icon next to the cog-wheel - click the Alarm Icon and you can create the alert utilizing this strategy.
You will receive a notification warning you that this strategy can cause issues with repainting, and that is a known issue. However, with any strategy, it pays to confirm and do your own due diligence before committing to any trade. This strategy is intended to help identify and confirm entries in conjunction with your own analysis.
To inquire about access, please send me a PM. Please reach out if you have any questions.
Buy The Dips - MA200 OptimisedThe strategy combines a contrarian approach (buying the dips) with a trend-following logic (only when the price is above the MA200)
The strategy seeks to find the best times when buying the dips on the asset should result to be more profitable.
The price above a long-term moving average indicates momentum that increases the possibility of profiting from buying the asset on short-term weakness.
HFT Fibonacci Bands BacktesterDefault Settings are meant to be used in XBT/USD chart on 15 min time frame. If you want to use for another asset on another time frame YOU MUST CHANGE THE SETTINGS
This is a Fibonacci bands based trading strategy developed by HFT Research. It is a highly customizable strategy and provides endless opportunities to find profitable trades in the market.
Use Fib BB
This is the main decision maker of the strategy. Tuning the settings of this portion of the strategy will change the outcome the most. We have provided default settings. However, they are only good for 15min chart on Bitcoin . Please adjust accordingly.
Fib BB Length: This setting adjusts the middle line of your Fibonacci Bands. It is the moving average that you take it as base for your Fibonacci bands. Default value is currently 20.
Fib Level to Use for Entry: Here, you adjust which one of the Fibonacci Ratio levels you would like to use for your entry. You can only choose one of the following options.
Fibonacci Ratio 1
This is your Fib ratio level 1 and you can put any number here you would like
Fibonacci Ratio 2
This is your Fib ratio level 2 and you can put any number here you would like
Fibonacci Ratio 3
This is your Fib ratio level 3 and you can put any number here you would like
Please keep in mind that Ratio 1 should be higher than Ratio 2 and Ratio 2 should be higher than Ratio 3.
Use RSI
You can also turn on and off the RSI as well. Alternatively, there is an option to use RSI on a different time frame than you are currently on. For example, if you are looking at the 5min chart to use Bollinger bands but you would like to look at the RSI value on the 15min chart. You can do so by selecting the custom RSI timeframe as well as adjusting the Oversold and Overbought value.
Use CCI
Commodity Channel Index is an indicator developed by Donald Lambert. It is a momentum-based oscillator used to help determine when an investment vehicle is reaching conditions of being overbought or oversold. It also used to asses price trend direction and strength. Default settings are usually the safest and the best fit.
Use VWAP
VWAP stands for volume weighted average price . It is an extremely useful indicator when trading intra-day. It does reset every trading session which is at 00:00 UTC . Instead of looking at x number of candles and providing an average price, it will take into consideration volume that’s traded at a certain price and weigh it accordingly.
Use ADX
ADX stands for average directional index . It is an indicator that measures volatility in the market. Unfortunately, the worst market condition for this strategy is sideways market. ADX becomes a useful tool since it can detect trend. If the volatility is low and there is no real price movement, ADX will pick that up and will not let you get in trades during a sideways market. It will allow you to enter trades only when the market is trending.
Use MA Filters
Lookback: It is an option to look back x number of candles to validate the price crossing. If the market is choppy and the price keeps crossing up and down the moving average you have chosen, it will generate a lot of “noisy” signals. This option allows you to confirm the cross by selecting how many candles the price needs to stay above or below the moving average. Setting it 0 will turn it off.
MA Filter Type: There is a selection of moving averages that is available on TradingView currently. You can choose from 14 different moving average types to detect the trend as accurate as possible.
Filter Length: You can select the length of your moving average. Most commonly used length being 50,100 and 200.
Filter Type: This is our propriety smoothing method in order to make the moving averages lag less and influence the way they are calculated slightly. Type 1 being the normal calculation and type 2 being the secret sauce
Reverse MA Filter: This option allows you to use the moving average in reverse. For example, the strategy will go long when the price is above the moving average. However, if you use the reserve MA Filter, you will go short when the price is above the moving average. This method works best in sideways market where price usually retraces back to the moving average. So, in an anticipation of price reverting back to the moving average, it is a useful piece of option to use during sideway markets.
The backtester assumes the following;
- 1000$ capital
- 0.06% commission based on binance
- 1% risk meaning 100% equity on cross leverage
- Backtest results are starting from 2020
If you want to get access to this indicator please DM me or visit our website.