LibIndicadoresUteisLibrary "LibIndicadoresUteis"
Collection of useful indicators. This collection does not do any type of plotting on the graph, as the methods implemented can and should be used to get the return of mathematical formulas, in a way that speeds up the development of new scripts. The current version contains methods for stochastic return, slow stochastic, IFR, leverage calculation for B3 futures market, leverage calculation for B3 stock market, bollinger bands and the range of change.
estocastico(PeriodoEstocastico)
Returns the value of stochastic
Parameters:
PeriodoEstocastico : Period for calculation basis
Returns: Float with the stochastic value of the period
estocasticoLento(PeriodoEstocastico, PeriodoMedia)
Returns the value of slow stochastic
Parameters:
PeriodoEstocastico : Stochastic period for calculation basis
PeriodoMedia : Average period for calculation basis
Returns: Float with the value of the slow stochastic of the period
ifrInvenenado(PeriodoIFR, OrigemIFR)
Returns the value of the RSI/IFR Poisoned of Guima
Parameters:
PeriodoIFR : RSI/IFR period for calculation basis
OrigemIFR : Source of RSI/IFR for calculation basis
Returns: Float with the RSI/IFR value for the period
calculoAlavancagemFuturos(margem, alavancagemMaxima)
Returns the number of contracts to work based on margin
Parameters:
margem : Margin for contract unit
alavancagemMaxima : Maximum number of contracts to work
Returns: Integer with the number of contracts suggested for trading
calculoAlavancagemAcoes(alavancagemMaxima)
Returns the number of batches to work based on the margin
Parameters:
alavancagemMaxima : Maximum number of batches to work
Returns: Integer with the amount of lots suggested for trading
bandasBollinger(periodoBB, origemBB, desvioPadrao)
Returns the value of bollinger bands
Parameters:
periodoBB : Period of bollinger bands for calculation basis
origemBB : Origin of bollinger bands for calculation basis
desvioPadrao : Standard Deviation of bollinger bands for calculation basis
Returns: Two-position array with upper and lower band values respectively
theRoc(periodoROC, origemROC)
Returns the value of Rate Of Change
Parameters:
periodoROC : Period for calculation basis
origemROC : Source of calculation basis
Returns: Float with the value of Rate Of Change
IFR
IFR 2 Stormer RSI 2STORMER's IFR 2 strategy or if you prefer RSI 2.
It consists of a trader technique known as STORMER.
This strategy works preferentially in the daily period. But it does not prevent it from being used in other periods.
Dissecting the strategy:
Buy when 2-Period IFR smaller Oversold n periods in example 10.
And close the trade when the price reaches the maximum of the last 2 periods.
A 200 period filter is also used.
Everything can be changed IFR (RSI), Stop high n periods, sma.
A estratégia IFR 2 do STORMER ou se preferir RSI 2.
Consiste em uma técnica do trader conhecido como STORMER.
Esta estrategia funciona preferencialmente no periodo diario. Mas não impede de ser usado em outros periodos.
Dissecando a estratégia:
Comprar quando IFR de 2 Períodos menor Oversold "Sobrevendido" n períodos no exemplo 10.
E encerrar o trade quando o preço atingir a máxima dos últimos 2 periodos.
É usado também um filtro sma 200 períodos.
Tudo pode ser alterado IFR(RSI), Stop high n períodos, sma.
RSIH‴ | RSI Histogram MomentumRSIH‴ is a Relative Strength Index oscillator that allows you to have a better understanding and interpretation of its behavior once you are able to see it through an histrogram.
As per the standard RSI, RSIH ‴ has extreme zones such as overbought and oversold, but these zones start, respectively, from 20% (similar to 80% on RSI) and from -20% (similar to 20% on RSI), with a mid line at 0% (similar to 50% on RSI).
What is the best is that you can use it with any kind of graphic that it will always considere the real open, close, high and low trading values.
To have access to this indicator, please contact me at: contato @ moneywise . com . br
Believe me, this indicator will make your life much easier!
Stocks and RSI (IFR e Estocagem)A simple script that promotes a good visualization of the oscillators.
It shows a graph with two plots, one of relative strength index and one of stock, painting the red line when overbought and green when oversold.
Um script simples mas que promove uma boa visualização dos osciladores.
Mostra um gráfico com duas plotagens, uma do índice de força relativa e outra de estocagem, pintando a linha de vermelho quando está sobrecomprado e de verde quando sobrevendido.