Bjorgum Double Tap█ OVERVIEW
Double Tap is a pattern recognition script aimed at detecting Double Tops and Double Bottoms. Double Tap can be applied to the broker emulator to observe historical results, run as a trading bot for live trade alerts in real time with entry signals, take profit, and stop orders, or to simply detect patterns.
█ CONCEPTS
How Is A Pattern Defined?
Doubles are technical formations that are both reversal patterns and breakout patterns. These formations typically have a distinctive “M” or a “W” shape with price action breaking beyond the neckline formed by the center of the pattern. They can be recognized when a pivot fails to break when tested for a second time and the retracement that follows breaks beyond the key level opposite. This can trap entrants that were playing in the direction of the prior trend. Entries are made on the breakout with a target projected beyond the neckline equal to the height of the pattern.
Pattern Recognition
Patterns are recognized through the use of zig-zag; a method of filtering price action by connecting swing highs and lows in an alternating fashion to establish trend, support and resistance, or derive shapes from price action. The script looks for the highest or lowest point in a given number of bars and updates a list with the values as they form. If the levels are exceeded, the values are updated. If the direction changes and a new significant point is made, a new point is added to the list and the process starts again. Meanwhile, we scan the list of values looking for the distinctive shape to form as previously described.
█ STRATEGY RESULTS
Back Testing
Historical back testing is the most common method to test a strategy due in part to the general ease of gathering quick results. The underlying theory is that any strategy that worked well in the past is likely to work well in the future, and conversely, any strategy that performed poorly in the past is likely to perform poorly in the future. It is easy to poke holes in this theory, however, as for one to accept it as gospel, one would have to assume that future results will match what has come to pass. The randomness of markets may see to it otherwise, so it is important to scrutinize results. Some commonly used methods are to compare to other markets or benchmarks, perform statistical analysis on the results over many iterations and on differing datasets, walk-forward testing, out-of-sample analysis, or a variety of other techniques. There are many ways to interpret the results, so it is important to do research and gain knowledge in the field prior to taking meaningful conclusions from them.
👉 In short, it would be naive to place trust in one good backtest and expect positive results to continue. For this reason, results have been omitted from this publication.
Repainting
Repainting is simply the difference in behaviour of a strategy in real time vs the results calculated on the historical dataset. The strategy, by default, will wait for confirmed signals and is thus designed to not repaint. Waiting for bar close for entires aligns results in the real time data feed to those calculated on historical bars, which contain far less data. By doing this we align the behaviour of the strategy on the 2 data types, which brings significance to the calculated results. To override this behaviour and introduce repainting one can select "Recalculate on every tick" from the properties tab. It is important to note that by doing this alerts may not align with results seen in the strategy tester when the chart is reloaded, and thus to do so is to forgo backtesting and restricts a strategy to forward testing only.
👉 It is possible to use this script as an indicator as opposed to a full strategy by disabling "Use Strategy" in the "Inputs" tab. Basic alerts for detection will be sent when patterns are detected as opposed to complex order syntax. For alerts mid-bar enable "Recalculate on every tick" , and for confirmed signals ensure it is disabled.
█ EXIT ORDERS
Limit and Stop Orders
By default, the strategy will place a stop loss at the invalidation point of the pattern. This point is beyond the pattern high in the case of Double Tops, or beneath the pattern low in the case of Double Bottoms. The target or take profit point is an equal-legs measurement, or 100% of the pattern height in the direction of the pattern bias. Both the stop and the limit level can be adjusted from the user menu as a percentage of the pattern height.
Trailing Stops
Optional from the menu is the implementation of an ATR based trailing stop. The trailing stop is designed to begin when the target projection is reached. From there, the script looks back a user-defined number of bars for the highest or lowest point +/- the ATR value. For tighter stops the user can look back a lesser number of bars, or decrease the ATR multiple. When using either Alertatron or Trading Connector, each change in the trail value will trigger an alert to update the stop order on the exchange to reflect the new trail price. This reduces latency and slippage that can occur when relying on alerts only as real exchange orders fill faster and remain in place in the event of a disruption in communication between your strategy and the exchange, which ensures a higher level of safety.
👉 It is important to note that in the case the trailing stop is enabled, limit orders are excluded from the exit criteria. Rather, the point in time that the limit value is exceeded is the point that the trail begins. As such, this method will exit by stop loss only.
█ ALERTS
Five Built-in 3rd Party Destinations
The following are five options for delivering alerts from Double Tap to live trade execution via third party API solutions or chat bots to share your trades on social media. These destinations can be selected from the input menu and alert syntax will automatically configure in alerts appropriately to manage trades.
Custom JSON
JSON, or JavaScript Object Notation, is a readable format for structuring data. It is used primarily to transmit data between a server and a web application. In regards to this script, this may be a custom intermediary web application designed to catch alerts and interface with an exchange API. The JSON message is a trade map for an application to read equipped with where its been, where its going, targets, stops, quantity; a full diagnostic of the current state and its previous state. A web application could be configured to follow the messages sent in this format and conduct trades in sync with alerts running on the TV server.
Below is an example of a rendered JSON alert:
{
"passphrase": "1234",
"time": "2022-05-01T17:50:05Z",
"ticker": "ETHUSDTPERP",
"plot": {
"stop_price": 2600.15,
"limit_price": 3100.45
},
"strategy": {
"position_size": 0.1,
"order_action": "buy",
"market_position": "long",
"market_position_size": 0,
"prev_market_position": "flat",
"prev_market_position_size": 0
}
}
Trading Connector
Trading Connector is a third party fully autonomous Chrome extension designed to catch alert webhooks from TradingView and interface with MT4/MT5 to execute live trades from your machine. Alerts to Trading Connector are simple; just select the destination from the input drop down menu, set your ticker in the "TC Ticker" box in the "Alert Strings" section and enter your URL in the alert window when configuring your alert.
Alertatron
Alertatron is an automated algo platform for cryptocurrency trading that is designed to automate your trading strategies. Although the platform is currently restricted to crypto, it offers a versatile interface with high flexibility syntax for complex market orders and conditions. To direct alerts to Alertatron, select the platform from the 3rd party drop down, configure your API key in the ”Alertatron Key” box and add your URL in the alert message box when making alerts.
3 Commas
3 Commas is an easy and quick to use click-and-go third party crypto API solution. Alerts are simple without overly complex syntax. Messages are simply pasted into alerts and executed as alerts are triggered. There are 4 boxes at the bottom of the "Inputs" tab where the appropriate messages to be placed. These messages can be copied from 3 Commas after the bots are set up and pasted directly into the settings menu. Remember to select 3 Commas as a destination from the third party drop down and place the appropriate URL in the alert message window.
Discord
Some may wish to share their trades with their friends in a Discord chat via webhook chat bot. Messages are configured to notify of the pattern type with targets and stop values. A bot can be configured through the integration menu in a Discord chat to which you have appropriate access. Select Discord from the 3rd party drop down menu and place your chat bot URL in the alert message window when configuring alerts.
👉 For further information regarding alert setup, refer to the platform specific instructions given by the chosen third party provider.
█ IMPORTANT NOTES
Setting Alerts
For alert messages to be properly delivered on order fills it is necessary to place the following placeholder in the alert message box when creating an alert.
{{strategy.order.alert_message}}
This placeholder will auto-populate the alert message with the appropriate syntax that is designated for the 3rd party selected in the user menu.
Order Sizing and Commissions
The values that are sent in alert messages are populated from live metrics calculated by the strategy. This means that the actual values in the "Properties" tab are used and must be set by the user. The initial capital, order size, commission, etc. are all used in the calculations, so it is important to set these prior to executing live trades. Be sure to set the commission to the values used by the exchange as well.
👉 It is important to understand that the calculations on the account size take place from the beginning of the price history of the strategy. This means that if historical results have inflated or depleted the account size from the beginning of trade history until now, the values sent in alerts will reflect the calculated size based on the inputs in the "Properties" tab. To start fresh, the user must set the date in the "Inputs" tab to the current date as to remove trades from the trade history. Failure to follow this instruction can result in an unexpected order size being sent in the alert.
█ FOR PINECODERS
• With the recent introduction of matrices in Pine, the script utilizes a matrix to track pivot points with the bars they occurred on, while tracking if that pivot has been traded against to prevent duplicate detections after a trade is exited.
• Alert messages are populated with placeholders ; capability that previously was only possible in alertcondition() , but has recently been extended to `strategy.*()` functions for use in the `alert_message` argument. This allows delivery of live trade values to populate in strategy alert messages.
• New arguments have been added to strategy.exit() , which allow differentiated messages to be sent based on whether the exit occurred at the stop or the limit. The new arguments used in this script are `alert_profit` and `alert_loss` to send messages to Discord
Точки разворота и уровни
Pivot Points Standard Higher Timeframe█ OVERVIEW
This indicator was intended as educational purpose only and alternative way to write pine script in version 5 for Pivot Points Standard.
█ CREDITS
Credits to TradingView for original built-in source code.
█ FEATURES
Display price or percentage.
Change color for labels and lines.
█ USAGE EXAMPLES
Hash Ribbons OverlayThis is a modified Hash Ribbons indicator. You can get the original indicator for free at this link:
Differences from the original indicator
1) This is overlay version
2) Pointers appear under candlesticks, which is more visual
3) PineScript v5.0 was used
Camarilla PivotsA slimmed down/cleaner version of the "Pivot Points Standard" indicator. This is for Camarilla pivots only. The S and R pivots are renamed to L/H and the colors of pivot 1 and 2 are faded out by default since those pivots are less used in the Camarilla trading system. They can also be disabled of course.
20 Camarilla Pivot PointsThis indicator plots 20 Camarilla pivot points above and below the pivot based on the selected time frame. This is useful when price goes between the standard 3 and 4 pivots and above 4. Note that the normal 4 pivot point is labeled as 6 in this indicator. You can change the color of each set of pivots so you can mark the standard Camarilla pivots if you wish. The image is using monthly Camarilla pivots on a 1 hour time frame.
Volume Profile, Pivot Anchored by DGTVolume Profile (also known as Price by Volume ) is an charting study that displays trading activity over a specified time period at specific price levels. It is plotted as a horizontal histogram on the finacial isntrumnet's chart that highlights the trader's interest at specific price levels. Specified time period with Pivots Anchored Volume Profile is determined by the Pivot Levels, where the Pivot Points High Low indicator is used and presented with this Custom indicator
Finally, Volume Weighted Colored Bars indicator is presneted with the study
Different perspective of Volume Profile applications;
Anchored to Session, Week, Month etc : Anchored-Volume-Profile
Custom Range, Interactive : Volume-Profile-Custom-Range
Fixed Range with Volume Indicator : Volume-Profile-Fixed-Range
Combined with Support and Resistance Indicator : Price-Action-Support-Resistance and Volume-Profile
Combined with Supply and Demand Zones, Interactive : Supply-Demand-and-Equilibrium-Zones
Disclaimer : Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitutes professional and/or financial advice. You alone the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
PivotBoss ADR LevelsBased on Pivot Boss ADR Methodology
Can be used only in Intraday - Hope someone will make it for all TF
All available script in TV do not have scaling at 25%
Due to which price needs to reach at 50% to derive any conclusion
This script solves this issue and can be used in sideways market as it provides scaling at 25 %
Script is original in its way to solve problem in sideways market
Neo Matrix
What is NeonMoney Indicator?
NeonMoney Indicator is a trend following indicator which gives strong support and resistance indications with some moving averages.
Description
After the long research of 2 years along with 100’s of indicators & oscillators we have created this wonderful indicator which can avoid signals in a choppy market & gives perfect signal to buy and sell at a right time with high winning probability and higher reward to risk.
Main part of this indicator is timeframe period that is it shifts from one to another pivots , vwap and MAs tf automatically which helps in top down analysis.
This indicator is made with Vwap , MA, cpr and fibonacci pivots calculations. It can be useful to trade every market like in crypto, forex, commodities and as well as stock market . To use this indicator trader must have basic understanding of candle pattern and chart pattern identification studies with moving averages retrenchments.
This indicator works well & gives better results if you have moving average retrenchment knowledge. When candles are retrenching specific moving average line then also sometimes traders get confuse whether to enter with moving average direction / favor or not. So, to come out from this confusion this indicator is very useful. Because it gives signal in moving average favors and target at pivot levels. So ultimately traders gain some confident on his/her trade that he/she is in the right side of the market.
Another advantage of this indicator is in some of the criteria it gives fix signal in-between the candle formation & once signal is given then it will not change.
About uses instruction and components.
Time frame – 1m, 3m , 15m, 1H, 4H, DailyTF
Components: Vwap , MAs, CPR , and Fibonacci Pivots .
Dotted line - Vwap
Straight gray line and zone - CPR
Curvy Gray lines - MAs
Colorful lines - Fibonacci pivots
Moving Averages & PivotsOptional MA and Pivots which can be changed as per your needs.
Moreover you can opt to see all and none at all or some.
Fibo Candle Middle LineAdopt the idea of Fibo retracement 50% line, if a retracement move more than 50%, it is likely that the retracement will continue and made a new high or new low with 1.618 ratio from the middle line. You will find that the fibo 50% line also works as a support and resistance. The Dotted line is the projected 1.618 fibo target.
Monthly Returns: Daily timeframeUse This indicator on the daily timeframe
The 30-day rolling returns can be used to gauge market strength and assess over/underheated price action.
Values between 0% and -30% are typical negative returns during consolidation periods of relatively low volatility.
Values below -50% often occur at cyclical bottoms, and may represent value buying areas.
Values over 50% represent de-risking zones and are often met with profit-taking.
Values over 70% are historically high and represent a high potential for a macro reversal.
This indicator is also used to detect local top and local battom
Coined By
Permabull Niño
Fibo-AutoIt provides the fibonacci retracement levels refers to how many bar number counts which is given by user in options. There are fibonacci levels which help to see the levels.
MTF Swing Highs/LowsI designed this indicator out of necessity for the Market structure/Price action trading strategy I use.
I thought I'd share. :)
This indicator displays Swing Highs and Lows an 3 timeframes based on the Chart timeframe, as follows:
Chart TF Higher TF Highest TF
1m 5m 15m
5m 15m 60m
15m 60m 240m
60m 240m Daily
You can change the font size of the labels as you'd prefer.
Asia Reversal ZoneThis indicator shows the most likely time Asia session reverses it direction.
Designed for US30 scalps 30-100 points.
Focus on price and time that is key.
Remove Plot line.
Also check out "Deluxo Kill zones" my other indicator.
-Enjoy
Pre-Market levels for Futures This indicator draws the Pre-Market Low and High for futures. Futures do not really have "P.M" because they are almost always open, but I chart /ES and trade $SPY options, so this has been useful in finding P.M levels.
Rob Hoffman's 50/80/90/Price Trailing Stop LossA trailing stop loss method by Rob Hoffman.
Set your entry, TP, and SL.
Once price is 50% of its way to the TP, set your stop loss at the gray line.
Once price is 80% of its way to the TP, set your stop loss at the light gray line.
Once price is 90% of its way to the TP set your stop loss at the white line.
Abdul Rehman Trading StrategyBest Buy & Sell Indicator for Crypto, Forex and stocks. This indicator is based on Volume, RSI and current support and resistance.
Best Time Frame:
5 Minutes, 15 minutes
Long Positions:
You will see numbers appearing in Green Colour starting from 7,8 and then you can see the LONG position signal.
Short Position:
You will see numbers appearing in Red Colour starting from 7,8 and then SHORT Position Signal.
Important Note:
If you see the bearish trend in 4 hours time frame then always follow SHORT positions and if you see the bullish trend in 4 Hour time frame then always LONG positions.
Support/Resistance With Breaks & Bounces [MyTradingCoder]This script uses the built-in pivothigh/pivotlow functions to find and identify new levels of basic support and resistance. The script will also automatically identify the first occurrence of a bounce/rejection off the most recent green/red line as well as automatically identify the first occurrence of a breakout of the most recent green/red line. This is a very basic, but effective indicator that is well written, and open source for anyone to learn from or build off of.
All details needed to understand how to use the script are listed below. Enjoy!
Customizable inputs:
- Option to change how pivot points are calculated('candle body' or 'candle wicks')
- Option to change the sensitivity of the pivots(leftbars and rightbars linked)
- Option to change the line width
Available Alert Options:
- Red Line Breakout
- Red Line Bounce/Rejection
- Green Line Breakout
- Green Line Bounce/Rejection
User Manual:
- All calculations are done on the last update of the bar(candle close)
- Only 1 breakout will be allowed per line
- Only 1 rejection will be allowed per line
- If the text is red, then the signal is related to the 'red line', if the text is green, then the signal is related to the 'green line'
- The code is open source, and is programmed using arrays/loops out of the gate, despite not needing to do so. This allows for easy modifications to the scripts behavior while keeping the functionality without it breaking.
- Pivot Rightbars is hardcoded to the same value for leftbars(leftbars = sensitivity). Uncomment the input for right_bars if you want the ability to change the rightbars independently from the leftbars
- When a new line is identified, the old one will stop updating, and no longer be considered for breakout/rejections. This can be changed with a bit of pine knowledge by performing some slight modifications to the code.
- When a new line is drawn, the old line will move backwards a little bit for cleanliness/clarity purposes
- If you have any questions/comments/requests/concerns please leave them down in the comments below
- Don't forget to leave a like if you find this script useful
Support/Resistant Zone (Simple)The concepts of trading level support and resistance are undoubtedly two of the most highly discussed attributes of technical analysis.
Support is a price level where a downtrend can be expected to pause due to a concentration of demand or buying interest. As the price of assets or securities drops, demand for the shares increases, thus forming the support line. Meanwhile, resistance zones arise due to selling interest when prices have increased.
There are many ways to identify support and resistance zones. This indicator is a simple method to identify them. Support/Resistant zones will draw basing on the size of the wick for candles, which are Pivots High/Low before.
'last red low / last green high' exitThis is a good alternative to pivot points and ma lines to find long and short exit points (stop loss prices) for a trade.
When you hear traders say "set the stop loss to the recent swing", this indicator seems to do a reasonable job of finding those.
This script marks
the low of the most recent red candle
the high of the most recent green candle
in order to help identify a reasonable stop loss exit point for long and short trades.
You can also specify a distance threshold to the stop loss point.
How to use it.
Decide how far from the current price the exit should be (default 1.5%)
Use your chosen trading strategy to identify a long or short entry position
Add a long/short drawing to the close of the trade candle
Set the stop loos of your drawing to the exit line of this indicator
Set the take profit of your drawing using the desired risk to reward ratio
Note: A good rule is that if this indicator does not show a valid exit line, do not enter the trade.
Note: If the change of a new "last Green High" or the "last Red Low" is below 0.5%, the indicator will keep the previous values
Resistance/Support Indicator - FontiramisuIndicator showing resistances and support, based on pivots location
When a new pivot location is near from a resistance/support the latter gains weight.
You can modify multiple parameters :
Nb Max res/sup : Define the number max res/sup to keep in our res/sup history array. The greater it is the older bar index will be taken.
Nb show res/sup : Define the number of res/sup to be drawn.
Min weight shown : Define min res/sup weight to be shown. Weight is used to measure strengh of res/sup.
% range stack : Define price percentage change required to stack a pivot into an existing res/sup. Default is 0.015 = 1.5%.
Pivots are calculated with deviation parameter to validate with more precision.
Fontilab Library is used to code this indicator.
Trend Indicator (dow trending) - FontiramisuIndicator showing pivots and interpret a trend out of it.
Pivots are calculating with deviation parameter to validate with more precision.
Trending moves are calculated according to Dow Theory :
In an uptrend, if the price made a new high, the price must make a new high to confirm the trend, otherwise, it might signal a possible change in the trend.
In an uptrend, if the price made a new low, the price must make a new low to confirm the trend, otherwise, it might signal a possible change in the trend.
The indicator can show 2 trends with 2 different "Pivot Depth"
See indicator parameters.
Tab is display at the bottom right corner to show trend direction and if it is hesitating
Fontilab Library is used to code this indicator
High/Low/Open/Close Daily, Weekly, Monthly Line
I wrote this for the purpose of saving time while marking up charts by automating the process of drawing and labeling lines at areas of interest on larger
timeframes while still having the option to change the style and size of the lines and labels to adjust for any timeframe and avoid a messy chart.
I also used this as an exercise in menu organization giving users every imaginable option and producing clean readable code.
- This indicator draws a line on the Daily, Weekly, and Monthly bar at the High, Low, Open and Close of each bar as price
tends to react when revisiting these areas.
- Each set of bars has an optional identifying label with its own color set that can be shown with or without the lines
price value, and has drop down menus for size and style of each set of labels.
- Each set of lines has inputs for line/text color, line width and style, and can be hidden if the user doesn't have the need for any particular timeframe.
- Lines and Labels with delete when a new line is created.
- I recommend going into Chart Settings/Status Line and turning off indicator arguments OR moving the script to the top
of the indicator list to avoid an obstructed chart view with this indicators arguments. When Pine allows, I will update it to hide them.
Contains some public domain code from T.V. manuals and tutorial for creating drop down input menus for options.
/ ~For My Pal Jittery~
~ Who likes his clean chart and custom colors~