단순 이동 평균 (SMA)
Pinescript v3 Compatibility Framework (v4 Migration Tool)Pinescript v3 Compatibility Framework (v4 Migration Tool)
This code makes most v3 scripts work in v4 with only a few minor changes below. Place the framework code before the first input statement.
You can totally delete all comments.
Pros:
- to port to v4 you only need to make a few simple changes, not affecting the core v3 code functionality
Cons:
- without #include - large redundant code block, but can be reduced as needed
- no proper syntax highlighting, intellisence for substitute constant names
Make the following changes in v3 script:
1. standard types can't be var names, color_transp can't be in a function, rename in v3 script:
color() => color.new()
bool => bool_
integer => integer_
float => float_
string => string_
2. init na requires explicit type declaration
float a = na
color col = na
3. persistent var init (optional):
s = na
s := nz(s , s) // or s := na(s ) ? 0 : s
// can be replaced with var s
var s = 0
s := s + 1
___________________________________________________________
Key features of Pinescript v4 (FYI):
1. optional explicit type declaration/conversion (you still can't cast series to int)
float s
2. persistent var modifier
var s
var float s
3. string series - persistent strings now can be used in cond and output to screen dynamically
4. label and line objects
- can be dynamically created, deleted, modified using get/set functions, moved before/after the current bar
- can be in if or a function unlike plot
- max limit: 50-55 label, and 50-55 line drawing objects in addition to already existing plots - both not affected by max plot outputs 64
- can only be used in the main chart
- can serve as the only output function - at least one is required: plot, barcolor, line, label etc.
- dynamic var values (including strings) can be output to screen as text using label.new and to_string
str = close >= open ? "up" : "down"
label.new(bar_index, high, text=str)
col = close >= open ? color.green : color.red
label.new(bar_index, na, "close = " + tostring(close), color=col, textcolor=color.white, style=label.style_labeldown, yloc=yloc.abovebar)
// create new objects, delete old ones
l = line.new(bar_index, high, bar_index , low , width=4)
line.delete(l )
// free object buffer by deleting old objects first, then create new ones
var l = na
line.delete(l)
l = line.new(bar_index, high, bar_index , low , width=4)
SMA Stochastic ForecastThis tool uses a discrete-time non-Markovian Martingale stochastic process (Please do not confuse with the strategy of the same name) under the hood to forecast a future (up to 28 bars, customizable) behaviour of the Simple Moving Average. The longer the average period, the more accurate the forecast.
The common cases are the next:
You can apply two instances of this indicator to your chart to obtain a crossover forecast
You can decrease an interval between forecasts to obtain a bunch of possible traectories
Decreasing a forecast interval for two instances, you will get the Kraken
This is the further improvement of my research work on forecasting
Mr. @syrinxflunki was the only one who provided a clear and useful feedback after testing, so he get a free lifetime access. I respect a fair play.
If you have any questions you can concat me via private messages.
Good luck.
EMAS Signal DXHello all,
Vs2 of EMAS Signal Double Cross indicator that plots 5 EMA lines and 4 SMA .
Features:
-Signals are represented visually as a triangle on the chart.
-Also represented visually as bar color on the chart.
-When SMA and EMA 1 cross - a Long signal is called if SMA cross above EMA 1, a short if the cross is below EMA 1.
-When EMA 2 and EMA 3 cross - a Long signal is called if EMA 2 cross above EMA 3, a short if the cross is below EMA 3.
-You can activate and deactivate the triangles and the color of the bars.
That’s it, happy pips!
Ultimate Average 3.0Purple = Actual average price over total timeframe.
Other lines are factors above the actual average.
A pattern emerges where the purple is hit, then a parabolic rise to the blue top, then the a drawback down to the orange, then parabolic, then drawback to yellow, then parabolic to blue, then a reset back to the purple line.
VWMA/SMA Breakout and Divergence DetectorThis indicator compares four different values :
-Fast Simple Moving Average(SMA)
-Fast Volume Weighted Moving Average(VWMA)
-Slow SMA
-Slow VWMA
Comparing SMA's and VWMA's of the same length is a common trading tactic. Since volume is not taken into consideration when calculating Simple Moving Averages, we can gain valuable insights from the difference between the two lines.
Since volume should be increasing along with an upwards price movement, the VWMA should be greater than the SMA during a volume-supported uptrend. Thus, we can confirm an uptrend if the VWMA remains greater than the SMA. If the VWMA falls under the SMA in the midst of an upwards price movement, however, that indicates bearish divergence. The opposite is true for downtrends. If price is decreasing and volume is decreasing at the same time (as it should), then we can confirm the downtrend.
Interpreting the Graph:
If the slow SMA is greater than the slow VWMA, then the area representing the difference between the two lines is filled in red. If the slow VWMA is greater than the slow SMA, however, the area between the two is filled green.
If the fast SMA is greater than the fast VWMA, then the area between the two dotted lines is filled in red. On the other hand, the area will be filled green if the fast VWMA is greater than the slow SMA.
In addition to spotting divergences and confirming trends, the four lines can be used to spot breakouts. Typically, a VWMA crossover will precede the SMA crossover. When the fast VWMA crosses over the slow VWMA and then a SMA crossover follows shortly after, then it is a hint that a bullish trend is beginning to form.
Moving Averages + VWAPA moving average (MA) is a widely used indicator in technical analysis that helps smooth out price action by filtering out the “noise” from random short-term price fluctuations. It is a trend-following, or lagging, indicator because it is based on past prices.
The two basic and commonly used moving averages are the simple moving average (SMA), which is the simple average of a security over a defined number of time periods, and the exponential moving average (EMA), which gives greater weight to more recent prices.
The most common applications of moving averages are to identify the trend direction and to determine support and resistance levels.
Script includes
4 EMA
5 EMA
8 EMA
9 EMA
13 EMA
20 EMA
20 SMA
21 EMA
34 EMA
50 EMA
50 SMA
55 EMA
200 SMA
The volume weighted average price (VWAP) is a trading benchmark used by traders that gives the average price a security has traded at throughout the day, based on both volume and price. It is important because it provides traders with insight into both the trend and value of a security.
VWAP + VWAP bands
Adaptive Moving AveragesThis script is able to adaptively show different moving averages, depending on the timeframe.
The default values are:
-8 weekly EMA
-20,50,100 and 200 SMA
-4 hourly 50 EMA
-Hourly 50 EMA
-15 minutes 20 SMA
These moving averages are the ones I use the most, and were originally covered in a video by Financial Freedom (Nasir Jones) called " HOW TO USE MOVING AVERAGES- BTC CASE STUDY" (Highly recommended).
Feel free to change the default values. Also, if you don't want to show certain moving averages, go to style and just untick the visibility checkbox of the ones you don't want to see.
3-day Death/Golden CrossBased on Crypto Crew University youtube video, "Emergency Update: New Bitcoin GOLDEN Cross Emerges (btc crypto live news market price today 2019 ta" (19 June 2019), comparing 2015 and 2018 bull runs.
SMA X RSI - by @CryptoMrDavis -Another script that might be useful for your trading setup.
It use RSI and two SMA's.
Happy trading
+++ use this tool on your own risk. i'm not responsible for your loses +++
Show some ❤
____________________________________________________________________________
BTC: 1GVRDK3HHr9CKM5SF2CGpCNXFuavB3L4j9
ETH: 0x7b825fa752b9926D3E8397cDb1d9E5473D074646
XMR: 41zL2SQS7zyZmwXKng2TeUWsMi5vMmkgSdDCjULUTvM6ichwm1E2ZDEYGt56zk9ghoM9bekhjycSwa8amtTcB2JiUet5jtg
NEO: AXja5xPDhczfm2ujHyBfpkQAAnMsXsazmb
ZEC: zcZzFkRx95cp7MtuW8wLhC5zz5RYF9QkT2uPPmhZZHc6ppXepHGgCSeAS1rtD6WFdqsM5p1gZm2gfirnrnviucsdP4aCpqU
XLM: GAXUQJSW55C7MAC4GI26NZUGIKSHFDVFRFKZCXPLMPY4HCADSDT55XK6
WAVES: 3PCMkNpMHxSraTCkwV1ENcBKa9sXbVCGjQX
BCH: qz57n04ud6mn42u00aymqkku8tfh0lk4jv9c28mjvv
____________________________________________________________________________
++++ cryptotradingresource.com ++++
____________________________________________________________________________
(ง ͠° ͟ل͜ ͡°)ง Larry Connors RSI-2 Scalping StrategyMore info here:
stockcharts.com
and here:
systemtradersuccess.com
Very interesting and simple scalping strategy with unbelievable results.
I added 4 versions that combines only the RSI OB/OS thresholds.
Also the single variable that you can change is the RSI, sometimes RSI 3 or RSI 4 works better then the original.
Also his exit point is not quite good in these days, so I added TP and SL to adjust it according to the market conditions.
Added re-entries.
It works in any time frame, so play with the TF, RSI and with all 4 variants until it fits to your needs.
Enjoy!
Zekis
EMAS Signal Double CrossHello all,
This is a simple indicator that plots 5 EMA lines and 1 SMA .
Signal of crossing SMA with EMA , signal of crossing EMA with EMA .
Features:
-Signals are represented visually as a triangle on the chart.
-Also represented visually as bar color on the chart.
-When SMA and EMA 1 cross - a Long signal is called if SMA cross above EMA 1, a short if the cross is below EMA 1.
-When EMA 2 and EMA 3 cross - a Long signal is called if EMA 2 cross above EMA 3, a short if the cross is below EMA 3.
-You can activate and deactivate the triangles and the color of the bars.
That’s it, happy pips!
---------------------------------------------------------
Hola a todos,
Este es un indicador simple que grafica 5 líneas EMA y 1 SMA .
Señal de cruce SMA con EMA , señal de cruce EMA con EMA .
Caracteristicas:
-Las señales se representan visualmente como un triángulo en el gráfico.
-También se representa visualmente con color de barra en el gráfico.
-Cuando SMA y EMA 1 se cruzan: se coloca una señal larga si la SMA se cruza de abajo hacia arriba de la EMA 1, un corto si el cruce está de arriba hacia abajo de la EMA 1.
-Cuando EMA 2 y EMA 3 se cruzan: una señal larga se coloca si la EMA 2 cruza de abajo hacia arriba la EMA 3, un corto si el cruce está de arriba hacia abajo de la EMA 3.
-Puede activar y desactivar los triángulos y el color de las barras.
¡Eso es todo, felices pips!
Mayer Multiple | SMA Line Indicator [AJ]Inspired by Trace Mayer's 200 Day SMA cryptocurrency valuation method
I take no credit for the formula used to calculate the Mayer Multiple or the Mayer Multiple itself
For use with the Mayer Multiple Histogram Indicator which gives a visual of this line indicator
This line indicator should be used for setting alerts.
Mayer Multiple Histogram [AJ]Mayer Multiple Histogram Indicator | Customized by AJ Robertson
@Version=2
I take no credit for the actual formula used to calculate the Mayer Multiple or the Mayer Multiple itself.
For use with Mayer Multiple Line Indicator
The histogram helps give a visual representation while the line indicator is used to set alerts
I've set an additional optimal buy color which is the Mayer Multiple at or below 0.7 as this is optimal accumulation threshold
Also set an optimal sell color (red) which is the Mayer Multiple at or above 3.5
Color Coding
Red (Hist) = Optimal Sell
Red (Line) = Backtesting threshold
Orange = Overvalued
Gray = Hold
Green (dark) = Undervalued
Lime (light green) = Optimal Accumulation Zone
Relative Strength Comparison (RSC) Indicator SignalsThis Relative Strength Comparison (RSC) indicator overlays a simple moving average (SMA) of the prior days values and changes color when the RSC crosses above and below that value as an indicator with bearish and bullish signals in comparison to another symbol.
Rate of Change w/ Moving AverageThis is a small spin on the Rate of Change (ROC) indicator where I overlay a simple moving average of the indicator over the prior days.
Multi Time Moving Averageпозволяет выбрать в настройках 2 таймфрейма и 4 МА с разными периодами и отображать выбранные индикаторы на графиках с любым выбранным таймфреймом