Mark Earnings DayThe idea for today is to plot high / low prices on the Earnings day. (use only on Daily timeframe)
And as we all know, most of the times, price is unidirectional after the earnings are declared.
A target of 1:2 or even 1:5 can be easily achieved in these cases, within few days.
Green label indicates, reported earnings are higher than estimated. Red indicates the other way.
But 1, this does not necessarily indicate the trend direction.
But 2, a breakout / breakdown of this day's candle mostly does. The other serving as a Stop Loss.
Optionally, the scripts can also plot splits and dividends on the charts.
The difference between this indicator and readily available default markings on the chart is,
these figures are directly available on the chart itself, that saves multiple clicks.
Breakout
Volume Positive Negative (VPN)The idea and calculations for the Volume Positive Negative (VPN) indicator were created by Markos Katsanos. Markos wrote about the indicator in the article Detecting High-Volume Breakouts, published in Technical Analysis of Stocks & Commodities April, 2021 (Vol. 39, Issue 5).
The goal of the VPN indicator is to detect breakouts using only volume. The basic idea is to compare volume on up days versus volume on down days. The indicator can oscillate between the range of -100 and 100. Values between 0 and 20 are generally considered bullish, negative are bearish.
When the plotted VPN crosses over what Markos refers to as the critical value, that may indicate a high volume breakout. The critical value can be adjusted between 0 to 20, 10 is the default,
Volume Positive Negative Calculation (VPN)
VPN = (VP - VN) / MAV / Period * 100
VP - sum of positive volume
VN - sum of negative volume
MAV - moving average of volume
Volume is considered positive when the average price is higher than the previous day's price by more than .1 of the ATR (average true range).
Trend ResumptionWe again keep it really simple.
This indicator just plots the combination of RGRR and GRGG candlesticks. (R = Red / Bearish, G = Green / Bullish)
When either pattern occurs, trade the combined high and combined low of recent 2 RR or recent 2 GG candles. I.e.,
Buy above GG's high with SL at GG's low.
Sell below RR's low with SL at RR's high.
Refer the shared chart for example. The signals were plotted on both the sides, and wherever triggered - gave rewards.
Only 1 at 05-Apr, 10:50 a.m. did not trigger, but that must then be ignored. Do not hurry to enter the trade, wait for breakout / breakdown above combined high / low.
Trend Surfers - Premium Breakout + AlertsTrend Surfers - Premium Breakout Strategy with Alerts
I am happy today to release the first free Trend Surfers complete Breakout Strategy!
The strategy includes:
Entry for Long and Short
Stoploss
Position Size
Exit Signal
Risk Management Feature
How the strategy works
This is a Trend Following strategy. The strategy will have drawdowns, but they will be way smaller than what you would go through with buy and old.
As a Trend Following strategy, we will buy on strength, when a breakout occurs. And sell on weakness.
The strategy includes a FIX Stoploss determined by an ATR multiple and a trailing Stoploss/Takeprofit also determined by an ATR multiple.
You can also manage your risk by entering the maximum % you are willing to risk on every trade. Additionally, there is an option to enter how many pairs you will be trading with the strategy. This will change your position size in order to make sure that you have enough funds to trade all your favorite pairs.
Use the strategy with alerts
This strategy is alert-ready. All you have to do is:
Go on a pair you would like to trade
Create an alert
Select the strategy as a Trigger
Wait for new orders to be sent to you
Every Entry (Long/Short) will include:
Market Entry (Enter position NOW!)
Stoploss price
Position Size
Leverage
* If you do not wish to use leverage, you can multiply the Position Size by the Leverage. But doing that, you might end up with a position greater than your equity. Trading on Futures is better in order to have accurate risk management.
Exit signals:
When you receive an exit signal, you need to close the position ASAP. If you want to keep your results as close as possible to the backtest results, you need to execute quickly and follow what the strategy is telling you.
Do not try to outsmart the strategy
Leave your emotion out of trading! If you trust the strategy, you will have way better returns than if you try to outsmart it. Follow each signal you receive even if it doesn't seem logical at the moment.
Become a machine that executes. Don't look at fundamentals. Follow the trend! Trust the strategy!
I hope you enjoy it!
MM Session Open AlgoThe MM Session Open Algo is a strategy to catch the opening breakout of a security
displays the current session with background color
Entry, Stop Loss Based on Atr, and two Take Profit levels
Kill zone entries for New york and London session
provides valid signal for entry once price crosses entry line
and set "opening session price" to determine what signal you are looking for. based on time frame
shows the Daily,Weekly,Monthly high and low
average daily range
and comes with trend filter.
Directions are Simple
when price crosses and closes above entry line. you get in with the set inputs of Tp and Sl
or you can set buy/sell stops with the price provided for you and ride the wave of the direction it goes with he Tp and Sl provided
Link below or PM us for access to this indicator Happy Trading
Pips Breakout CandlePips Breakout Candle measures price changes in pips. This indicator can be used to identify major price moves! The indicator comes with a sentiment line which is the sum of the Up versus Down price changes. It gives a good understanding of the current trend and identifies divergences.
Set alerts for major price moves!
Identify the trend!
Identify divergence!
Break of structure (BOS) forex StrategyPlease read all Details before using this indicator
This strategy is based on taking position after the break of a Previous High/Low swing happens (fixed time frame), the break of structure happens because of the swing happens then we go long or short respectively in this strategy.
I will be discussing the setting details through which you can make it work on different forex pairs.
Does it work on other pairs?
Yes, I have found similar back test results on other USD pairs.
Does it works on smaller time frame?
Yes it does work on smaller time frame , you have to understand the below concepts used and try different settings.
For the user the most important thing is to understand the settings of the indicator so that they can optimize the setting and get the best results:
This indicator contains the following IMPORTANT setting:
i. Fixed trading session for long trades (long position can be taken in that period of time only)
ii. Fixed trading session for short trades (Short position can be taken in that period of time only)
The concept behind restricting the time to go long or short is because in forex the particular pair move in a particular direction depending upon the currency and time zones.
This strategy works on different forex pairs, you need to find the best settings. I will be providing the best settings which works for this strategy and different pairs.
2. Choose Previous High/Low Timeframe
This is the most important option where you have to choose the timeframe for which you want H/L by default it is set to “D”. This timeframe H/L reference will be taken for taking trading decisions.
3.Setting for back test selection date range you can check the beck test of a particular time range.
4.You can check Long and Short positions performance separately, by unchecking the “Go_long” option it will remove all long positions from back test. Vice versa for “Go_short option”
5.Internal Bar Strength
IBS is simply an indicator where you buy on weakness and sell on strength, the cornerstone of any mean-reverting strategy.
It oscillates from zero to one and measures the relative position of the closing price relative to the High and Low.
IBS = (Close – Low) / (High – Low)
In the input setting the you can disable enable the IBS option from the strategy.
6. Parkinson volatility
Parkinson volatility is a volatility measure that uses the stock’s high and low price of the day (can be changed in the setting, instead of day it can be set to any bar length)
The main difference between regular volatility and Parkinson volatility is that the latter uses high and low prices for a day, rather than only the closing price.
In the setting you have three option
i. Enter Volatility Threshold
If the Parkinson volatility value is greater than the the threshold value then it lets the trade happen.
ii.Set the high/low bar time frame for calculating Parkinson volatility. ( Set 60m by default)
Formula used as below:
high_=security(syminfo.ticker, input("60"), high)
low_=security(syminfo.ticker, input("60"), low)
hourlyRangeSquared = pow((log(high_) - log(low_)), 2)
dailyParkinsonVol = sqrt(sum(hourlyRangeSquared, 24) / (4 * log(2)))
7. "Enter no of contract size"
This setting helps you to set the contract size , by default it is set to 100000.
8. “Zigzag Filter Length” this setting is for SWING H/L Lookback. With the help of this I have ploted Swing Support and Resistance.
9.Futrther confirmation of trade is done through the RSI criteria. In this I have provided four kind of RSI confirmation you can test all by selecting any one of the four.
i. filter trade on the basis of BB of RSI (as shown in the image)
ii. filter trade on the basis of RSI Levels (RSI>50 for long, vice versa for short)
iii. filter trade by rsi>basis of BB of RSI(for long) & rsi<50(for short)
iv. filter trade by rsi>50(long) & rsi< basis of BB of RSI(short)
SELECT ONLY ONE OF THE ABOVE IN SETTING.
10.For Exiting the trade I have used the trailing SL you can change it in setting.
You can exit the trade using two targets (two take profit) using different size for exiting the trade.
If you want to take only on target then you have to make QANTITY of shares for 1st Exit as 100. Then you will exit all your position in the first target.
A big thanks to kodify.net there articles are very helpful kodify.net
Thanks to Mickey for providing assistance.
Thanks to stack overflow community for clearing the doubts.
Trading view official documentation on V4 of pine script also helped me.
Pivot Points AlgoThis is a Pivot Points Algo (PPA).
PPA uses an adaptive pivot algorithm that adapts to different market situations based on various factors.
PPA also includes depth filtering to make it more precise at its signal decision.
======= Signal Types ======
Main Signal of BUY and SELL shown by buy/sell labels.
Mini Signals of BUY and SELL shown by buy/sell arrows and shows additional breakouts after the Main Signal occurred.
Optional reversal signals show a possible reversal in trend (small triangle).
======= Alerts =======
Main Signals alerts - Alerts when a main Buy or Sell is triggered (Shown as Labels).
Combo Alerts - Alerts when main or mini signals of Buy and Sell are triggered (Shown as Arrows).
======= Assets and Time frames =======
Can be used on various assets, stocks, forex, crypto and works great for day trading as well as swing trading and long term investing.
PPA is designed to adjust to any time frame!
======= General info =======
The purpose of this indicator is to signal possible breakouts with a high rate of success.
PPA has been extensively tested and fine tuned to provide traders and investors with a valuable tool for timing long and short entries. However, no system is 100% perfect, and it is good practice to have a plan in place and use stop losses or other tools to mitigate unforeseen risk.
Also, note, I don't hide what PPA is doing as opposed to some other commercial indicators on the market. You can view pivot lines and pivot bands and so on.
The magic is the inner system itself which works for you to pinpoint the best entrance possible, I recommend confirming your own methods to make sure you want to take the trade.
To subscribe to Pivot Points Algo service see “Author's instructions” below.
For any question you can PM me.
Happy and profitable trading!
Anti-Breakout StrategyAnti-Breakout Strategy
Description:
This is a contrarian entry strategy for trading false breakouts. The high/low of the breakout bar is used for the entry in the opposite direction.
To reduce repainting set ptype variable to OHL3.
[BTCUSD] DinhChienFX [2 orders]* Historical statistics from 2018:
* Strategy will enter 2 orders, Order 2 will appear only when there is Order 1:
- Percent profitable of 1st order: 64.76%.
- Percent profitable of 2nd order: 49.86%.
- Average percent profitable: 57.31%.
- 14 consecutive wins.
- 4 consecutive losses.
Order 1: risk / reward ratio 1/1 used to determine if this rule is effective or not?
Order 2: Appears when there is order 1, Use take-profit and take-loss level of order 1 at Fibonacci 75%.
. * 1st Order conditions:
- Buy: When the ADX index cuts up to 45, check earlier if the closing price has cut up and is above the Upper 2 line, enter the Buy order.
- Sell: when the ADX indicator cuts up to 45, check before that if the closing price has cut down and is above Lower 2 then enter a Sell order.
* How to enter Order 2: When order 1 appears, there are always Stoploss and Takeprofit levels. Draw Fibonacci from take-profit and take-loss prices, Fibonacci retracement level = 75%
----------------
1. Trend identification:
- Channel Keltner:
... Uptrend: when the closing candlestick cuts up and is above the Keltner channel, the Upper Line 2
... Down trend: when the candle closes and falls above the Keltner Line Lower 2
2. Rules of entry:
- Channel Keltner:
... Buy: Candlestick closing price cuts up and above the Keltner Upper 2.
... Sell: The closing price of the candle cuts down and is lower than the Keltner Below 2.
ADX indicator:
... Buy: The ADX value crossed to 45 and the close of the candle was higher than Keltner Upper 2.
... Sell: ADX value cuts to 45 and the close of the candle is lower than Keltner Below 2.
3. Stoploss and Profit = atr (20) * 2.
Robust Channel [tbiktag]Introducing the Robust Channel indicator.
This indicator is based on a remarkable property of robust statistics , namely, the resistance to the presence of data points that deviate significantly from the established trend (generally speaking, outliers ). Being outlier-resistant, the Robust Channel indicator “remembers” a pre-existing trend and thus exhibits a very peculiar "lag" in case of a sharp price change. This allows high-confidence identification of such price actions as a trend reversal, range break, pullback, etc.
In the case of trending and range-bound market conditions, the price remains within the channel most of the time, fluctuating around the central line.
Technical details
The central line is calculated using the repeated median slope algorithm. For each data point in a lookback window of a user-specified Length , this method calculates the median slope of the lines that connect that point to all other points inside the window. The overall median of these median slopes is then calculated and used as an estimate of the trend slope. The algorithm is very efficient as it uses an on-the-fly procedure to update the array containing the slopes (new data pushed - old data removed).
The outer line is then calculated as the central line plus the Length -period standard deviation of the price data multiplied by a user-defined Channel Width Factor . The inner line is defined analogously below the central line.
Usage
As a stand-alone indicator, the Robust Channel can be applied similarly to the Bollinger Bands and the Keltner Channel:
A close above the outer line can be interpreted as a bullish signal and a close below the inner line as a bearish signal.
Likewise, a return to the channel from below after a break may serve as a bullish signal, while a return from above may indicate bearish sentiment.
Robust Channel can be also used to confirm chart patterns such as double tops and double bottoms.
If you like this indicator, feel free to leave your feedback in the comments below!
Box Range AlertSimple Script for getting alerts on the crossing of Upper & Lower levels either way.
Good for Free users as they can only use 1 alert at a time. So this indicator will be useful to get alerts on both Breakout Or Breakdowns.
Just add input Price manually and set alerts.
52 Bar High/Low starting from previous barUsually all 52 bar scripts depend on weekly bars. This script makes it possible to apply the current time period. In addition, it starts from the previous bar so that the current day's bar is not included in the calculation which makes it easier to notice if the price is above the previous 52 bars.
[TVExtBot]Volatility Breakout Plus Strategy(BackTest)It is based on the legendary trader Larry R. Williams' volatility breakout strategy.
The volatility breakout strategy is a short-term trading strategy that realizes rapid profits on a daily basis, following the upward trend of a strong upward trend that exceeds a certain level on a daily basis.
The Volatility Breakout Plus strategy is a strategy modified to a long-term trend by supplementing the existing Volatility Breakout strategy.
변동성 돌파 전략이란 전설적인 트레이더 래리 윌리엄스(Larry R. Williams)의 변동성 돌파 전략을 기본으로 개발한 전략입니다.
변동성 돌파 전략은 일일 단위로 일정 수준 이상의 범위를 뛰어넘는 강한 상승세를 돌파 신호로 상승하는 추세를 따라가며 일 단위로 빠르게 수익을 실현하는 단기매매 전략입니다.
이번 출시하는 변동성 돌파 플러스 전략은 기존 변동성 돌파 전략을 보완하여 장기 추세로 수정한 전략입니다.
※특징으로는 선물보다는 현물차트에 더 효과적입니다.
기본적인 설정은 기존 변동성 돌파 전략과 동일하고 장기 추세에서의 리스크를 줄이기 위해 익절과 손절 기능을 추가하였습니다.
변동성 돌파 플러스 전략 백테스트 버전
Default Options(기본설정)
Slippage (슬리피지) : 3
Leverage (레버리지) : 1
BackTest Period (백테스트 기간) : 2018/ 01 / 01 ~ 2021/03/14
BeforeDay Open-Close Volatility (%) (전날 시가종가 변동률) : 6%
StopLoss (%) (손절) : 6%
TakeProfit (%) (익절) : 30%
Commission (거래수수료) : 0.06%
[TVExtBot]Volatility Breakout Plus Indicator(With Alerts)It is based on the legendary trader Larry R. Williams' volatility breakout strategy.
The volatility breakout strategy is a short-term trading strategy that realizes rapid profits on a daily basis, following the upward trend of a strong upward trend that exceeds a certain level on a daily basis.
The Volatility Breakout Plus strategy is a strategy modified to a long-term trend by supplementing the existing Volatility Breakout strategy.
변동성 돌파 전략이란 전설적인 트레이더 래리 윌리엄스(Larry R. Williams)의 변동성 돌파 전략을 기본으로 개발한 전략입니다.
변동성 돌파 전략은 일일 단위로 일정 수준 이상의 범위를 뛰어넘는 강한 상승세를 돌파 신호로 상승하는 추세를 따라가며 일 단위로 빠르게 수익을 실현하는 단기매매 전략입니다.
이번 출시하는 변동성 돌파 플러스 전략은 기존 변동성 돌파 전략을 보완하여 장기 추세로 수정한 전략입니다.
※특징으로는 선물보다는 현물차트에 더 효과적입니다.
기본적인 설정은 기존 변동성 돌파 전략과 동일하고 장기 추세에서의 리스크를 줄이기 위해 익절과 손절 기능을 추가하였습니다.
Default Options(기본설정)
BeforeDay Open-Close Volatility (%) (전날 시가종가 변동률) : 6%
StopLoss (%) (손절) : 6%
TakeProfit (%) (익절) : 30%
[TVExtBot]Volatility Breakout Plus Strategy(BackTest)It is based on the legendary trader Larry R. Williams' volatility breakout strategy.
The volatility breakout strategy is a short-term trading strategy that realizes rapid profits on a daily basis, following the upward trend of a strong upward trend that exceeds a certain level on a daily basis.
The Volatility Breakout Plus strategy is a strategy modified to a long-term trend by supplementing the existing Volatility Breakout strategy.
변동성 돌파 전략이란 전설적인 트레이더 래리 윌리엄스(Larry R. Williams)의 변동성 돌파 전략을 기본으로 개발한 전략입니다.
변동성 돌파 전략은 일일 단위로 일정 수준 이상의 범위를 뛰어넘는 강한 상승세를 돌파 신호로 상승하는 추세를 따라가며 일 단위로 빠르게 수익을 실현하는 단기매매 전략입니다.
이번 출시하는 변동성 돌파 플러스 전략은 기존 변동성 돌파 전략을 보완하여 장기 추세로 수정한 전략입니다.
※특징으로는 선물보다는 현물차트에 더 효과적입니다.
기본적인 설정은 기존 변동성 돌파 전략과 동일하고 장기 추세에서의 리스크를 줄이기 위해 익절과 손절 기능을 추가하였습니다.
Default Options(기본설정)
Slippage (슬리피지) : 3
Leverage (레버리지) : 1
BackTest Period (백테스트 기간) : 2018/01/01 ~ 2021/03/14
BeforeDay Open-Close Volatility (%) (전날 시가종가 변동률) : 6%
StopLoss (%) (손절) : 6%
TakeProfit (%) (익절) : 30%
Commission (거래수수료) : 0.06%
Combo Breaker DetectionA method I'm playing with to detect liquidity grabs and breaks from consolidation.
NSDT Pre-Market Breakout LevelsA simple way to identify potential breakouts at the New York market open. This indicator plots the high and low of the New York Pre-Market, providing a great visual of a potential breakout levels.
Stdev Breakout StrategyStdev Breakout Strategy
Description:
This script generates a long entry signal when the Standard Deviation crosses over the Simple Moving Average and the Close is greater than the Open, and/or generates a short entry signal when the Standard Deviation crosses under the Simple Moving Average and the Close is less than the Open.
Repeated Median Regression ChannelThis script uses the Repeated Median (RM) estimator to construct a linear regression channel and thus offers an alternative to the available codes based on ordinary least squares.
The RM estimator is a robust linear regression algorithm. It was proposed by Siegel in 1982 (1) and has since found many applications in science and engineering for linear trend estimation and data filtering.
The key difference between RM and ordinary least squares methods is that the slope of the RM line is significantly less affected by data points that deviate strongly from the established trend. In statistics, these points are usually called outliers, while in the context of price data, they are associated with gaps, reversals, breaks from the trading range. Thus, robustness to outlier means that the nascent deviation from a predetermined trend will be more clearly seen in the RM regression compared to the least-squares estimate. For the same reason, the RM model is expected to better depict gaps and trend changes (2).
Input Description
Length : Determines the length of the regression line.
Channel Multiplier : Determines the channel width in units of root-mean-square deviation.
Show Channel : If switched off , only the (central) regression line is displayed.
Show Historical Broken Channel : If switched on , the channels that were broken in the past are displayed. Note that a certain historical broken channel is shown only when at least Length / 2 bars have passed since the last historical broken channel.
Print Slope : Displays the value of the current RM slope on the graph.
Method
Calculation of the RM regression line is done as follows (1,3):
For each sample point ( t (i), y (i)) with i = 1.. Length , the algorithm calculates the median of all the slopes of the lines connecting this point to the other Length -1 points.
The regression slope is defined as the median of the set of these median slopes.
The regression intercept is defined as the median of the set { y (i) – m * t (i)}.
Computational Time
The present implementation utilizes a brute-force algorithm for computing the RM-slope that takes O ( Length ^2) time. Therefore, the calculation of the historical broken channels might take a relatively long time (depending on the Length parameter). However, when the Show Historical Broken Channel option is off, only the real-time RM channel is calculated, and this is done quite fast.
References
1. A. F. Siegel (1982), Robust regression using repeated medians, Biometrika, 69 , 242–244.
2. P. L. Davies, R. Fried, and U. Gather (2004), Robust signal extraction for on-line monitoring data, Journal of Statistical Planning and Inference 122 , 65-78.
3. en.wikipedia.org
Double DojiStrategy Kiss = 'Keep It Simple, Stupid' or 'Keep It Simple, Smart'
The script simply identifies 2 consecutive Doji candles, and calculates Target on both the sides for given Reward : Risk factor.
The High-Low to Open-Close ratio is set to default value 20. The Reward : Risk ratio is of default value 2.
Both can be set to values of your choice.
Accuracy best on Daily chart. Can be tried on any timeframe though.
Trading Rules: Buy at higher / Short at lower of the 2 candles, with other as Stop Loss.
If a Stop Loss is hit, go for reverse trade. If again a SL is hit, switch to other instrument.
Important: If trading in Futures and target is achieved, hedge the position by buying an option (subject to liquidity).
Reason is, the trend may condition to any extent and you would definitely not want to miss out the whole action.
Check the shared example. For a risk to 175 points, reward is 2200+ points (more than 12.5 times).
Moving Regression Band Breakout strategyFollowing the introduction of the Moving Regression Prediction Bands indicator (see link below), I'd like to propose how to utilize it in a simple band breakout strategy :
Go long after the candle closes above the upper band . The lower band (alternatively, the lower band minus the 14-period ATR or the central line ) will serve as a support line .
Exit as soon as the candle closes below the support line .
To manage the risk of false breakouts, a fixed stop loss is set to the value of the support line at the time of opening a position. When the support line moves above the position opening price, shift the stop loss to breakeven.
The same logic but in reverse applies to short positions.
As an option, it is possible to allow long entries only when the slope of the Moving Regression curve is positive (and short entries when the slope is negative).
Model parameters:
Length and Polynomial Order define the lag and smoothness of the model.
Multiplier specifies the width of the channel.
As the default model parameter values, I set those that I found to provide optimal risk / reward ratio on the daily timeframe (for both trending and range-bound market). However, the settings are very flexible and can be well-adjusted to particular market conditions. Feel free to play around and leave feedback in the comments!
Here's the original Moving Regression Prediction Bands script:
Multi Time Frame Candles with Volume Info / 3DHello Traders,
This is my second Multi Time Frame Candles script but with this new one, you will have some new features such volume info, remaining time to close of higher time frame candle and also developed using new features of Pine such array of lines. also I tried to make it 3D for better visualization ;) also it shows new highs/lows / breakouts.
I tried to make many things optional, so you can change almost everything using options.
What you can change using options:
- Higher time frame
- Number of Candles
- Candle Colors Up/Down
- Wick Color
- Volume colors Up/Down
- Text color of Remaining Time
- Shadow Color
- Background color
- Start bar of the candles (so you can see many higher times frame candles in same window)
- 3D effect, by default it's enables but you can disable 3D view
Lets see some examples:
Remaining time:
Breakouts:
You can combine different higher time frames:
if you don't want 3D view then combining different higher time frames:
You can change background color:
Enjoy!