Fetch Buy And Hold StrategyThis script was created as an experiment using ChatGPT. I actually woudn't recommend using the ai program to help you with your Pinescripts, as it makes a fair amount of mistakes. It was a fun experiment however.
The script is a simple buy and hold tool. Here's what it does:
- Everytime the rsi enters below the set treshold, a counter increases.
- The second increase of the counter happens when the price goes above the treshold, and then dips below the treshold again.
- The program would fire off a buy signal when the counter hits the number 3.
- After the buy. the counter will reset.
Lets take a look at the following example where the rsi treshold is 30:
- So the rsi dips below 30 and the initial counter is set from 0 to 1.
- The price rises which brings the rsi back to 40.
- Then another dip happens and the rsi is now 25, increasing the counter from 1 two.
- Rsi now dips to 23 and nothing happens.
- Rsi goes back up to 31, and dips back to 28 which puts the counter at 3. A buy singal is now fired and the counter is set to 0.
Cerca negli script per "ai"
[UPRIGHT Trading] Volatility Trend Filter (VTF) AlgoHello Traders,
As some of you know, I have had this in Beta for a long while now and it's finally time for a full release.
I originally designed this to be an Unreal Algo add-on to track & stay in the trade a little better, but the VTF Algo has become a full Algorithm and can be used standalone with supreme accuracy.
It's for beginners and advanced traders alike. I've made the settings very customizable, but also easy to just jump right in.
How it works:
It uses volatility , deviations, and tons of statistical calculations, confirmations, moving averages, and filters to bring you the most accurate Supply & Demand predictive algorithm possible. The VTF Algo will automatically normalize different volatility in any type of market to help avoid getting Chopped up and give a forward-looking approach to accurate Price Action and confirmation. It will automatically show support and resistance in real-time. The channel that The VTF Algo creates will help traders confirm whether they should stay in the trade or get out fast. As the green top grows it naturally acts as Supply and as the red bottom grows it acts as Demand, when one of them far exceeds the other the direction price will proceed to is clear to see.
Features:
-Easy-to-read Price Action & Trend channel.
-Exceptional Chop Filter (grayed center).
-Accurate Buy/Sell and Topline Continuation Signals.
-Rejection Signals.
-Multiple-Timeframe Customizable Trend Table. Showing Directional Arrows (see bottom right of picture).
-Bullish / Bearish Growing Blocks.
-Fully Customizable with Clean and Cleaner Mode.
The VTF Algo was made with all different types of traders in mind.
Some like things Ultra Crispy Clean:
Others like things a little more clean but can move their focus to where it's needed:
Lastly, there are those who don't mind things looking a little busy:
Topline Continuation Signals, Auto-Supply/Demand, and a Real-Time Multiple Timeframe Trend Table (in the bottom-right) corner:
Meshes perfectly as an Algo Add-on for Unreal Algo © (as originally designed) to enhance "The Simple Strat" © :
I tried to make everything as customizable as possible. So adding or removing or color-changing is super easy.
Happy Trading.
Cheers,
Mike
Any Oscillator Underlay [TTF]We are proud to release a new indicator that has been a while in the making - the Any Oscillator Underlay (AOU) !
Note: There is a lot to discuss regarding this indicator, including its intent and some of how it operates, so please be sure to read this entire description before using this indicator to help ensure you understand both the intent and some limitations with this tool.
Our intent for building this indicator was to accomplish the following:
Combine all of the oscillators that we like to use into a single indicator
Take up a bit less screen space for the underlay indicators for strategies that utilize multiple oscillators
Provide a tool for newer traders to be able to leverage multiple oscillators in a single indicator
Features:
Includes 8 separate, fully-functional indicators combined into one
Ability to easily enable/disable and configure each included indicator independently
Clearly named plots to support user customization of color and styling, as well as manual creation of alerts
Ability to customize sub-indicator title position and color
Ability to customize sub-indicator divider lines style and color
Indicators that are included in this initial release:
TSI
2x RSIs (dubbed the Twin RSI )
Stochastic RSI
Stochastic
Ultimate Oscillator
Awesome Oscillator
MACD
Outback RSI (Color-coding only)
Quick note on OB/OS:
Before we get into covering each included indicator, we first need to cover a core concept for how we're defining OB and OS levels. To help illustrate this, we will use the TSI as an example.
The TSI by default has a mid-point of 0 and a range of -100 to 100. As a result, a common practice is to place lines on the -30 and +30 levels to represent OS and OB zones, respectively. Most people tend to view these levels as distance from the edges/outer bounds or as absolute levels, but we feel a more way to frame the OB/OS concept is to instead define it as distance ("offset") from the mid-line. In keeping with the -30 and +30 levels in our example, the offset in this case would be "30".
Taking this a step further, let's say we decided we wanted an offset of 25. Since the mid-point is 0, we'd then calculate the OB level as 0 + 25 (+25), and the OS level as 0 - 25 (-25).
Now that we've covered the concept of how we approach defining OB and OS levels (based on offset/distance from the mid-line), and since we did apply some transformations, rescaling, and/or repositioning to all of the indicators noted above, we are going to discuss each component indicator to detail both how it was modified from the original to fit the stacked-indicator model, as well as the various major components that the indicator contains.
TSI:
This indicator contains the following major elements:
TSI and TSI Signal Line
Color-coded fill for the TSI/TSI Signal lines
Moving Average for the TSI
TSI Histogram
Mid-line and OB/OS lines
Default TSI fill color coding:
Green : TSI is above the signal line
Red : TSI is below the signal line
Note: The TSI traditionally has a range of -100 to +100 with a mid-point of 0 (range of 200). To fit into our stacking model, we first shrunk the range to 100 (-50 to +50 - cut it in half), then repositioned it to have a mid-point of 50. Since this is the "bottom" of our indicator-stack, no additional repositioning is necessary.
Twin RSI:
This indicator contains the following major elements:
Fast RSI (useful if you want to leverage 2x RSIs as it makes it easier to see the overlaps and crosses - can be disabled if desired)
Slow RSI (primary RSI)
Color-coded fill for the Fast/Slow RSI lines (if Fast RSI is enabled and configured)
Moving Average for the Slow RSI
Mid-line and OB/OS lines
Default Twin RSI fill color coding:
Dark Red : Fast RSI below Slow RSI and Slow RSI below Slow RSI MA
Light Red : Fast RSI below Slow RSI and Slow RSI above Slow RSI MA
Dark Green : Fast RSI above Slow RSI and Slow RSI below Slow RSI MA
Light Green : Fast RSI above Slow RSI and Slow RSI above Slow RSI MA
Note: The RSI naturally has a range of 0 to 100 with a mid-point of 50, so no rescaling or transformation is done on this indicator. The only manipulation done is to properly position it in the indicator-stack based on which other indicators are also enabled.
Stochastic and Stochastic RSI:
These indicators contain the following major elements:
Configurable lengths for the RSI (for the Stochastic RSI only), K, and D values
Configurable base price source
Mid-line and OB/OS lines
Note: The Stochastic and Stochastic RSI both have a normal range of 0 to 100 with a mid-point of 50, so no rescaling or transformations are done on either of these indicators. The only manipulation done is to properly position it in the indicator-stack based on which other indicators are also enabled.
Ultimate Oscillator (UO):
This indicator contains the following major elements:
Configurable lengths for the Fast, Middle, and Slow BP/TR components
Mid-line and OB/OS lines
Moving Average for the UO
Color-coded fill for the UO/UO MA lines (if UO MA is enabled and configured)
Default UO fill color coding:
Green : UO is above the moving average line
Red : UO is below the moving average line
Note: The UO naturally has a range of 0 to 100 with a mid-point of 50, so no rescaling or transformation is done on this indicator. The only manipulation done is to properly position it in the indicator-stack based on which other indicators are also enabled.
Awesome Oscillator (AO):
This indicator contains the following major elements:
Configurable lengths for the Fast and Slow moving averages used in the AO calculation
Configurable price source for the moving averages used in the AO calculation
Mid-line
Option to display the AO as a line or pseudo-histogram
Moving Average for the AO
Color-coded fill for the AO/AO MA lines (if AO MA is enabled and configured)
Default AO fill color coding (Note: Fill was disabled in the image above to improve clarity):
Green : AO is above the moving average line
Red : AO is below the moving average line
Note: The AO is technically has an infinite (unbound) range - -∞ to ∞ - and the effective range is bound to the underlying security price (e.g. BTC will have a wider range than SP500, and SP500 will have a wider range than EUR/USD). We employed some special techniques to rescale this indicator into our desired range of 100 (-50 to 50), and then repositioned it to have a midpoint of 50 (range of 0 to 100) to meet the constraints of our stacking model. We then do one final repositioning to place it in the correct position the indicator-stack based on which other indicators are also enabled. For more details on how we accomplished this, read our section "Binding Infinity" below.
MACD:
This indicator contains the following major elements:
Configurable lengths for the Fast and Slow moving averages used in the MACD calculation
Configurable price source for the moving averages used in the MACD calculation
Configurable length and calculation method for the MACD Signal Line calculation
Mid-line
Note: Like the AO, the MACD also technically has an infinite (unbound) range. We employed the same principles here as we did with the AO to rescale and reposition this indicator as well. For more details on how we accomplished this, read our section "Binding Infinity" below.
Outback RSI (ORSI):
This is a stripped-down version of the Outback RSI indicator (linked above) that only includes the color-coding background (suffice it to say that it was not technically feasible to attempt to rescale the other components in a way that could consistently be clearly seen on-chart). As this component is a bit of a niche/special-purpose sub-indicator, it is disabled by default, and we suggest it remain disabled unless you have some pre-defined strategy that leverages the color-coding element of the Outback RSI that you wish to use.
Binding Infinity - How We Incorporated the AO and MACD (Warning - Math Talk Ahead!)
Note: This applies only to the AO and MACD at time of original publication. If any other indicators are added in the future that also fall into the category of "binding an infinite-range oscillator", we will make that clear in the release notes when that new addition is published.
To help set the stage for this discussion, it's important to note that the broader challenge of "equalizing inputs" is nothing new. In fact, it's a key element in many of the most popular fields of data science, such as AI and Machine Learning. They need to take a diverse set of inputs with a wide variety of ranges and seemingly-random inputs (referred to as "features"), and build a mathematical or computational model in order to work. But, when the raw inputs can vary significantly from one another, there is an inherent need to do some pre-processing to those inputs so that one doesn't overwhelm another simply due to the difference in raw values between them. This is where feature scaling comes into play.
With this in mind, we implemented 2 of the most common methods of Feature Scaling - Min-Max Normalization (which we call "Normalization" in our settings), and Z-Score Normalization (which we call "Standardization" in our settings). Let's take a look at each of those methods as they have been implemented in this script.
Min-Max Normalization (Normalization)
This is one of the most common - and most basic - methods of feature scaling. The basic formula is: y = (x - min)/(max - min) - where x is the current data sample, min is the lowest value in the dataset, and max is the highest value in the dataset. In this transformation, the max would evaluate to 1, and the min would evaluate to 0, and any value in between the min and the max would evaluate somewhere between 0 and 1.
The key benefits of this method are:
It can be used to transform datasets of any range into a new dataset with a consistent and known range (0 to 1).
It has no dependency on the "shape" of the raw input dataset (i.e. does not assume the input dataset can be approximated to a normal distribution).
But there are a couple of "gotchas" with this technique...
First, it assumes the input dataset is complete, or an accurate representation of the population via random sampling. While in most situations this is a valid assumption, in trading indicators we don't really have that luxury as we're often limited in what sample data we can access (i.e. number of historical bars available).
Second, this method is highly sensitive to outliers. Since the crux of this transformation is based on the max-min to define the initial range, a single significant outlier can result in skewing the post-transformation dataset (i.e. major price movement as a reaction to a significant news event).
You can potentially mitigate those 2 "gotchas" by using a mechanism or technique to find and discard outliers (e.g. calculate the mean and standard deviation of the input dataset and discard any raw values more than 5 standard deviations from the mean), but if your most recent datapoint is an "outlier" as defined by that algorithm, processing it using the "scrubbed" dataset would result in that new datapoint being outside the intended range of 0 to 1 (e.g. if the new datapoint is greater than the "scrubbed" max, it's post-transformation value would be greater than 1). Even though this is a bit of an edge-case scenario, it is still sure to happen in live markets processing live data, so it's not an ideal solution in our opinion (which is why we chose not to attempt to discard outliers in this manner).
Z-Score Normalization (Standardization)
This method of rescaling is a bit more complex than the Min-Max Normalization method noted above, but it is also a widely used process. The basic formula is: y = (x – μ) / σ - where x is the current data sample, μ is the mean (average) of the input dataset, and σ is the standard deviation of the input dataset. While this transformation still results in a technically-infinite possible range, the output of this transformation has a 2 very significant properties - the mean (average) of the output dataset has a mean (μ) of 0 and a standard deviation (σ) of 1.
The key benefits of this method are:
As it's based on normalizing the mean and standard deviation of the input dataset instead of a linear range conversion, it is far less susceptible to outliers significantly affecting the result (and in fact has the effect of "squishing" outliers).
It can be used to accurately transform disparate sets of data into a similar range regardless of the original dataset's raw/actual range.
But there are a couple of "gotchas" with this technique as well...
First, it still technically does not do any form of range-binding, so it is still technically unbounded (range -∞ to ∞ with a mid-point of 0).
Second, it implicitly assumes that the raw input dataset to be transformed is normally distributed, which won't always be the case in financial markets.
The first "gotcha" is a bit of an annoyance, but isn't a huge issue as we can apply principles of normal distribution to conceptually limit the range by defining a fixed number of standard deviations from the mean. While this doesn't totally solve the "infinite range" problem (a strong enough sudden move can still break out of our "conceptual range" boundaries), the amount of movement needed to achieve that kind of impact will generally be pretty rare.
The bigger challenge is how to deal with the assumption of the input dataset being normally distributed. While most financial markets (and indicators) do tend towards a normal distribution, they are almost never going to match that distribution exactly. So let's dig a bit deeper into distributions are defined and how things like trending markets can affect them.
Skew (skewness): This is a measure of asymmetry of the bell curve, or put another way, how and in what way the bell curve is disfigured when comparing the 2 halves. The easiest way to visualize this is to draw an imaginary vertical line through the apex of the bell curve, then fold the curve in half along that line. If both halves are exactly the same, the skew is 0 (no skew/perfectly symmetrical) - which is what a normal distribution has (skew = 0). Most financial markets tend to have short, medium, and long-term trends, and these trends will cause the distribution curve to skew in one direction or another. Bullish markets tend to skew to the right (positive), and bearish markets to the left (negative).
Kurtosis: This is a measure of the "tail size" of the bell curve. Another way to state this could be how "flat" or "steep" the bell-shape is. If the bell is steep with a strong drop from the apex (like a steep cliff), it has low kurtosis. If the bell has a shallow, more sweeping drop from the apex (like a tall hill), is has high kurtosis. Translating this to financial markets, kurtosis is generally a metric of volatility as the bell shape is largely defined by the strength and frequency of outliers. This is effectively a measure of volatility - volatile markets tend to have a high level of kurtosis (>3), and stable/consolidating markets tend to have a low level of kurtosis (<3). A normal distribution (our reference), has a kurtosis value of 3.
So to try and bring all that back together, here's a quick recap of the Standardization rescaling method:
The Standardization method has an assumption of a normal distribution of input data by using the mean (average) and standard deviation to handle the transformation
Most financial markets do NOT have a normal distribution (as discussed above), and will have varying degrees of skew and kurtosis
Q: Why are we still favoring the Standardization method over the Normalization method, and how are we accounting for the innate skew and/or kurtosis inherent in most financial markets?
A: Well, since we're only trying to rescale oscillators that by-definition have a midpoint of 0, kurtosis isn't a major concern beyond the affect it has on the post-transformation scaling (specifically, the number of standard deviations from the mean we need to include in our "artificially-bound" range definition).
Q: So that answers the question about kurtosis, but what about skew?
A: So - for skew, the answer is in the formula - specifically the mean (average) element. The standard mean calculation assumes a complete dataset and therefore uses a standard (i.e. simple) average, but we're limited by the data history available to us. So we adapted the transformation formula to leverage a moving average that included a weighting element to it so that it favored recent datapoints more heavily than older ones. By making the average component more adaptive, we gained the effect of reducing the skew element by having the average itself be more responsive to recent movements, which significantly reduces the effect historical outliers have on the dataset as a whole. While this is certainly not a perfect solution, we've found that it serves the purpose of rescaling the MACD and AO to a far more well-defined range while still preserving the oscillator behavior and mid-line exceptionally well.
The most difficult parts to compensate for are periods where markets have low volatility for an extended period of time - to the point where the oscillators are hovering around the 0/midline (in the case of the AO), or when the oscillator and signal lines converge and remain close to each other (in the case of the MACD). It's during these periods where even our best attempt at ensuring accurate mirrored-behavior when compared to the original can still occasionally lead or lag by a candle.
Note: If this is a make-or-break situation for you or your strategy, then we recommend you do not use any of the included indicators that leverage this kind of bounding technique (the AO and MACD at time of publication) and instead use the Trandingview built-in versions!
We know this is a lot to read and digest, so please take your time and feel free to ask questions - we will do our best to answer! And as always, constructive feedback is always welcome!
Waves CorrectionsWave theory tool for tracking waves relations and their corrections. It filters out a sets of formations and count how often correction from them are reaching characteristic correction levels marked on the chart as CL1, CL2, CL3.
It supports 2 rulesets/wave variants:
Low - Based on more sensitive trend detection.
Medium - Based on less sensitive trend detection.
Script settings:
| SCANNER |
Trend type - Trend used by scanner to detect sets of waves.
L - Low
M - Medium
<= W1/W2 * 100% <= - Tresholds describing proportions between 1 and 2 wave in the set.
<= W3/W1 * 100% <= - Tresholds describing proportions between 3 and 1 wave in the set.
<= W3/W2 * 100% <= - Tresholds describing proportions between 3 and 2 wave in the set.
Show potencial areas - Showing underway sets
Show Arrows - Showing arrows with possible correction on underway set.
Correction from trend UP - Background and border colors for found sets in up trends
Correction from trend Down - Bakcground and border colors for found sets in down trends.
History - Showing sets in historic data.
Stats - Type of statistic table shown on the screen:
H - Hide
% - Statistics with normal font
%s - Statistics with small font
Wn n= - Picking how many waves are taken into account when calculating statistics .
| TREND VISUALIZATION |
Type - Trend visualization types:
H - Hidden
L - Low
M - Medium
B - Both
Alfred - AI assistant that informs about wave confirmation or trend changes (With "Both" type Alfred will monit only Medium wave).
Shadow - Showing second reprezentation of the trend with drawing with the use of minimal and maximal values. It's usefull to determine the delay between the peak and a wave change signal.
Low/Med Line width/color - Width/color of drawn line. Separate setting for Low and Medium trend type.
| IMPULS VISUALIZATION |
Impuls - Drawing impuls modes:
H - Hidden
F - First
S - Second
A - Auto
Impuls color - Color of the first bullish arrow.
Draw arrow - Drawing arrow at the end of the first bullish arrow.
Troubleshooting:
In case of any problems, send error details to the author of the script.
Relative Strength Index modifierJ'ai rajouter quelque ligne pour les ventes et achat pour notre stratégie
Smart Money BusterAfter daytrading for a while i came into conclusion that price action trading is the most successful way to trade for me and this project was for me to simplify my way of trading at the beginning. Eventually it got big and turned into a very useful helper indicator for me to setup on different pairs for alerts and only look at the charts to decide for entry when the alerts come from 120 different pairs that i set it up. Since i always looked at indicators for a way to make my job simpler and give me more time to do more important things for me rather than drawing lines on different pairs eveyday i think it got to a point where it works to my liking and making me gain time, thus more money.
This indicator uses smart money concepts like Market Structure, Order Blocks, Quassimodo Levels, Structure Breaks, Pumps and Dumps, Imbalances(In the works will be added in first update) to help trader catch what the whales are thinking and how to enter in the right time for swing trading, catching bottoms and tops.
Here are some of the features as of release:
Detects Market Structure and draws zig-zag lines and keeps note of pivot points.
Detects Order blocks and draws boxes when the conditions met
Detects the quassimodo levels and changes the color of the box to signal double confluence meaning stronger signal
Draws structure break lines
Setting to set structure break percentage before drawing boxes to get the boxes drawn if you want to be more 'sure' about the Order Block Levels.
Setting to change depth and backstep values for zigzags to be able to let you fit the system for different time frames.
Setting to set MSB trigger point between High and Low, Close and Open or hl2 values.
Setting to set Signal Triggering Range between Start, Middle and End meaning eg. if you set it to Middle it will wait for MSB trigger point to hit the middle of the box before giving you a signal.
Setting for changing HH-LL pivot points lookback count, 5 as default. Increasing this value will make you compare your pivot points with more data, really useful in lower time frames where will be a lot of zig-zags and highs and lows giving you a method to avoid false signals. Recommended to keep it lower values on 30 min and higher and increase it in lower Timeframes according to market volatility.
Setting to add a Box limit where the box of order block will be set invalid after certain candles and it still didn't trigger. Default value of 0 means it's disabled.
Setting to set Candle volatility percentage value to avoid big candles getting opposite signals on fast pump or dump schemes and bust those market makers schemes. Gotta say this came out really handy in crypto markets :)
As an end you can set alerts for 'Buy' , ' Sell ', ' Buy and Sell' together or if you wish you can connect it to bots via webhook as an entry. Although haven't connected to any bots myself as i think the best method of trading is human and machine working together. Since we have the creativity and out of the box thinking and machines have the ability to brute force calculation and huge bandwith that we don't currently have. At least until Elon Musk turns is into a cyborg, which i am not very eager about.
Planned Features:
- Add ability to detect imbalances(fair value gaps) to add third confluence to detect dragon fruit entries. This will make the system work with triple confluence.
- Add more settings so humans can command the ai better.
- Maybe a strategy version after i write my own dynamic take profit algorithm to give system ability make quantitative decisions based on current position profit levels.
- Although i think i fixed almost all the important bugs if there ever comes up one bugs will take priority for updates.
- And some things i may decide to add later. I will keep working on this project since it works well for me.
And like always, happy trading.
Scalping The BullNome: Scalping The Bull (Indicatore)
Categoria: Scalping, Trend Following, Mean Reversion.
Timeframe: 1M, 5M, 30M, 1D, secondo la conformazione specifica.
(follow description in english)
Analisi tecnica: l’indicatore supporta le operatività descritte nei video di YouTube del canale “Scalping The Bull”. Di norma si basa su price action e medie mobili esponenziali.
Le varie tecniche che possono essere usate insieme all’indicatore sono sintetizzate nei settaggi dell’indicatore e si può fare riferimento ai video specifici per la spiegazione completa.
Utilizzo consigliato: Altcoin che presentano forti trend per scalping e operazioni intra-day.
Configurazione: È possibile configurare lo strumento in maniera semplice e completa.
Medie:
Medie per mercato: e’ possibile utilizzare le medie mobili esponenziali (EMA) esclusivamente per il mercato Crypto (5/10/60/223).
Media addizionale: e’ possibile visualizzare una media aggiuntiva, e.g. a 20 periodi.
Elementi del grafico:
Sfondo: segnala con lo sfondo del grafico in verde una situazione di uptrend ( EMA 60 > EMA 223) e in rosso sfondo rosso una situazione di downtrend (EMA 60 < EMA 223).
Separatori di sessioni: indica l’inizio della sessione corrente.
Punti Trigger:
Massimi e minimi di oggi: disegna sul grafico il prezzo di apertura della candela daily e i massimi e i minimi di giornata.
Massimi minimi di ieri: disegna sul grafico il prezzo di apertura della candela daily, i massimi e i minimi del giorno prima.
(English description)
Name: Scalping The Bull (Indicator)
Category: Scalping, Trend Following, Mean Reversion.
Timeframe: 1M, 5M, 30M, 1D depending on the specific signal.
Technical Analysis: The indicator supports the operations described in the YouTube videos of the channel "Scalping The Bull". Usually it is based on price action and exponential moving averages.
The various techniques that can be used in conjunction with the indicator are summarized in the indicator settings and you can refer to the specific videos for the full explanation.
Suggested usage: Altcoin showing strong trends for scalping and intra-day trades.
Configuration:
Exponential Moving Averages
Per market: you can display averages exclusively for the Crypto market (5/10/60/223).
Additional Average: You can display an additional average, e.g. 20-period average.
Chart elements:
Session Separators: indicates the beginning of the current session.
Background: signals with the background in green an uptrend situation ( 60 > 223) and in red background a downtrend situation (60 < 223).
Trigger points:
Today's highs and lows: draw on the chart the opening price of the daily candle and the highs and lows of the day.
Yesterday's highs and lows: draw on the chart the opening price of the daily candle, the highs and lows of the previous day.
[k4d] DCA SniperFrench text below / Texte en Français plus bas
TL;DR
DCA Sniper is an indicator that tells you the perfect time to do DCA, the bottoms areas are indicated by red bars, the buy signal is given when a yellow bar appears.
"DCA Sniper" aims to help you make DCA (Dollar Cost Average) smarter.
Instead of buying your cryptos at a regular rate, this script will send you an alert at an opportune moment when the prices are touching, or are close to, a bottom.
The script works on several time intervals, the smaller the interval the more signals you will get...
so you can try with several time slots and choose the one that gives you the best signals for your strategy.
How to use this indicator
The indicator scans the price evolution in real time and displays grey bars
When it detects a potential bottom, the bars become darker
When the bottom is near, the bars turn red
Finally, when a potential bottom is detected, a yellow bar is displayed => it's time to buy
Warning:
Since the indicator works in real time, a bar can change color as long as the current candle is not closed. A yellow bar may very well turn red and thus cancel the signal. So wait for the close before making a decision.
Settings
This version of the indicator has only two settings:
Use Candlesticks filter: If this box is checked, the script will try to eliminate false signals based on candlestick patterns.
Use LinReg filter: If this box is checked, the script uses the "LinReg length" value to apply a linear regression and filters out all bottoms that fall within a standard deviation of the linear regression.
Before using DCA Sniper
This indicator was not developed for trading, although it can give good potential entries.
If you use it for trading, please manage your risk well and share your feedback :)
====================================================================
Résumé
DCA Sniper est un indicateur qui vous indique le moment parfait pour faire du DCA, les zones de bottoms sont indiquée par des barres rouges, le signal d'achat est donné lorsqu'une barre jaune apparait.
"DCA Sniper" a pour objectif de vous aider à faire du DCA (Dollar Cost Average) plus intelligement
Au lieu d'acheter vos crypto à un rythme régulier, ce script va vous envoyer une alerte à un moment opportun ou les prix touchent, ou sont proches, d'un bottom.
Le script fonctionne sur plusieurs intervals horaires, plus l'interval est petit plus vous aurez des signaux ...
vous pouvez donc essayer avec plusieurs tranches horaires et choisir celle qui vous donnent les meilleurs signaux pour votre stratégie.
Comment utiliser cet indicateur
L'indicateur scan l'évolution des prix en temps réel et affiche des barres grises
Lorsqu'il détecte une zone de bottom potentiel, les barres deviennent plus foncées
Lorsque le bottom est proche les barres deviennent rouges
Enfin, lorsqu'un bottom potentiel est détecté, une barre jaune s'affiche => c'est le moment d'acheter
Attention
Puisque l'indicateur fonctionne en temps réel, une barre peut changer de couleur tant que la bougie actuelle n'est pas cloturée. Une barre jaune peut très bien devenir rouge et annule donc le signal. Il faut donc attendre la cloture avant de prendre une décision.
Réglages
Cette version de l'indicateur propose seulement deux réglages :
Use Candlesticks filter : Si cette case est cochée, le script va essayer d'éliminer des faux signaux en se basant sur des patterns de bougies.
Use LinReg filter : Si cette case est cochée, le script utilise la valeur "LinReg length" pour appliquer une regression linéaire et filtre tous les bottoms qui se retrouvent au sein d'une déviation standard de la régression linéaire.
Avant d'utiliser DCA Sniper
Cet indicateur n'a pas été développé pour faire du trading, bien qu'il puisse donner de bonnes entrées potentielles.
Si vous l'utilisez pour du trading, gérer bien votre risque et partagez vos retours :)
Bitcoin Risk Long Term indicatorOBJECTIVE:
The purpose of this indicator is to synthesize via an average several indicators from a wide choice with in order to simplify the reading of the bitcoin price and that on a long term vision.
Useful for those who want to see things simply, typically to make a smart DCA based on risk.
I originally used this script as a sandbox to understand and test the usefulness of several indicators, and to develop my PineScript skills, but finally the Risk Indicator output seems relevant so I decided to share it.
USAGE:
The selected indicators are the ones that I think give the best market bottoms, but the idea here is that anyone can try and use any set of indicators based on those preferences (post in comments if you find a relevant config)
Most of the indicator inputs are configurable. And some are not taken into account in the calculation of the Risk indicator because I consider them not relevant, this script is also a test more than a final version.
NOTES :
If you have any idea of adding an indicator, modification, criticism, bug found: share them, it is appreciated!
In the future I will create another more versatile Risk indicator that will not be focused on bitcoin in weekly. (this indicator is still usable on other assets and timeframe)
THANKS:
to Benjamin Cowen for inspiring me with his Bitcoin Risk metric
to Lazybear for his Wavetrend Indicator and all the scripts he shares
to Mabonyi for his Bitcoin Logarithmic Growth Curves & Zones script
to VuManChu for his VMC Cypher B Divergence
to the Trading view team for developing TV and PineScript
And to all the community for all the published codes that allowed me to progress and create this script
---- FR ----
OBJECTIF :
L'objectif de cet indicateur est de synthétiser via une moyenne plusieurs indicateurs parmi un large choix avec afin de simplifier la lecture du cours de bitcoin et cela sur une vision longue terme.
Utile pour ceux qui veulent voir les choses simplement, typiquement faire un DCA intelligent en fonction du risque.
À la base j'ai utilisé ce script comme un bac à sable pour comprendre puis tester l'utilité de plusieurs indicateurs, et développer mes compétences PineScript, mais finalement l'output Risk Indicateur me semble pertinent donc autant le partager.
UTILISATION :
Les indicateurs sélectionnés sont ceux qui permettent selon moi d'avoir les meilleurs point bas de marché, mais l'idée ici est que chacun puisse essayer et utiliser n'importe quel ensemble d'indicateur en fonction de ces préférences (poster en commentaire si vous trouvez une configuration pertinente)
La plupart des inputs indicateurs sont paramétrables. Et certains ne sont pas pris en compte dans le calcul du Risk indicateur car je les estime non pertinent, ce script est aussi un essai plus qu'une version finale.
NOTES :
Si vous avez la moindre idée d'ajout d'indicateur, modification, critique, bug trouvé : partagez-les, c'est apprécié !
à l'avenir je créerais un autre Risk indicator plus polyvalent qui ne sera pas focalisé sur bitcoin en weekly. (cet indicateur est tout de même utilisable sur d'autre actif et timeframe)
REMERCIEMENT :
à Benjamin Cowen pour m'avoir inspiré avec son Bitcoin Risk metric
à Lazybear pour son Wavetrend Indicator et globalement tout les scripts qu'il partage
à Mabonyi pour son script Bitcoin Logarithmic Growth Curves & Zones
à VuManChu pour son VMC Cypher B Divergence
à l'équipe Trading view pour avoir développé TV et PineScript
Et à toute la communauté pour tous les codes publiés qui m'ont permis de progresser et de créer ce script
WavesTrend visualization tool in Wave theory. Unlike Elliot waves, it has a constant pattern length. The formation consists of impulse and 3 corrections.
The script analyzes candle relationships in the currect trend, trend will be continueted until candle are not breaking trend rules.
Currently it supports 2 rulesets/wave variants:
Low - More sensitive (trend will change more ofter).
Meddium - Less sensitive ( trend will change less ofter).
Simultaneous observation of both types allows to detect consolidation before the overlapping movement and increase the probability of indicating the moment of the movement occurrence.
Trend visualization tools is a starting point that can be conected with different technics, to achive better performance.
"Waves" is the primary script of the Waves script series with test free period that consists of:
- Waves + XABCD
- Waves + ZOOnes
- Waves Change Signals
- ... and more in developement.
Features:
- Show Low and Middle type/order waves
- Draw both Wave types at once.
- Shadow mode that show second wave moved to the wave max/min bars.
- "Alfred" assist - Label notifications about trend confirmations or changes.
Script settings:
Trend visualization
Type - Trend visualization types:
H - Hidden
L - Low
M - Medium
B - Both
Alfred - AI assistant that informs about wave confirmation or trend changes (With "Both" type Alfred will monit only Medium wave).
Shadow - Showing second reprezentation of the trend with drawing with the use of minimal and maximal values. It's usefull to determine the delay between the peak and a wave change signal.
Low/Med Line width/color - Width/color of drawn line. Separate setting for Low and Medium trend type.
Impuls visualization
Impuls - Drawing impuls modes:
H - Hidden
F - First
S - Second
A - Auto
Impuls color - Color of the first bullish arrow.
Draw arrow - Drawing arrow at the end of the first bullish arrow.
Extensions
Waves + XABCD - Showing base information about Waves + XABCD script
Waves + ZOOnes - Showing base information about Waves + ZOOnes script
Waves Change Signals - Showing based information about Waves Change Signals script.
more in developement...
Troubleshooting:
In case of any problems, send error details to the author of the script.
Strategy LinReg ST@RLStrategy LinReg ST@RL
Strategy LinReg ST@RL is a visual trend following indicator.
It is compiled in PINE Script Version V5 language.
This indicator/strategy, based on Linear Regression Calculation, is intended to help beginners (and also the more experienced ones) to trade in the right direction of the market trend and test strategy. It allows you to avoid the mistakes of always trading against the trend.
Strategy based on an original idea of @KivancOzbilgic (SuperTrend) and DevLucem (@LucemAnb) (Lin Reg ++)
A special credit goes to - KivancOzbilgic and @LucemAnb which inspired me a lot to improve this indicator/Strategy.
This indicator can be configured to your liking,according to your needs or your tastes.
The indicator/Strategy works in multi time frame.
The settings (length, offset, deviation, smoothing) are identical for all time frames if “Conf Auto” is not checked.
In this case the default settings (time frame=H1 settings) apply for all time frames.
The choice of source setting is common for all time frames.
If “Auto Conf” is checked,
then the settings will be optimized for each selected time frame (1m-3m H2 H3 H1 H4 & Daily). Time frames, other than 1m-3m H2 H3 H1 H4 & Daily will be affected with the default settings corresponding to the H1 time frame and will therefore not be optimized! The default setting values of each time frame (1m-3m H2 H3 H1 H4 & Daily) can be configured differently and optimized by you.
REVERSAL mode: Signal Buy=Sell and Signal Sell=Buy.
This option may be better than the regular strategy. Default mode is Reversal option.
Note that only for 1m (1 minute) Time frame, the option REVERSAL is opposite as default choice in configuration. (If reversal option is checked, then option for time frame 1m is not reversal!)
Trend indications (potential sell or buy areas) are displayed as a background color (bullish: green or bearish: red), assume that the market is moving in one direction.
You can tune the input, style and visibility settings to match your own preferences or habits.
Label Info (Simple or Full) gives trend info for each Exit (or current trade)
The choice of indicator colors is suitable for a graph with a "dark" theme, which you will probably need to modify for visual comfort, if you are using a "Light" mode or a custom mode.
This script is an indicator that you can run on standard chart types. It also works on non-standard chart types but the results will be skewed and different.
Non-standard charts are:
• Heikin Ashi (HA)
• Renko
• Kagi
• Point & Figure
• Range
As a reminder: No indicator is capable of providing accurate signals 100% of the time. Every now and then, even the best will fail, leaving you with a losing deal. Whichever indicator you base yourself on, remember to follow the basic rules of risk management and capital allocation.
BINANCE:BTCUSDT
! Français !
Strategy LinReg ST@RL
Stratégie LinReg ST@RL est un indicateur visuel de suivi de tendance.
Il est compilé en langage PINE Script Version V5.
Stratégie basée sur une idée originale de @KivancOzbilgic (SuperTrend) et DevLucem (@LucemAnb) (Lin Reg ++) Un crédit spécial va à - KivancOzbilgic et @LucemAnb qui m'ont beaucoup inspiré pour améliorer cet indicateur/stratégie.
Cet indicateur/strategie, basé sur le calcul de régression linéaire, est destiné à aider les débutants (et aussi les plus expérimentés) à trader dans le bon sens de la tendance du marché et à tester la stratégie. Cela vous permet d'éviter les erreurs de toujours négocier à contre-courant.
Cet indicateur peut être configuré à votre guise, selon vos besoins ou vos goûts.
L'indicateur/Stratégie fonctionne sur plusieurs bases de temps.
Les réglages (longueur, décalage, déviation, lissage) sont identiques pour toutes les bases de temps si
« Conf Auto » n'est pas coché. Dans ce cas, les paramètres par défaut (intervalle de temps=paramètres H1) s'appliquent à toutes les bases de temps.
Le choix du réglage de la source est commun à toutes les bases de temps.
Si "Auto Conf" est coché, alors les paramètres seront optimisés pour chaque base de temps sélectionnée (1m-3m H2 H3 H1 H4 & Daily). Les bases de temps, autres que 1m-3m H2 H3 H1 H4 & Daily seront affectées par les paramètres par défaut correspondant à la base de temps H1 et ne seront donc pas optimisées ! Les valeurs de réglage par défaut de chaque période (1m-3m H2 H3 H1 H4 & Daily) peuvent être configurées différemment et optimisées par vous.
Mode REVERSAL : Signal Achat=Vente et Signal Vente=Achat. Cette option peut être meilleure que la stratégie habituelle. Le mode par défaut est l'option REVERSAL.
Notez que seulement pour la base de temps de 1m (1 minute), l'option REVERSAL est l’opposée du choix par défaut dans la configuration. (Si l'option REVERSAL est cochée, alors l'option pour la base de temps 1 m n'est pas REVERSAL !)
Les indications de tendance (zones potentielles de vente ou d'achat) sont affichées en couleur de fond (haussier : vert ou baissier : rouge), supposons que le marché évolue dans une direction. Vous pouvez ajuster les paramètres d'entrée, de style et de visibilité en fonction de vos propres préférences ou habitudes.
Les informations sur l'étiquette (simples ou complètes) donnent des informations sur de chaque clôture (ou position en cours)
Le choix des couleurs des indicateurs est adapté à un graphique avec un thème "sombre", qu'il vous faudra probablement modifier pour le confort visuel, si vous utilisez un mode "Clair" ou un mode personnalisé.
Ce script est un indicateur que vous pouvez exécuter sur des types de graphiques standard. Cela fonctionne également sur les types de graphiques non standard, mais les résultats seront faussés et différents.
Les graphiques non standard sont :
• Heikin Ashi (HA)
• Renko
• Kagi
• Point & Figure
• Range
Pour rappel : Aucun indicateur n'est capable de fournir des signaux précis 100% du temps. De temps en temps, même les meilleurs échoueront, vous laissant avec une affaire perdante. Quel que soit l'indicateur sur lequel vous vous basez, rappelez-vous de suivre les règles de base de la gestion des risques et de l'allocation du capital.
Tesla Coil MLThis is a re-implementation of @veryfid's wonderful Tesla Coil indicator to leverage basic Machine Learning Algorithms to help classify coil crossovers. The original Tesla Coil indicator requires extensive training and practice for the user to develop adequate intuition to interpret coil crossovers. The goal for this version is to help the user understand the underlying logic of the Tesla Coil indicator and provide a more intuitive way to interpret the indicator. The signals should be interpreted as suggestions rather than as a hard-coded set of rules.
NOTE: Please do NOT trade off the signals blindly. Always try to use your own intuition for understanding the coils and check for confluence with other indicators before initiating a trade.
Unreal Algo [UPRIGHT] (cc)Hello Traders,
It's finally that time, I'm releasing my baby out into the world.
Unreal Algo is the answer to the question you didn't know you were asking.
It's for beginners and advanced traders alike. I've made the settings very customizable, but also easy to just jump right in.
How it works:
It uses tons of calculations, confirmations, and filters to bring you the most accurate predictive algorithm possible. The algo will automatically adjust to different volatility in the market to still provide accurate signals and confirmation. It will automatically show support and resistance in real-time. A Moving Average cloud with speeds varying from extra fast to slow; they will help traders confirm whether they should stay in the trade. Also, I added 2 stoplosses, because the importance of risk management should always be emphasized even with strong accuracy.
Features:
---The Most Accurate Signals on the planet.
--------Buy/Sell, Up/Down direction change, and Red/Green arrows.
--- MA cloud with beautiful color blend that can act as a confirmation of direction.
-------- 17 different types/versions of moving Averages to choose from.
--------Easy line transparency and toggle adjustments.
--------Easy cloud transparency adjustments.
--- Support and Resistance .
--- Advanced PSAR that will show red when bearish while in a bullish trend, and visa-versa.
---Potential Orderblocks that can be extended to show a grid (adding additional support/resistance information).
--- Fibonacci Lines.
--- Pivot bar that changes colors based on pivot direction.
---Resistance Breakout and Support Breakdown Signals .
--- Relative volume & momentum bar coloring.
---Two Separate Stoplosses .
--------Circles change color and flip to top and red for Short, bottom and green for long.
--------Horizontal stoploss that tracks the price and flags to take profit. White for Long and Yellow for short.
---As always... Fully customizable .
Different customization options:
Without stoplosses and Support/Resistance.
Without Support/Resistance, arrows and psar removed.
Added back Support/Resistance, lightened MA cloud
Fully loaded (minus trailing stoploss)
MoonFlag AI Cloud (JWTainsh)This is a cloud that is based on a novel overshoot algo and also provides a 'central line' which represents to some degree an average moving in the direction of the trade (as indicated by the cloud).
Most indicators are based on moving averages which lag the price action.
This indicator uses a predictive overshoot algo that is different to a moving average. The algo overshoots the price action by following momentum. The cloud is made from multiple overshoot algo's all at different lengths (number of lookback bars).
In comparison to a moving average, the moving average will never give a reading greater than the price action in an up-trend. A moving average will lag the price action and eventually the price will come down and intersect with the moving average. In this overshoot algo (that forms the cloud), the parts of the algo with the shorter length will shoot way above the price action as the uptrend weakens.
The cloud is made from multiple overshoots algo's all with a different length. So when an uptrend weakens, the overshoot algo's with the longer length will still be below the price action and the price action will dip below the base of cloud - thus indicating an end to the uptrend - and possibly the start of a downwards momentum if the price action persists into the red.
So, when the price action dips below the cloud, it forms a line whereby below the line the cloud is colored red - indicating a possible downturn in the trend as the up momentum has receded. There is still a green part to the cloud above the lower line, as the up momentum could re-establish if the price action stays about the red.
Similarly, if in a down trend (price action in a red part of the cloud) and the price action breaks above the top of the cloud, the cloud will go green - until the price action falls below the cloud again.
There is also a half-way average line (although this is not entirely correct - it does describe what the mid-line does with some understanding). This mid-line only moves up when in an upward momentum. Similarly, the mid-line only moves down in a down momentum. Its interesting to see when the price action crosses the mid-line as this can indicate a change in momentum early on.
For example, if the price action remains above the mid-line, this can show a pump is still in progress.
If the price action just bounces above the cloud, then below, then above - it means the could length is not great enough - and the price action is probably governed more by RSI on a relatively fast timeframe.
When the cloud gets thin - this generally means the price action is in line with a steady momentum and has been for a while. This can be thought of as all the moving averages converging and this sometimes can indicate a biggish move is about to happen (and thus throw the cloud into a wider state - and get all the traders excited).
I started coding this cloud when trying to intersect with the start of shorts or to locate the end of a long trend cycle. Shorts generally happen on a faster timeframe than longs so I generally use separate cloud timeframes (or lengths) for longs or shorts.
I also find that market conditions change considerably every few weeks or months - so the cloud is best reliable on recent data.
Also use in conjunction with other indicators such as OCC, 1D ATR Trend or VRSI/MACD Confluence - as this is a predictive indicator based on price action overshoot from momentum information. This is not - a moving average - this cloud does not lag price action - it kind of predicts where the price action will go if the present momentum remains - and then detects when a change in this momentum occurs due to price action intersection.
Please get in touch for more information or, if you would like to see the webhooks bot strategy I linked to the code.
Sincerely,
Moonflag (Josef Tainsh PhD)
Vertical LinesThis script plots vertical lines on charts or indicators. Unfortunately pinescript is lacking a vertical line plotting function. Vertical lines are useful to mark events, such as crossover of levels, indicators signals or as a time marker.
After searching the internet for a long time and trying different scripts, this script is the simplest and visually the best. You would think that plotting a vertical line would be relatively easy, it is not! I thank the unknow author for sharing this solution and now I will share it on tradingview to make it readily available to anybody that needs it.
RSI crossover signals are used as an example in this script. When the RSI crosses over 70 or below 30, the script plots a red or green vertical line.
The script plots a vertical line as a histogram bar. The histogram bar must have a height.
Setting the height near infinity like 1e20 will cover all the ranges from top to bottom in most charts, but doesn't work all the time. If the chart range is small in values, the line is not plotted or the chart is visually compressed because the top of the bar is also a data point in the chart. Another solution is to find the highest point in the chart and multiply it by a number from 2 to 10 to set the top of the histogram bar. But this solution doesn't work if the line is drawn in the indicator window. additionally if the chart or indicator includes negative values, a histogram bar with a negative height must be concatenated to the histogram bar with a positive height to cover the positive and negative range.
It would seem intuitive to include a vertical plot function since it is very useful and pinescript already has a horizontal line plot function called Hline. But pinescript is becoming less intuitive, and redundant. A case in point is Version 4 variable declaration and naming, it less intuitive and more redundant than previous versions. I beg Tradingview to adopt a more refined scripting language such as Matlab or Python for charting purposes. These languages can be easily ported to other analysis programs for AI or statistical analysis.
FunctionNNLayerLibrary "FunctionNNLayer"
Generalized Neural Network Layer method.
function(inputs, weights, n_nodes, activation_function, bias, alpha, scale) Generalized Layer.
Parameters:
inputs : float array, input values.
weights : float array, weight values.
n_nodes : int, number of nodes in layer.
activation_function : string, default='sigmoid', name of the activation function used.
bias : float, default=1.0, bias to pass into activation function.
alpha : float, default=na, if required to pass into activation function.
scale : float, default=na, if required to pass into activation function.
Returns: float
FunctionNNPerceptronLibrary "FunctionNNPerceptron"
Perceptron Function for Neural networks.
function(inputs, weights, bias, activation_function, alpha, scale) generalized perceptron node for Neural Networks.
Parameters:
inputs : float array, the inputs of the perceptron.
weights : float array, the weights for inputs.
bias : float, default=1.0, the default bias of the perceptron.
activation_function : string, default='sigmoid', activation function applied to the output.
alpha : float, default=na, if required for activation.
scale : float, default=na, if required for activation.
@outputs float
MLActivationFunctionsLibrary "MLActivationFunctions"
Activation functions for Neural networks.
binary_step(value) Basic threshold output classifier to activate/deactivate neuron.
Parameters:
value : float, value to process.
Returns: float
linear(value) Input is the same as output.
Parameters:
value : float, value to process.
Returns: float
sigmoid(value) Sigmoid or logistic function.
Parameters:
value : float, value to process.
Returns: float
sigmoid_derivative(value) Derivative of sigmoid function.
Parameters:
value : float, value to process.
Returns: float
tanh(value) Hyperbolic tangent function.
Parameters:
value : float, value to process.
Returns: float
tanh_derivative(value) Hyperbolic tangent function derivative.
Parameters:
value : float, value to process.
Returns: float
relu(value) Rectified linear unit (RELU) function.
Parameters:
value : float, value to process.
Returns: float
relu_derivative(value) RELU function derivative.
Parameters:
value : float, value to process.
Returns: float
leaky_relu(value) Leaky RELU function.
Parameters:
value : float, value to process.
Returns: float
leaky_relu_derivative(value) Leaky RELU function derivative.
Parameters:
value : float, value to process.
Returns: float
relu6(value) RELU-6 function.
Parameters:
value : float, value to process.
Returns: float
softmax(value) Softmax function.
Parameters:
value : float array, values to process.
Returns: float
softplus(value) Softplus function.
Parameters:
value : float, value to process.
Returns: float
softsign(value) Softsign function.
Parameters:
value : float, value to process.
Returns: float
elu(value, alpha) Exponential Linear Unit (ELU) function.
Parameters:
value : float, value to process.
alpha : float, default=1.0, predefined constant, controls the value to which an ELU saturates for negative net inputs. .
Returns: float
selu(value, alpha, scale) Scaled Exponential Linear Unit (SELU) function.
Parameters:
value : float, value to process.
alpha : float, default=1.67326324, predefined constant, controls the value to which an SELU saturates for negative net inputs. .
scale : float, default=1.05070098, predefined constant.
Returns: float
exponential(value) Pointer to math.exp() function.
Parameters:
value : float, value to process.
Returns: float
function(name, value, alpha, scale) Activation function.
Parameters:
name : string, name of activation function.
value : float, value to process.
alpha : float, default=na, if required.
scale : float, default=na, if required.
Returns: float
derivative(name, value, alpha, scale) Derivative Activation function.
Parameters:
name : string, name of activation function.
value : float, value to process.
alpha : float, default=na, if required.
scale : float, default=na, if required.
Returns: float
MLLossFunctionsLibrary "MLLossFunctions"
Methods for Loss functions.
mse(expects, predicts) Mean Squared Error (MSE) " MSE = 1/N * sum ((y - y')^2) ".
Parameters:
expects : float array, expected values.
predicts : float array, prediction values.
Returns: float
binary_cross_entropy(expects, predicts) Binary Cross-Entropy Loss (log).
Parameters:
expects : float array, expected values.
predicts : float array, prediction values.
Returns: float