Buy/Sell StratThis strategy will produce a buy or sell signal when the following criteria are met:
9 EMA crosses 21 EMA
Recently closed candlestick has 15% higher average volume than previous 5 candles
A candlestick reversal pattern
Price crosses 9 EMA
Feel free to use and modify as you see fit. Happy trading!
Volume
TASC 2022.04 S&P500 Hybrid Seasonal System█ OVERVIEW
TASC's April 2022 edition of Traders' Tips includes the "Sell In May? Stock Market Seasonality" article authored by Markos Katsanos. This is the code implementing the "Hybrid Seasonal System" from the article.
█ CONCEPTS
In his article, Markos Katsanos takes an updated look at the "Sell in May" adage by reviewing recent historical data for seasonal equity market tendencies. The author explores the development of a trading strategy (a set of buy and sell rules) based on this research.
He starts from the enhanced buy & hold system featured in his July 2021 TASC article, and adds additional technical conditions. These include volatility conditions ( VIX and ATR ) plus the "Volume Flow Indicator" (VFI), which is a custom money flow indicator that Katsanos introduced in his June 2004 TASC article. He provides an example of a trading system that others can test for themselves and modify as they see fit. The author notes that the system could likely be improved further by adding money management conditions (such as a stop-loss), or by adding more technical conditions not considered in the scope of this article.
█ CALCULATIONS
The entry and exit rules that constitute the trading system are defined below. The critical values of VIX, ATR and VFI (specified below) used in the calculations were determined by optimization for a daily chart of the SPY ETF . By default, the strategy only allows long entries. However, the script offers the possibility to initiate short entries upon exiting long trades through the "Long Only" toggle in the script's inputs.
Long Entry Rules
• Seasonal: The seasonal trade is initiated on the first business day October at the open.
• Volatility: In case of high volatility, that is if the VIX is above 60% or the 15-day ATR was above 90% over the past 25 days, the seasonal trade is deferred until later in the month or year, when the volatility subsides.
Exit/Short Entry Rules
• Seasonal: The exit/short signal is triggered on the first business day of August at the open.
• Volatility: The exit/short signal is triggered if VIX is above 120 % (i.e. 2 times the corresponding threshold parameter).
• Money flow (VFI): The exit/short signal is triggered if the VFI crosses under a critical value (-20) while its 10-day moving average is pointing down.
Join TradingView!
Volume fight strategyThe Volume fight strategy looks for the predominance of bullish or bearish trading volume on the chart by dividing the trading volume in the bar into 2 parts - "bullish volume" and "bearish volume", and comparing the weighted average values by volume with each other at a given distance.
This strategy is suitable for any instrument (cryptocurrency, Forex, stocks) and is able to work on any TF.
The Volume fight strategy should be used as an auxiliary indicator that tells you who is currently prevailing in the market - " bulls "or"bears".
To configure the strategy , it is necessary to set the range of evaluation of the predominance of bullish or bearish volume (the number of bars, by default-24 bars for TF=1H). The smaller the TF, the higher the range value should be used to filter out false signals.
When there is a predominance of "bulls" on the chart, a green triangle appears (relevant at the close of the bar) and the histogram is highlighted in green, when "bears" appear on the chart, a red triangle appears (relevant at the close of the bar) and the histogram is highlighted in red.
In the strategy settings, there is smoothing to reduce false signals and highlight the flat zone by specifying a percentage, at least which should be the difference between the forces of the "bullish" and "bearish" volume . If the difference between the volume forces is less than the specified one (by default-15%), the zone is considered flat and is displayed in gray on the histogram.
If you set the percentage to zero, the flat zones will not be highlighted, but there will be much more false signals, since the strategy becomes very sensitive when the smoothing percentage decreases.
There is a function-to show the color background of the current trading zone. For" bullish "- green, for" bearish " - red.
In the settings, you can enable the display and use of each signal in the trading zone, not only the initial one, but also each after the flat zone. By default, only the signal of the beginning of the ascending/descending zone is used.
The strategy has alerts for "bullish" and "bearish" movements.
👉Use alerts - "alert() function calls only"
If you have any questions, you can write to me in private messages or by using the contacts in my signature.
----------------------------------------------------
Стратегия Volume fight ищет на графике преобладание бычьего или медвежьего объёма торгов путём разделения торгового объёма в баре на 2 части - "бычий объём" и "медвежий объём", и сравнения средне-взвешенных значений по объёму между собой на заданной дистанции.
Данная стратегия подходит для любого инструмента (криптовалюта, Forex, акции) и способен работать на любом ТФ.
Стратегию Volume fight следует использовать как вспомогательный индикатор, который подсказывает Вам кто сейчас преобладает на рынке - "быки" или "медведи".
Для настройки стратегии необходимо выставить диапазон оценки преобладания бычьего или медвежьего объема (количество баров, по умолчанию - 24 бара для ТФ=1Ч). Чем меньше ТФ, тем выше следует использовать значение диапазона, чтобы отфильтровать ложные сигналы.
При возникновении преобладания на графике "быков" появляется зелёный треугольник (актуален по закрытию бара) и гистограмма подсвечивается зелёным цветом, при возникновении на графике "медведей" появляется красный треугольник (актуален по закрытию бара) и гистограмма подсвечивается красным цветом.
В настройках стратегии есть сглаживание для уменьшения ложных сигналов и выделения зоны флета с помощью указания процента, не менее которого, должна быть разница между силами "бычьего" и "медвежьего" объёма. Если разница между силами объёмов меньше заданного (по умолчанию - 15%), то зона считается флетовой и отображается на гистограмме серым цветом.
Если выставить процент равным нулю, то зоны флета выделяться не будут, но будет гораздо больше ложных сигналов, так как стратегия становится очень чувствительной при снижении процента сглаживания.
Есть функция - показывать цветовой фон текущей торговой зоны. Для "бычьего" - зелёный, для "медвежьего" - красный.
В настройках можно включить отображение и использование каждого сигнал в торговой зоне, не только начального, но и каждого после зоны флета. По умолчанию - только сигнал начала восходящей/нисходящей зоны.
Стратегия имеет оповещения для "бычьего" и "медвежьего" движения.
👉 Используйте оповещения - "Только при вызове функции alert()".
По любым вопросам Вы можете написать мне в личные сообщения или по контактам в моей подписи.
Logistic strategyThis strategy is loosely based on the logistic function. This function is often used to model population growth. I used it here to model price change using the z-score of net volume as the parameter to the exponential function.
3 Indicator Strategy (StochRSI, MFI & EMA) With Safety OrdersThis strategy uses Stochastic RSI, Money Flow Index and EMA with settings for lower time-frames.
It also features safety orders based on 3 different take profit and stop loss methods.
Recommended Indicator Settings for lower time-frames;
Stoch RSI: 1,1,100,100
MFI: 30
EMA: 100
Take Profit/Stop Loss Settings:
There are 3 TP/SL types available;
- Pips -> based on minticks
- Base Value -> manually entering a value for the actual profit/loss.
- Opposite Signal -> e.g. if the current open order is long, strategy waits for the next short signal.
Super Breakout day trading This is an intraday indicator which uses Bollinger band and volume flow and MA to alert buy and sell signal.
A user can use this indicator to help make entry and exits. This indicator wont show entry and exist of larger time frames like Day week month.
This indicator uses Bollinger bands but try to minimize it shortcoming where it will buy and keep holding and eventually sell at a loss.
By adding addition parameters around volume it check if the price has reached its peak
Dollar cost averaging This is a testing startergy based on dollar cost averaging and sell on high points.
Swing VWAP Crypto and Stocks StrategyThis is a strategy designed for swing trading on markets such as crypto and stocks.
Its components are:
VWAP
Time Management
Risk management
Rules for entry:
We entry only on Monday, if our close of the candle crossed above VWAP
Rules for exit
We exit always on Sunday or if we either hit the TP/SL levels.
If you have any questions let me know
LPB MicroCycles StrategyWhat it is:
We use the Hodrick-Prescott filter applied to the closing price, and then take the outputted trendline and apply a custom vwap, the time frame of which is based on user input, not the default 1 day vwap . Then we go long if the value 2 bars ago is greater then one bar ago. We sell and color the bars and lines when the if the value of 2 bars ago is less than one bar ago.
Also included:
GUI for backtesting
ATR Based Stop Loss
How to use:
Go long when the indicators suggest it, and use the stop losses to reduce risk.
Best if paired with a volatility measurement (inside candles, average true range , bollingerband%B)
Volume Difference Delta Cycle OscillatorVolume Difference Delta Cycle Oscillator indicator:
Using the power of my Volume Difference Indicator and standard deviations based on Bollinger Bands and more, we present this wonderful indicator with the following features:
Price Action Histogram: This is the bread and butter of this graph, if the PAH is above 0, this is considered a BULL cycle, and if below 0, this is considered a BEAR cycle. The histogram will move up and down based on the Histagram settings you set in the properties field. Be careful, we advise using default settings.
Custom Overbought & Oversold Lines:mean
These lines can be used to identify when to buy and sell the security, and help you make sense of the action of the histogram. Change the color, size, and linewidth!
These lines are what are used to perform the trades with the strategy as well, so if you change them, they will make an impact on the strategy itself.
EzSpot Background:
Do you want to turn your brain off and just trade when you you're inside an Overbought or Oversold line? Awesome! Turn on EzSpot backgrounds, and when it's green, go long, when it's red go short! Simple as that!
How it works:
By taking the Delta of the Volume Difference Indicator we're able to find the rate of change of the amount of change of volume, allowing us to see changes in volume before price changes. To add onto these, we supercharge it by taking the output of this line as the input source of bollinger bands which we use to output the %B of the Delta of the Volume Difference Indicator.
Separately, we calculate the %B of the current close to use later.
The final step is taking the second %B (which is an indication of where price lies on the curve of historical price data), and from it subtract the first %B, which allows us to visualize the standard deviation of the closing price, minus the standard deviation of Delta of the Volume Difference , which in essence allows us to see when volume changes but price does not and vice versa.
This final output is then plotted along with an over bought and over sold line, which we use to perform our trades on.
Simplified: This indicator shows the cycles of price action - volume based on the rate of the rate of volume changes based on price and the closing price.
Super Simple: Notice when volume increases but price hasn't, and vice versa with this indicator.
BBPBΔ(OBV-PVT)BB - Time Series Decomposition & Volume WeightedThis is an indicator that shows 5 different points of information:
#1 The Trendline is uses a time-series decomposition to remove noise and seasonality data to provide a trendline without using moving averages. This is then further processed by a custom VWAP block that weights it based on the time frame you're currently using.
#2 BB%B - This is the blue histogram that's partially transparent. This is used to find when a security is overbought or oversold.
#3 BB%B of the Δ(OBV-PVT). This is the green histogram. We took the OBV and subtracted the PVT from it, then we found the delta of that compared to the previous candle. This output a line, which we wrapped in bollinger bands to find the BB%B of this line. This line is represented as a histogram, for visual clarity.
#4 Long and Short Indicators: Long is represented by a green dot, and short is represented by a red dot.
#5 Zones - there are multiple zones, which are used to identify overbought and oversold zones.
How to use the indicator:
Simple way: Long on green dot, Short on red dot. Use stop losses and take profits.
Slightly More Complex: Same as above, but also close out longs, when the green histogram drops but the blue does not. As this means price action hasn't caught up with volume. Use stop losses and take profits.
Full Usage: Long only when both the green, blue and yellow lines are below 0, and sell when the blue or green histogram rises above 1. Perform the opposite for the shorting. Ignore the dots if you use this method, they are for simple reference points til you get used to this indicator. Use stop losses and take profits.
Supertrend + Stoch Strategy Multi-pair Signal AlarmBITSTAMP:BTCUSD
An entry alarm on Supertrend Stoch Strategy . It can monitor 10 trading pairs in one alarm.
Use this script on any trading pair and deploy the alarm. The alert comment shows the pair name, direction, entry point, sl/tp, and percentage of your position you should cost.
I currently use it as a signal for my grid trading.
MFI Simple StrategyHere I've made a simple strategy based off a simple moving average of an MFI length.
Back tested on a BYBIT:BTCUSDT 30m chart.
Conditions:
---When the price is above the golden SMA of 200 bars---
- Buy: when MFI is moving up
- Sell: when MFI is moving down
- Stop: golden SMA of 200 bars
If you would like alerts:
1.) Add the strategy to your chart,
2.) Go to "Create Alert",
3.) Select "MFI Simple Strategy" in your alert creator,
4.) Select whatever notifications settings or message settings,
5.) Finally, click "Create" and you're good to go.
Disclaimer: Please do your own research before making any decisions financially. Past results do not guarantee future results.
Bollinger band & Volume based strategy V2this script is upgraded version of previous one the major change is deleted script which find a highest price after entry the last of strategy is same.
If current volume is above daily average volume, and three bollinger band`s Standard Deviation, 1 and 1.5 and 2 if the current lowest price is bigger then 1 stdev and current closed is bigger then 1.5 stdev and the last,highest price is above 2.0 stdev, it defined current market is bullish and had momentum.
and the Short will entered when ma60 and ma120 is undercrossed it work as prevent current price is way lower then entry price.
**this script is working in 15min Only in BTC market or USDT**
** basic equity setting is 500$, set your own**
**if you will use this in real-trade,plz comment the result to me**
Ps: i wanna know why my script is only working well in 15 min tick, anyone who has similar phenomenon or if you had a answer about it, please comment me.
Vol ST VMThis script works with super trend and volume. Based on super trend and MA signal we can go for buy/sell.
Use min 1Hr time frame.
We can use this mostly for 24Hr markets.
Volume and Moving average,will this model working in real-trade?i`ve recently made this script through few month,understand me if there are some incorrect grammar or something.
basically this script is based on moving average strategy and the bollinger bands
if the buy volume is bigger than sell volume,also buy volume is bigger then daily average volume than it`s defined current market is bullish and entered(of course there is some other conditions)
the exit condition is find the highest price after entered,keep refresh the highest price through time and then,if the current price is ?%lower then highest price,it will closed the position.
my question is this : 1 this model will working in real-trade?
2 why the winning rate is 100%?
- i`ve coded if the position margin over -10%,close the position this code isn`t work? or the other profit line is prevent that happened?
Daily HIGH/LOW strategyThis is a DAILY High/LOW strategy combined with a moving average and volume for more accuracy.
The rules are simple :
For long if we had a cross of the high with the previous high and close of the candle is above moving average and chaikin money flow volume is positive we have a long entry.
We exit when we cross down the moving average with the close of the candle.
For short if we had a crossdown of the low with the previous low and close of the candle is below moving average and chaikin money flow volume is negative we have a short entry.
We exit when we cross above the moving average with the close of the candle.
This strategy has no risk management inside so use it with caution.
If you have any questions, let me know
Buy and Hold, which day of month is best to buy?I wanted to invest a certain fiat amount each month and was wondering which day would be best to do this.
So, with this script, you can set your entry day. On the last day of the date range, it will close all positions. You can then see what amount of the asset you have accumulated to date. If you try all the days of the month and see when you can sell the most amount of the asset, you've found the best buy date of the month for that asset.
A second option is to set an exit day. This is good for a strategy where you would go long (buy) on the entry date and short (sell) on the exit day.
This was inspired by people running out of money by the end of the month and selling their asset, which could make the price fall. Then when they receive the wages by the 5th or so, they would rebuy, causing the price to go up.
TemaVWAPRSI StrategyExchange: Kraken
Timeframe: 5m
Pair: ETH/USD
If you use this for any other exchange or pair, you'll have to tweak the settings, most importantly are the trailing stop ticks. This strategy is currently in what I would call beta mode. It uses the volume weighted average price indicator, rate of change, two triple exponential moving averages and the relative strength index to find buy and sell signals.
SQZ Multiframe StrategyThis is a first attempt to automate what my current strategy when trading is.
It uses 2 timeframes: the one you are currently using to see the chart and an "anchor trend" which is a higher order frame.
Supported timeframes are: 1m, 5m, 15m, 30m, 1H, 4H, 1D, 1W
The Strategy relies on two indicators:
Squeeze Momentum Indicator
CMF
How does it works?
It looks for a moment when the following conditions are met.
For Long:
Positive directionality in SQZM monitor in anchor timeframe
Positive directionality in SQZM monitor in current timeframe
Recent minimum in CMF
For Short:
Negative directionality in SQZM monitor in anchor timeframe
Negative directionality in SQZM monitor in current timeframe
Recent maximum in CMF
After a BUY or SELL order is executed the plot will start showing two lines: A TP line, and a SL line.
The TP and SL move dynamically based on a greedy algorithm based on 3 input parameters.
Min Profit to Start Moving SL (%): Sets an initial target for the trade.
Maximum Possible of SL (%): This is the maximum amount possible for SL. If volatility is not too high, a shorter SL will be chosen based on Kaufman's Stops method
Take profit factor: Is how much portion of the target I am taking as profit once the target is reached
Example for 5% Min profit:
When the first target is reached (+5%), the SL will be updated to 2.5% over the enter price.
When the second target is reached (+10%), the SL will be updated to 5% over the enter price.
Note: The strategy might abandon the position prematurely if a contrary signal is received while the trade is opened, and will change direction.
The Strategy has been backtested mostly for crypto. It might be good for stocks too, but the parameters mentioned might need some adjustments since price moves at a different rate.
Recommended timeframe is 4H for BTC , and 30min/1H for alts.
Comments and ideas are more than welcome!
Full Swing Gold Vwap Macd SMO StrategyThis is a full strategy designed for gold market using 12h timeframe chart.
Its components are:
VWAP monthly
SMO oscillator
MACD histogram
Rules for entry:
For long: when enter when close of the candle is above vwap monthly, current histogram is higher than the previous one and SMO oscillator is above 0
For long: when enter when close of the candle is below vwap monthly, current histogram is lower than the previous one and SMO oscillator is below 0
Rules for exit:
We exit the trade if we get a reverse condition.
We also exit the trade based on a risk management system, both for SL and TP using % movements.
If you have any questions let me know !
Long TermThe Strategy is to buy based on Stan which is long term strategy on stocks. This works on 30WEEK And RSI indicator which helps to understand when to enter stock and when not to.
Additionally due to fast moving trades, added logic of crossover of close price above 50DMA
Crypto Squeeze StrategyThis strategy was inspired by two famous Trading View contributors. Shout out to Lazy Bear and Crypto Face!
The strategy includes a similar replication of the blue wave, and MFI indicator. The point of the strategy is to buy when the blue wave crosses up the zero value, and the MFI is greater than zero value. This indicates that there is strong bullish momentum and money flowing into the market.