Simple Moving Average (SMA)
TMA Indicator v2.2This indicator is designed to show support and resistance at local extremes. Configurable SMA crossover events can be used to impart a bullish or bearish bias. This helps to reduce noise on the chart and increase profit factor. In other words, the indicator will only look for bullish breakouts if the fast moving average is above the slow moving average and vice-versa.
SMA Crossover events can be used to filter bullish or bearish resistance levels.
SMA Crossover events can be used to filter bullish or bearish breakout alerts.
Supports alerts for entries and exits based on breakouts of local extrema.
Alerts can be generated at every breakout or with SMA crossover filtering active.
Backtests would suggest that filtering with SMA crossovers often yields slightly lower profit but with a considerable improvement to profit factor.
Green/Red indicates long/short entry
Yellow/Orange indicates long/short exit
See here for an example backtest and visualization of active SMA signal filtering:
For paper trading only. Do not use on real markets. Never make investment decisions based on this indicator alone.
TMA Indicator v2.1This indicator is designed to show support and resistance at local extremes.
Indicator can be configured to filter out bullish vs bearish resistance levels based on configurable parameters.
Supports alerts for entries and exits based on breakouts of local extrema.
Green/Red indicates long/short entry
Yellow/Orange indicates long/short exit
Backtest window: Jan 1, 2015 - Jul 21, 2019 (today)
For paper trading only. Do not use on real markets. Never make investment decisions based on this indicator alone.
Crypto Investidor Setup Indicador Consiste em
EMAs Crypto Investidor - 17 / 34 / 72 / 100 / 200
MAs - 21 / 50 / 100 / 200
Bollinger Bands 2
Bollinger Bands 3
Crypto Investidor EMA e MA Crypto Investidor EMA e MA consiste em um conjunto de 4 EMAs de 21 / 50 / 100 / 200 períodos e também 4 MAs de 21 / 50 / 100 / 200, criado para facilitar o entendimento dos nossos seguidores, a ponto de poder verificar no gráfico tanto as Medias Móveis Exponenciais, quanto as Medias Móveis Simples. Um excelente indicador para quem utiliza o tradingview free.
Didi+EMA200+Bollinger Bands-FRAGAHelps those are using Basic Account / limited indicators
by Will Fraga
@traderzonebr
Angelleal Trading Suite v0.2.0This script is built to condense the main indicators or levels i use for my strategy.
Support & Resistance
Draws the support and resistance levels on the current timeframe, with labels for the latest S/R formed.
The levels change color to reflect a role reversal depending on price action.
The number of bars used to confirm the formation of a new S/R level are configurable, but the default values are:
30 bars to check before a new level
15 bars to check after a new level
5 bars used for early detection
Moving Averages
The script uses 3 Moving Averages to calculate trend direction and posible dynamic supports and resistances for the trend.
Aditionally a couple of bands are drawed around the Medium Length moving average in conjuction with the ATR to account for
the volatility of the instrument.
The default values for the moving averages are:
Short MA Length - 7
Medium MA Length - 30
Long MA Length - 360
ATR Multiplier for narrow band - 1.2
ATR Multiplier for wide band - 3.6
Note: Most of the default values are set taking into account the Daily timeframe and natural divisions in it such as weeks, months and years. These values work well in other timeframes but might be adjusted
to get a better fit to the desired market and timeframe
Double 7's StrategyStrategy described in the book "Short Term Trading Strategies that Work", written by Larry Connors and Cesar Alvarez.
It is the simplest strategy I know and has only 3 rules:
- Price must be above the arithmetic moving average of 200 periods.
- Buy when the price closes below the closing of the last 7 days.
- Sale when the price closes above the closing of the last 7 days.
Simple as it may seem, this strategy works very well in some stocks and/or graphical times (in some stocks it overcomes many RSI 2 strategies). It was developed for the daily chart and does not usually work well on weekly or monthly charts, but can be used for day trades if the back-test proves to be favorable.
If you want, you can change the input and output rules by setting other values for the input or output period and thus find more positive results for specific stocks.
There is no stop loss because in tests the stop loss usually reduces the gains of the strategy.
Good luck and good trades.
================================
Estrategia descrita no livro "Short Term Trading Strategies that Work", escrito por Larry Connors e Cesar Alvarez.
É a estratégia mais simples que eu conheço e tem apenas 3 regras:
- Preço deve estar acima da média móvel aritmética de 200 períodos.
- Compre quando o preço fechar abaixo do fechamento dos ultimos 7 dias.
- Venda quando o preço fechar acima do fechamento dos ultimos 7 dias.
Por mais simples que pareça, esta estratégia funciona muito bem em alguns papeis e/ou tempos gráficos (em alguns papeis a mesma supera muitas estratégias pelo IFR2). A mesma foi desenvolvida para o gráfico diário e normalmente não funciona muito bem em gráficos semanais ou mensais, mas pode ser utilizado no intraday caso o backtest se mostre favorável.
Caso você queira, é possível alterar a regra de entrada e saída definindo outros valores para o período de entrada ou saída e assim encontrar resultados mais positivos para cada papel.
Não existe stop loss pois nos testes normalmente o stop loss reduz os ganhos da estratégia.
Boa sorte e bons trades.
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)
[M10] Quad MA Trend ScalperFour adjustable moving averages set in order to produce buy and sell signals, works best on smaller timeframes from my backtesting, 10M - 30M seems optimal for scalping.
The idea behind this script is to only enter positions that are following the trend in order to minimise drawdown and decrease risk when using leverage.
The script will only enter long positions when MA crossover occurs above the Long MA 2.
The script will exit a long position when MA Short crosses below Long MA 1.
The script will only enter short positions when MA cross under occurs below the Long MA 2.
The script will exit a short position when MA Short crosses below Long MA 1.
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.