Hello, this script was made upon the request of aliergin63, one of my followers.
I do not know exactly from whom it is quoted. (It may be author HighProfit.)
Long position when 8 dema is over 20 dema and 63 dema,
it opens a short position for the vice versa.
Alarms have been added.
%0.1 comission added.
Note : DEMA = Double Exponential Moving Average
Diamante - Uma estratégia simples utilizando médias móveis
Retirado do Livro: Análise Técnica dos Mercados Financeiros, Flávio Lemos.
A estratégia do diamante é um setup simples, baseado em médias móveis, e voltado a operadores de médio/longo prazo. A base do sistema são duas médias aritméticas: Uma de 50 e outra de 200 períodos.
O método do...
Very simple indicator script to display multiple simple moving averages. I know others have made this but they often are too feature-rich and can get cluttered.
Can optionally show a cross when MA 1 crosses MA 3. These are colors such that when MA 1 crosses BELOW MA 3 a red cross is shown, and green when crossing above.
type: pine series basic example
time required: 10 minutes
level: medium (need to know the "array" data variable as a generic programming concept, basic Pine syntax)
tl;dr how variables and series work in Pine
Pine is an array/vector language. That's something that twists how it behaves, and how we have to think about it. A lot of misunderstandings come from...