Squeeze Momentum StrategyJust turned LazyBears' Squeeze Momentum Indicator into a strategy. You can understand how it works and pay credit to LazyBear here: uk (dot) tradingview (dot) com/v/nqQ1DT5a/
Best results seem to be on the 4h chart. Added LazyBear's Volume Weighted Moving Average indicator, which can be used (select in strategy properties) to more selectively long or short if desired. Defaults to using 100% of your initial strategy equity (just my preference), and this cannot be changed without recoding the strategy, but should be easy to do if desired. Added leverage, trade risk, backdate time window and trade type selector inputs.
Happy trading!
Not financial advice.
Volatility
BB+K strategyApplying Bollinger Bands and K-bar strategies
Suitable for long time periods
Suitable for forex trading, when the forex deviation is too large, the Fed will intervene and thus correct
Strategy: Enter when the price hits the upper or lower BB track and there is a reversal of the strong signal, and exit when it hits the other track and there is a reversal signal.
Escaping of Rate from Avarage By Mustafa OZVER StrategyI simulated the EoRfA indicator with the gold price
For details about the indicator, visit my profile on tradingview
For Simulation, with default settings, we order
if Eorfa > 1 and change(eorfa) < 0
sell
if Eorfa < -1 and change(eorfa) > 0
buy
And we got
- 2.49 % profit
- 74 % profittable order from all
But only this value can not guarantee good results for trading. BE CAREFUL
Vegas Tunnel strategyApply Vegas Tunnel,
Use EMA144 169 as medium-term trend support
Also use EMA 576 676 and 4 multiples of 144 and 169 as long-term support and trend direction
Also increase EMA 36 43 as a short-term trend support
Suitable for stocks, indices, commodities
The applicable time scale can back-test the usability of the strategy by itself, and select the most applicable target
Introduction to current trading strategy:
According to the trend, the price will enter the market when it touches the support of each stage. When it touches the bollinger bands, it is Squeeze. Hold until it leaves the bollinger bands
But the trading strategy can be more optimized, see the code for details
Profit MAX MTF HeatMapThis is a powerfull strategy which is made from combining 3 multi timeframes into one for profit max indicator
In this case we have daily, weekly and montly.
Our long conditions are the next ones :
if we have an uptrend on all 3 at the same time, we go long.
If we have a downtrend on all 3 of them at the same time we go short.
For exit, for long, as soon as one of the 3 converts into downtrend we exit the trade.
For exit, for short, as soon as one of the 3 converts into uptrend we exit the trade.
This tool can be used on all types of markets, and can also be changed the time frames.
Daily Open Strategy (DOS)DOS is a mean-reversal strategy that trades against the previous candle direction as long as it has body greater than the PrevRange paremeter.
Best results are obtained in GBP and AUD pairs on daily charts , but of course you can experiment with other assets and timeframes.
Strategy parameters include starting and ending dates, the previous candle range (raw value), the Stop Loss (SL, in pips, 200 = 20 pips) and the Take Profit (TP, in pips too).
Keltner Channel [LINKUSDT] 1HThis is a long-only strategy tested on LINK/USDT, 1 hour bar, from Feb 2019. The entry is determined by the breakout of upper Keltnel Channel and when the +DI is higher than 32. Instead of a fixed stop-loss from the original script , I change the exit to the middle band of the Keltnel Channel. 1st profit target will close 20% of the position. 2nd profit target will close 30% of the position. While the remaining 50% position will be closed when the price closes below the middle band of the Keltnel Channel, to take advantage of big trend. All parameters are adjustable. I added another option to enable or disable the ribbon trend filter.
My thoughts: For the same period, LINK appreciated 3000%. So I guess most in and out strategies couldn’t beat a buy and hold strategy during this period. But this doesn’t mean that this strategy is not feasible as each strategy is designed to only take advantage of a certain pattern or behavior of the market. Also, short term strategies allow you to use leverage and hence enable you to use you capital efficiently. Commission is set to 0.1%, taking account of the slippage.
Suggestion: Please perform walk forward analysis before you use real money for trading. Parameters need to be adjusted from time to time depends on your analysis. Can try using ATR for profit targets as over a longer term, the volatility might drop hence a high fixed % profit targets might not be realistic.
Any suggestions are welcome!
Daily Crypto StrategyThis is a long only strategy.
This strategy measures and creates a signal when an asset is moving out of a correlation with CBOE VIX into an inverse correlation.
It also has a risk management with TP/SL based on percentages.
If you have any questions let me know.
MACD Strategy with trailing ATR stopThis is a trend based strategy that uses EMA and SMA intersection for determining the direction of the trend and MACD for the entry signal. At the same time, the strategy uses ATR, which is working as a trailing stop.
The strategy entry will work when the Trend ribbon will turn green and MACD line will crossover the signal line. This strategy also takes into account the pyramiding and allows to enter the second time if the signal will repeat itself.
There are 3 exit points. The first 10% of the position will be closed when the price will increase by 1%. The second portion of 50% will be closed when the price reaches 5% Take profit target. The remaining 40 % of the position will wait for the exit signal which will occur when the price closes below the ATR line.
The strategy is using a fixed amount in dollars, each time the entry occurs the strategy will enter with 100$ in the order.
The strategy can be applied to other crypto assets. However, they will require input changes.
Best of luck with your trading.
test_%_down_upStrategy for testing efficiency of strategies based on % retrace from local top based on modifiable range.
BBofVWAP with entry at Pivot PointThis strategy uses BB of VWAP and Pivot point to enter and exit the Long position.
settings
BB length 50
BB Source VWAP
Entry
When VWAP crossing up BB midline and price/close is above weekly PivotPoint ( you can also use Daily pivot point )
Exit
When VWAP is crossing down BB lower band
Stop Loss
Stop loss defaulted to 5%
Note : Long will position will be exited on either VWAP crossing down BB lower band or stop loss is hit - whichever comes first . Being said that some time your stop loss exit is less than 5% which saves from more losses.
Entry is based on weekly Pivot point , so any time frame below weekly will work perfect. I have tested t on 30 min , 1 HR , 4 Hr , Daily charts. Even weekly setting shows good results , that will work for long term investing style.
if you change Pivot period to Daily , chose time frames below Daily.
I also noticed this strategy mostly do not enter Long position in a down trend. Even it finds one , it will be exited with minimal loss.
Warning
For the use of educational purposes only
888 BOT #backtest█ 888 BOT #backtest (open source)
This is an Expert Advisor 'EA' or Automated trading script for ‘longs’ and ‘shorts’, which uses only a Take Profit or, in the worst case, a Stop Loss to close the trade.
It's a much improved version of the previous ‘Repanocha’. It doesn`t use 'Trailing Stop' or 'security()' functions (although using a security function doesn`t mean that the script repaints) and all signals are confirmed, therefore the script doesn`t repaint in alert mode and is accurate in backtest mode.
Apart from the previous indicators, some more and other functions have been added for Stop-Loss, re-entry and leverage.
It uses 8 indicators, (many of you already know what they are, but in case there is someone new), these are the following:
1. Jurik Moving Average
It's a moving average created by Mark Jurik for professionals which eliminates the 'lag' or delay of the signal. It's better than other moving averages like EMA , DEMA , AMA or T3.
There are two ways to decrease noise using JMA . Increasing the 'LENGTH' parameter will cause JMA to move more slowly and therefore reduce noise at the expense of adding 'lag'
The 'JMA LENGTH', 'PHASE' and 'POWER' parameters offer a way to select the optimal balance between 'lag' and over boost.
Green: Bullish , Red: Bearish .
2. Range filter
Created by Donovan Wall, its function is to filter or eliminate noise and to better determine the price trend in the short term.
First, a uniform average price range 'SAMPLING PERIOD' is calculated for the filter base and multiplied by a specific quantity 'RANGE MULTIPLIER'.
The filter is then calculated by adjusting price movements that do not exceed the specified range.
Finally, the target ranges are plotted to show the prices that will trigger the filter movement.
Green: Bullish , Red: Bearish .
3. Average Directional Index ( ADX Classic) and ( ADX Masanakamura)
It's an indicator designed by Welles Wilder to measure the strength and direction of the market trend. The price movement is strong when the ADX has a positive slope and is above a certain minimum level 'ADX THRESHOLD' and for a given period 'ADX LENGTH'.
The green color of the bars indicates that the trend is bullish and that the ADX is above the level established by the threshold.
The red color of the bars indicates that the trend is down and that the ADX is above the threshold level.
The orange color of the bars indicates that the price is not strong and will surely lateralize.
You can choose between the classic option and the one created by a certain 'Masanakamura'. The main difference between the two is that in the first it uses RMA () and in the second SMA () in its calculation.
4. Parabolic SAR
This indicator, also created by Welles Wilder, places points that help define a trend. The Parabolic SAR can follow the price above or below, the peculiarity that it offers is that when the price touches the indicator, it jumps to the other side of the price (if the Parabolic SAR was below the price it jumps up and vice versa) to a distance predetermined by the indicator. At this time the indicator continues to follow the price, reducing the distance with each candle until it is finally touched again by the price and the process starts again. This procedure explains the name of the indicator: the Parabolic SAR follows the price generating a characteristic parabolic shape, when the price touches it, stops and turns ( SAR is the acronym for 'stop and reverse'), giving rise to a new cycle. When the points are below the price, the trend is up, while the points above the price indicate a downward trend.
5. RSI with Volume
This indicator was created by LazyBear from the popular RSI .
The RSI is an oscillator-type indicator used in technical analysis and also created by Welles Wilder that shows the strength of the price by comparing individual movements up or down in successive closing prices.
LazyBear added a volume parameter that makes it more accurate to the market movement.
A good way to use RSI is by considering the 50 'RSI CENTER LINE' centerline. When the oscillator is above, the trend is bullish and when it is below, the trend is bearish .
6. Moving Average Convergence Divergence ( MACD ) and ( MAC-Z )
It was created by Gerald Appel. Subsequently, the histogram was added to anticipate the crossing of MA. Broadly speaking, we can say that the MACD is an oscillator consisting of two moving averages that rotate around the zero line. The MACD line is the difference between a short moving average 'MACD FAST MA LENGTH' and a long moving average 'MACD SLOW MA LENGTH'. It's an indicator that allows us to have a reference on the trend of the asset on which it is operating, thus generating market entry and exit signals.
We can talk about a bull market when the MACD histogram is above the zero line, along with the signal line, while we are talking about a bear market when the MACD histogram is below the zero line.
There is the option of using the MAC-Z indicator created by LazyBear, which according to its author is more effective, by using the parameter VWAP ( volume weighted average price ) 'Z-VWAP LENGTH' together with a standard deviation 'STDEV LENGTH' in its calculation.
7. Volume Condition
Volume indicates the number of participants in this war between bulls and bears, the more volume the more likely the price will move in favor of the trend. A low trading volume indicates a lower number of participants and interest in the instrument in question. Low volumes may reveal weakness behind a price movement.
With this condition, those signals whose volume is less than the volume SMA for a period 'SMA VOLUME LENGTH' multiplied by a factor 'VOLUME FACTOR' are filtered. In addition, it determines the leverage used, the more volume , the more participants, the more probability that the price will move in our favor, that is, we can use more leverage. The leverage in this script is determined by how many times the volume is above the SMA line.
The maximum leverage is 8.
8. Bollinger Bands
This indicator was created by John Bollinger and consists of three bands that are drawn superimposed on the price evolution graph.
The central band is a moving average, normally a simple moving average calculated with 20 periods is used. ('BB LENGTH' Number of periods of the moving average)
The upper band is calculated by adding the value of the simple moving average X times the standard deviation of the moving average. ('BB MULTIPLIER' Number of times the standard deviation of the moving average)
The lower band is calculated by subtracting the simple moving average X times the standard deviation of the moving average.
the band between the upper and lower bands contains, statistically, almost 90% of the possible price variations, which means that any movement of the price outside the bands has special relevance.
In practical terms, Bollinger bands behave as if they were an elastic band so that, if the price touches them, it has a high probability of bouncing.
Sometimes, after the entry order is filled, the price is returned to the opposite side. If price touch the Bollinger band in the same previous conditions, another order is filled in the same direction of the position to improve the average entry price, (% MINIMUM BETTER PRICE ': Minimum price for the re-entry to be executed and that is better than the price of the previous position in a given %) in this way we give the trade a chance that the Take Profit is executed before. The downside is that the position is doubled in size. 'ACTIVATE DIVIDE TP': Divide the size of the TP in half. More probability of the trade closing but less profit.
█ STOP LOSS and RISK MANAGEMENT.
A good risk management is what can make your equity go up or be liquidated.
The % risk is the percentage of our capital that we are willing to lose by operation. This is recommended to be between 1-5%.
% Risk: (% Stop Loss x % Equity per trade x Leverage) / 100
First the strategy is calculated with Stop Loss, then the risk per operation is determined and from there, the amount per operation is calculated and not vice versa.
In this script you can use a normal Stop Loss or one according to the ATR. Also activate the option to trigger it earlier if the risk percentage is reached. '% RISK ALLOWED'
'STOP LOSS CONFIRMED': The Stop Loss is only activated if the closing of the previous bar is in the loss limit condition. It's useful to prevent the SL from triggering when they do a ‘pump’ to sweep Stops and then return the price to the previous state.
█ BACKTEST
The objective of the Backtest is to evaluate the effectiveness of our strategy. A good Backtest is determined by some parameters such as:
- RECOVERY FACTOR: It consists of dividing the 'net profit' by the 'drawdown’. An excellent trading system has a recovery factor of 10 or more; that is, it generates 10 times more net profit than drawdown.
- PROFIT FACTOR: The ‘Profit Factor’ is another popular measure of system performance. It's as simple as dividing what win trades earn by what loser trades lose. If the strategy is profitable then by definition the 'Profit Factor' is going to be greater than 1. Strategies that are not profitable produce profit factors less than one. A good system has a profit factor of 2 or more. The good thing about the ‘Profit Factor’ is that it tells us what we are going to earn for each dollar we lose. A profit factor of 2.5 tells us that for every dollar we lose operating we will earn 2.5.
- SHARPE: (Return system - Return without risk) / Deviation of returns.
When the variations of gains and losses are very high, the deviation is very high and that leads to a very poor ‘Sharpe’ ratio. If the operations are very close to the average (little deviation) the result is a fairly high 'Sharpe' ratio. If a strategy has a 'Sharpe' ratio greater than 1 it is a good strategy. If it has a 'Sharpe' ratio greater than 2, it is excellent. If it has a ‘Sharpe’ ratio less than 1 then we don't know if it is good or bad, we have to look at other parameters.
- MATHEMATICAL EXPECTATION: (% winning trades X average profit) + (% losing trades X average loss).
To earn money with a Trading system, it is not necessary to win all the operations, what is really important is the final result of the operation. A Trading system has to have positive mathematical expectation as is the case with this script: ME = (0.87 x 30.74$) - (0.13 x 56.16$) = (26.74 - 7.30) = 19.44$ > 0
The game of roulette, for example, has negative mathematical expectation for the player, it can have positive winning streaks, but in the long term, if you continue playing you will end up losing, and casinos know this very well.
PARAMETERS
'BACKTEST DAYS': Number of days back of historical data for the calculation of the Backtest.
'ENTRY TYPE': For '% EQUITY' if you have $ 10,000 of capital and select 7.5%, for example, your entry would be $ 750 without leverage. If you select CONTRACTS for the 'BTCUSDT' pair, for example, it would be the amount in 'Bitcoins' and if you select 'CASH' it would be the amount in $ dollars.
'QUANTITY (LEVERAGE 1X)': The amount for an entry with X1 leverage according to the previous section.
'MAXIMUM LEVERAGE': It's the maximum allowed multiplier of the quantity entered in the previous section according to the volume condition.
The settings are for Bitcoin at Binance Futures (BTC: USDTPERP) in 15 minutes.
For other pairs and other timeframes, the settings have to be adjusted again. And within a month, the settings will be different because we all know the market and the trend are changing.
Amazing strategy for silver -XAGUSD, XAGEUR etcToday I bring an amazing strategy that works for 1h time frames for silver.
Its made of price actions movement combined together with MACD and simple moving average
It does not use neither stop loss/take profit levels. Instead it will always exit at the next candle after it opens a trade.
The rules are the next one :
For short condition : we have a bull candle, and candle is above the moving average, and MACD histogram is > 0 and last high0 and candle close > last high1 and, previus high1 and candle close > last high2
At the same time, viceversa for long condition.
In development terms, this is the formula
long1 = (close > open ) and time_cond and close > out and hist > 0 and hist > hist and high > high and high > high and close > high and close > high and close > high
short1 = (close < open) and time_cond and close < out and hist < 0 and hist < hist and low < low and low < low and close < low and close < low and close < low
But when we enter the trade, we enter in reverse, like lets say we go long -> for this we apply the short1 condition. If we go short we apply the long1 condition.
If you have any questions , please let me know .
Velocity To Inverse Correlation to VIX/Bonds Strategy (2020)This strategy measures and creates a signal when an asset is moving out of a correlation with high yield bonds or the CBOE VIX into an inverse correlation, as well as when an asset is losing correlation with a top corporate bonds ETF. When this signal is triggered, the simulation has the portfolio asset go long.
Additionally, exits are based on a 2% stop loss and a 2% take profit for simplicity sake to indicate whether the direct next move in the asset is up or down.
This was originally tested as a descent indicator for Ethereum's 2020 moves as institutional investors moved into the market.
Swing/Daytrading strategy with reversal option
Hello, today I bring a swing reversal strategy that work on all financial markets.
It uses timeframes starting from 1h, the bigger the better.
Its very dangerous because it has no stop loss, neither a take profit. Our exit condition is based on the reversal on the entry .
For entry we have 2 types : normal and reversal
Lets say we want to go long , for that we check the last CLOSE of a candle with the previos HIGH. If its higher than that, and at the same time CLOSE is bigger than the moving average, we have a long entry.
For short we have CLOSE with the previous LOW. If its lower than that and at the same time is lower than moving average, we have a short entry.
For moving average we use T3 MA
For reversal what I do, is , I take the short condition and I apply it to long, and for long I apply the short condition.
On many cases I found out it work amazingly.
I forgot to add: it also has a time entry system, so we use the best hours/sessions for entries .
Exit a trade: lets say we enter short, when we find a long condition, we close short and enter into long. Viceversa for long.
If you have any questions, let me know.
Enjoy it :)
BuyHigh-SellLow StrategyYeah. You read it right. It's not a mistake. It is buy high and sell low strategy.
Main entry condition is to buy when price hits 40 day Donchian channel top. This is combined with my other regular filters which are aligned moving average and new high/low filter and yearly high/low filter.
Exit condition can be based on two things:
Donchian channel : Set appropriate DonchianExitLength. Lower line of donchian channel acts as trailing stop.
ATR Based trailing stop : Select appropriate ATR multiplier and length.
What a surprise!! You can buy high, sell low and still make money.
Trend Finder V2A variation of a previous indicator i made using two stochastics and a volume weighted moving average to look for trend, 10% equity used per trade at 0.1% commission
The close can be used more of a stop loss if volatility is used to take profit
Doji swing strategyThis is a simple strategy based on Doji star candlestick
This strategy is suited for big time frames, like 4h -1Day and so on.
It places two orders: long at doji star high or previous candle high and short at doji star low or previous candle low.
It can also be applied volume average, in order to filter between trades .
This strategy works very well with high time frames like Weekly TF because it eliminates the noise in doji formation.
It also has inside a risk management made of SL/TP , or if not prefered it can exit based on a exit condition.
If you have any questions, please let me know !
Parabolic SAR Swing strategy GBP JPY Daily timeframeToday I bring you a new strategy thats made of parabolic sar. It has optmized values for GBPJPY Daily timeframe chart.
It also has a time period selection, in order to see how it behave between selected years.
The strategy behind it is simple :
We have an uptrend , (the psar is below our candles) we go long. We exit when our candle crosses the psar value.
The same applies for downtrend(the psar is above our candles), where we go short. We exit when our candle cross the psar value.
Among the basic indicators, it looks like PSAR is one of the best canditates for swing trading.
If you have any questions, please let me know.
Bollinger %B Candles StrategyStrategy built based on earlier published indicator:
Looks to be doing good for short term swing trades. But, I am not sure if there is repainting. I tried to avoid buy/sell trades on same day - but wasn't successful.
So far back-tested on following:
COINBASE:BTCUSD - works on both long and short
CURRENCYCOM:GOLD and equities - long only.
Some of the failures: ASX:WPL , ASX:WHC , ASX:NHC
As usual for back-testing - using 1000 as initial capital with 100% invested on each trade and no compounding so that it will be easy to compare with buy and hold. Trade with caution :)
2HLA very simple, almost naive strategy, in which you buy on the lowest of the two previous candles and sell at the highest of the two previous candles. You can configure these highest and lowest lenght, in some assets two is too small of a number to make profit. You can also configure to exit the position after X, and I found that 7 (which is a week of working days) is a good number for that.
This is strategy is intended to be used as a swing trade. Your capital needs to be high enough so that it can pay the operaitonal costs, and reach it's target with a reasonable profit.
Since this is a volatility based strategy, assets that are more liquid won't work properly.
Stock Market Strategy : VWAP, MACD, EMA, Breakout, BBHello there,
Today I bring you a stock market strategy, specialized in NASDAQ stocks.
Its a daytrading strategy, that can only do a max of 1 trade per day. In this case it only trades the first 2 opening hours of the market.
The rules are simple :
We follow the trend based on a big EMA, in this case 200, after that, we check for VWAP direction , then, we check histogram from MACD. This is the simple logic of the strategy.
Inside there is another strategy, that not just do the above, but also uses Bollinger bands, and checks for breakout of bottom or top line. Also it uses Average directional Index, for even a bigger criteria .
So for example a long condition it would be : candle is above the ema, and candle is above vwap, and histogram is positive, and candle break the top bb level and ADI < 40 -> long signal . The opposite works for short(ADI > 20).
In this case all this criterias are between the first 2 hours of market. So we enter between the first hour, and exit in the next hour. For this we need to use very short time frames.
Hope you enjoy it.
Let me know if you have any questions
Bitlinc MARSI Study AST w/ Take Profit & Stop loss - beta 0.1This script is beta 0.1 - will update as soon as the script is tradable
This script is based on AST on a 10 minute timeframe. You can change the asset and the timeframe for any asset you want to trade, but for it to work correct ALL settings have to be testes in the Strategy section of the TradingView. Each assets and timeframe require a different mixture of settings. This is NOT a one settings fits all trading for all assets on any timeframe. Below are the settings and explanation on how it works.
How it fires a buy / sell:
The script will plot an RSI with upper and lower bands in a separate indicator window. The idea behind this script is to fire a LONG when MA crosses OVER lower band and fire a SHORT when the MA crosses under the lower band. Each order that fires is an OCO (Order Cancels Order) for pyramiding.
Settings:
You have full control of these settings as mentioned above, you must configure every part of this script for each asset and timeframe you trade.
- Length of MA
- Length
- Upper bands of RSI
- Lower bands of RSI
- Take profit percentage
- Stop loss percentage
- Month to start and end the strategy (within 2020)
- Day to start and end the strategy (within 2020)
- Quantity type
- Slippage
- Pyramiding
***Remember that after the signal to enter or exit a trade is fired, the alert will trigger AFTER the close of the candle that caused the tigger to fire