Candlestick Analysis SOL/USDT Hello Trading Community...
Ive been working on a factual analysis for some time now, it paints a PB text when a candle doesn't close lower than the previous 3,4,5.
As I am new to trading and pine scripts its a very basic script which seems to work when in AOI (Area of Interest) such as Support, lower channel trendline and near 50/100EMA when in an uptrend.
HTF fractals hold more strength and I tend to go with the HTF's and to alert the time of confirmation candle (which is when a either the 2nd or 3rd candle closes higher than the high of the PB)
This on its own doesn't hold weight and I like to see this as a poker game, the stronger my hand is, the more I am inclined to play the hand.
Your feedback would be most appreciated .
Pinescript
One divergence indicator to rule them allGreetings Traders,
We are continuing with our (mini) series in which we break down the (seemingly endless) features of The Divergent indicator.
Today we are going to discuss the various oscillators The Divergent supports detecting divergences on.
In contrast to other divergence indicators on TradingView, The Divergent comes with oscillators built-in. This means you won't have to add it on top of other indicators on your chart; it is completely standalone. Why is that a good thing? It is because The Divergent respects your indicator quota - it will only use up a single slot on your chart.
The Divergent ships with the following oscillators:
MACD (Moving Average Convergence Divergence)
RSI (Relative Strength Index)
CMF (Chaikin Money Flow)
Stochastic RSI
MFI (Money Flow Index)
TCI (Trading Channel Index, aka. WaveTrend)
Balance of Power
CCI (Commodity Channel Index)
Awesome Oscillator
Each oscillator is fully customisable, allowing you to tweak them the way you desire. To choose another oscillator, simply open The Divergent 's settings panel, and select a different one from the list.
A further benefit of having the oscillators built into the indicator, is that it opens up the possibility to apply various filters to the detected divergences. For example, if you have the RSI selected, you can configure The Divergent to only signal those RSI divergences, that manifest under the oversold or above the overbought areas. These filters will be introduced in detail in future articles.
To learn more about The Divergent , please see the related ideas linked at the bottom.
If you liked this post, please don't forget to give it a thumbs up!
If you have any questions, please feel free to ask in the comments section below.
Thank you for your attention!
How to send Divergence signals to your Discord server- Do you have a Discord server set up for your own trading community?
- Do you use divergences as part of your trading strategy?
- Would you like to send automated notifications to your Discord server whenever a divergence appears on any chart?
If you have answered yes to all 3 questions above, please keep on reading.
The easiest way to receive automated Divergence alerts to your Discord server, is to combine the alert messages from "The Divergent" divergence indicator on TradingView with a Webhook endpoint on your Discord server.
Step 1: Open Discord, and go to Server Settings
Step 2: Go to Integrations and create a new Webhook
Step 3 (optional): Rename your Webhook to "The Divergent (Divergence indicator)"
Step 4: Select the channel you wish to receive the divergence signals to (i.e. #divergence-signals)
Step 5: Save your Webhook
Step 6: Copy your Webhook URL to your clipboard and head over to TradingView
Step 7: Apply "The Divergent" or "The Divergent (Pro)" indicator to your chart and configure it as you prefer (The free version of The Divergent can signal Regular Divergences only, while the Pro version can signal both Regular and Hidden Divergences)
Step 8: Create a new alert, select "The Divergent" from the top drop down and select one of the Divergence signals (i.e. Regular Bullish)
Step 9: Use the Webhook URL from your clipboard as the Webhook URL of the alert
Step 10: Use the following alert message:
{"content": "The Divergent detected a Regular Bearish Divergence (RSI) on {{exchange}}:{{ticker}} ({{interval}}) @TradingView #divergence $BTC "}
Sample message delivered on Discord:
"The Divergent detected a Regular Bearish Divergence (RSI) on BINANCE:BTCUSDT (60) @TradingView #divergence $BTC"
Feel free to change the content to match your chart / type of divergence you are signalling in the alert.
Note : It is important that you format your alert message as a JSON string, and that you key the message with "content". If you have never used JSON before, it is a good idea to validate your message via jsonlint.com to make sure it is a valid JSON string.
Repeat the same steps for other charts / divergences. Create as many alerts, as many markets / divergences you want to signal to your Discord server.
If you have any questions, please feel free to post it in the comments section below.
If this tutorial was helpful to you, please consider giving it a thumbs up!
Thank you!
The easiest way to use divergences in your own Pine strategiesDetecting divergences in a Pine indicator / strategy is easy.
You simply have to compare the pivot lows and the pivot highs on the price and the oscillator, and if you can identify a difference between the last & previous pivots made on the price and the oscillator, you have likely found a divergence.
Using this theory, here is an example how you would detect a Regular Bearish divergence:
While the theory of divergence detection is simple, more often than not, things go wrong (the divergence indicator used in the example below is TradingView's built-in Divergence Indicator ):
Would you identify this as a divergence? If not, why not? Is it because the divergence line is slicing through the candles? Or because the line is slicing through the oscillator? Or something else?
Wouldn't it be great if somehow you could filter out invalid divergences from code, such as this one?
We at Whitebox Software were wondering about the same thing, and decided to find a solution to this problem. This is when we realised that while detecting divergences is easy, detecting valid divergences is hard...
After several months in development, we are proud to present to you our divergence indicator called The Divergent .
The Divergent is an advanced divergence indicator with over 2500 lines of Pine Script, exposing over 30 different configuration options, including 9 built-in oscillators, to allow you to tweak every aspect of divergence detection to perfection.
For example, the Line of Sight™ filter in The Divergent would have easily filtered out this invalid divergence above. The Line of Sight™ filter will notice any interruption to the divergence line connecting the price or the oscillator, and will treat the divergence as invalid.
This filter is one of many, which has been created to reduce the false positive detections to a minimum. (In later publications, we will discuss each and every filter in detail).
Alright, so The Divergent knows how to detect accurate divergences, but how is it going to help you detect divergences in your own Pine strategy?
The Divergent is not simply a divergence indicator - it can also emit divergence signals * which you can catch and process in your own strategy. You can think of The Divergent being a DaaS ( D ivergences a s a S ervice)!
* Please note, that divergence signals is a Pro only feature.
To use the signals, simply place The Divergent onto the same chart you have your strategy on, import "The Divergent Library" into your code, link your strategy to The Divergent using a "source" input, and act on the signals produced by The Divergent !
Here is a simple strategy which incorporates divergence signals produced by The Divergent in its entry condition. The strategy will only open a position, if the moving average cross is preceded by a regular bullish or bearish divergence (depending on the direction of the cross):
//@version=5
strategy("My Strategy with divergences", overlay=true, margin_long=100, margin_short=100)
import WhiteboxSoftware/TheDivergentLibrary/1 as tdl
float divSignal = input.source(title = "The Divergent Link", defval = close)
var bool tdlContext = tdl.init(divSignal, displayLinkStatus = true, debug = false)
// `divergence` can be one of the following values:
// na → No divergence was detected
// 1 → Regular Bull
// 2 → Regular Bull early
// 3 → Hidden Bull
// 4 → Hidden Bull early
// 5 → Regular Bear
// 6 → Regular Bear early
// 7 → Hidden Bear
// 8 → Hidden Bear early
//
// priceStart is the bar_index of the starting point of the divergence line drawn on price
// priceEnd is the bar_index of the ending point of the divergence line drawn on price
//
// oscStart is the bar_index of the starting point of the divergence line drawn on oscillator
// oscEnd is the bar_index of the ending point of the divergence line drawn on oscillator
= tdl.processSignal(divSignal)
bool regularBullSignalledRecently = ta.barssince(divergence == 1) < 10
bool regularBearSignalledRecently = ta.barssince(divergence == 5) < 10
float slowSma = ta_sma(close, 28)
float fastSma = ta_sma(close, 14)
longCondition = ta.crossover(fastSma, slowSma) and regularBullSignalledRecently
if (barstate.isconfirmed and longCondition and strategy.position_size == 0)
strategy.entry("Enter Long", strategy.long)
strategy.exit("Exit Long", "Enter Long", limit = close * 1.04, stop = close * 0.98)
shortCondition = ta.crossunder(fastSma, slowSma) and regularBearSignalledRecently
if (barstate.isconfirmed and shortCondition and strategy.position_size == 0)
strategy.entry("Enter Short", strategy.short)
strategy.exit("Exit Short", "Enter Short", limit = close * 0.96, stop = close * 1.02)
plot(slowSma, color = color.white)
plot(fastSma, color = color.orange)
One important thing to note, is that TradingView limits the number of "source" inputs you can use in an indicator / strategy to 1, so the source input linking your strategy and The Divergent is the only source input you can have in your strategy. There is a work around this limitation though. Simply convert the other source inputs to have a string type, and use a dropdown to provide the various sources:
string mySource = input.string("My source", defval = "close", options = )
float sourceValue = switch mySource
"close" => close
"open" => open
"high" => high
"low" => low
=> na
---
This is where we are going to wrap up this article.
We hope you will find the signals produced by The Divergent a useful addition in your own strategies!
For more info on the The Divergent (Free) and The Divergent (Pro) indicators please see the linked pages.
If you have any questions, don't hesitate to reach out to us either via our website or via the comment section below.
If you found value in this article please give it a thumbs up!
Thank you!
POW Edge Reversal is HERE 🚀🚀🚀🚀🚀🚀🚀We've been sharing ideas on this strategy for quite some time now as part of our 'forward testing' approach and log.
In this video, I run through the strategy, how it works and how it can help.
Everything we do at POW is based on 'proof it works' - this is no different and you'll see this in the data I run through for you.
Any questions about gaining access please drop me a DM on here.
This just shows how powerful Pine script is - to automate a strategy and confirm you have an edge in the market.
Removing stress, decisions, overwhelm and all of the emotional struggles trading can bring.
Let me know in the comments what you think please - be nice right 😅?
Please scroll through some of my previous ideas to see some trades in action.
Regards
Darren
Slow progress on the DOGE Coin.While new ideas are great, it is also important to follow up with any results. Here in accordance with the slow move and due to pressure, we traced a new trend line. That, show the little progress and again, pressure as a resistance. We then understand, that it is also important to look for a watch of a break of some kind, when it will happen. The more sell signals shown, the more resistance, the opposite for support.
For educational purposes only and not intended a financial advice of any kind.
What DOGE coin was up to, today.On this 15 min chart, we can see how DOGE Coin has been moving a little lower. Also, its volume, where buyers and sellers take action, so the chart shows up that reaction to the marker. We can assign warnings or positions to take accordingly.
For educational purposes only and not intended as a financial advice of any kind.
A "Welcome to" Pinescript coding, Part 3In this lesson, the third in the series, I'll show you how to write a "non-overlay" script.
These sit below or above the price chart. They are best for cases where the values the indicator generates are nowhere near the price.
Trying to plot a value of 100 on a chart where the price is 42,000 is pretty pointless, after all!
A long term analysis of SATSUSDSATSUSD is clearly in a down trend. The last uptrend line has been broken. Currently, the SATSUSD is consolidating in this channel and soon price is likely to go down more. Wait for the breakout of the channel in the red zone. Look at the SATSUSD on the Pine table containing more indicators for further analysis.
Trend analysis of SATSUSD by Dow theoryFor SATSUSD, as the last Higher Low has been broken on the weekly timeframe, we can say that it is a clear sign of the trend reversal. I am expecting that there will be more downward pressure for the price action at important Fib levels, creating new Lower Highs and Lower Lows.
DAILY TF LOOKING TO BREAK LG. S TRIANGLEstill in a bearish bias but looking to go long if candle closes above s.triangle or will stay short if candle closes below s. triangle, im using a new strategy that i have worked very hard in building "M.E.T.S" (Moody Elder Tory Strategy) im using 3-4 indicators/scripts each by (Chris moody) (Alexander Elder) and (Tory) indicators like (macd) (rsi) (atr) (psar) (super trend) both (divergence macd and rsi) (tops/bottoms) (Elder impulse) using a 15-ema trend candles, the trading rules are simple, everything is color coded to be bulls/black and bears/red, when 5 out of my 10 indicators signal red/black i will look to take that position trade in that trend bull or bear /short or long, drawing my own support/resistance and using the (vpvr) and draw technical analysis patterns like (s. triangles) (falling/rising wedges) (double/triple tops/bottoms) ect.. and using a linear regression channel trend lines i will look for breaks of structure, break from a pattern and try to only take trades at a value structure , i use the (atr) to calculate my take profits and stop losses taking into account the next support/resistance or dynamic moving average oe EMA , im also looking for ema crosses, im looking for more confirmation as each of my 10 signal indicators (macd) (rsi) both (divergences) (psar) (super trend) (impulse) all signals not only to help me take trade but confirmation in my tech analysis, i have made up the simple rules and in order to take trade i have to follow these strict rules, also using risk management, risk/reward ratio, and never no higher leverage then 15X that seems to be the sweat spot with being able to stick to the ATR average true range calculations in order not to get stomped out , liquidated or stop hunted by the fraudulent tactics the exchanges use, im looking to add 1 more indicator to my arsenal of indicators/scripts that trading-view has to offer which are some great ones from the pros in our community and i thank them and my hat goes off to there contributions to our trading community and there value is priceless to our trading strategy s , im looking to have a new pine script built by (Racer8) he is a 20 year old prodigy in coding/script building in our community and he may be very young and new to our community he has already added much value in his ideas with a couple interesting scripts like his (probability) script that gives you probability on hitting your stop loss or take profit so i asked him yesterday if we could reverse the code and use it to see the probability of winning the trade position vs stop loss/take profits, i see there being so much more value using the script indicator for that so i asked him if we or he could reverse the coding , i tried myself by just reversing the colors ect.. but mathematically im not sure if the probability would be accurate since im not a coder or script builder myself with no coding/script background, im waiting for his answer now. anyway let me know if u think u see more value in such a indicator/script and u want to learn more about my new strategy that im front testing now with real capital since backtesting did very well, thanks
SHA256BITTRADER
Why trading with Pine script can give you an extra month a year!I've spent around 9/10 years trading with technical analysis.
I used to spend 2/3 hours on a weekend and easily 1/2 hours each day on the screen - that doesn't include the amount of times I'd be checking from my phones on and off throughout the day too!
So add that all up - its 620-700 hours per year.
Frightening.
We trade for freedom and time - not to spend that time looking at a chart.
Well, in my opinion anyway.
A month is 720 hours - so pretty much an extra month a year.
Crazy right?
Fed up, I created a systematic approach.
This video highlights how my systematic strategy works vs. how you would see the markets technically on the last GJ sell.
Pinescript makes all this easier too, I have data at the click of a button!
Any questions feel free to drop me a DM.
Thank you,
Darren.
BNBBIDR - Long Position (16/03/2021)This is based on what I have learned on my failed setup (linked below).
I have lower my target profit.
It's not a good risk reward ratio, but we will see.
Btw, I have wrote my own pinescript to detect pin bar candlestick hehe.
Testing out simple algorithm - HUSADay 1 - This stock was found using the following rules
1) price under 15
2) volume over 200k
3) price above 50 sma
4) price above 200 sma
5) float under 50M
6) relative volume over 3 *
Testing out if those inputs equate to favourable outputs
Holding period - not determined in the set of rules, testing how the rules react first