chiggaway.com
-
5 min readTo calculate Chaikin Money Flow (CMF) using Scala, you first need to understand the formula for CMF. CMF is calculated by taking the sum of the Money Flow Volume over a certain period (typically 20 days) and dividing it by the sum of the volume over the same period.To implement this calculation in Scala, you would first need to collect the necessary data such as the closing price, high, low, and volume of a stock over a specific period.
-
9 min readThe Commodity Channel Index (CCI) is a popular technical indicator used to identify overbought or oversold conditions in a market. It is calculated by taking the difference between the typical price of a security for a specified period and a simple moving average of the typical price, and then dividing that difference by a normalized mean deviation.
-
6 min readTo calculate the rate of change (ROC) using PHP, you need to first determine the initial and final values of the quantity you are measuring. The formula for calculating ROC is (final value - initial value) / initial value * 100.You can create a PHP function that takes the initial and final values as parameters, and then use the formula to calculate the rate of change.
-
4 min readMoving averages (MA) are a widely used technical indicator in financial analysis to smooth out price fluctuations and identify trends. To calculate a moving average using MATLAB, you can use the 'movmean' function, which computes the average of a specified number of consecutive elements in a vector.To calculate a simple moving average (SMA), you can specify the window size as the number of periods you want to include in the average.
-
6 min readA tutorial on implementing a stochastic oscillator using Ruby can be a useful resource for developers looking to incorporate technical analysis into their trading strategies. The stochastic oscillator is a popular indicator used by traders to identify overbought and oversold conditions in the market.In this tutorial, you can learn how to calculate the stochastic oscillator for a given set of price data using Ruby.
-
8 min readThe Parabolic SAR (Stop and Reverse) is a technical indicator used in trading to determine potential reversal points in the market. It is calculated based on the price momentum of an asset and is represented by a series of dots on the chart. When the dots are below the price, it indicates a bullish trend, and when they are above the price, it signals a bearish trend.
-
5 min readFibonacci extensions in Lua are a commonly used tool in technical analysis to determine potential levels of support and resistance in financial markets. The Fibonacci extension levels are used to predict where prices may move to following a price retracement. By applying the Fibonacci ratios to key points on a price chart, traders can identify levels where a financial instrument may potentially reverse or continue its trend.
-
6 min readIn Fortran, the Fibonacci extensions can be calculated by first calculating the Fibonacci numbers using a recursive function or an iterative loop. Once the Fibonacci numbers are calculated, the extensions can be obtained by multiplying the last Fibonacci number by various ratios such as 1.618, 2.618, 4.236, etc.To use the Fibonacci extensions in Fortran, you would first need to write a subroutine or function to calculate the Fibonacci numbers.
-
7 min readTo calculate the Average True Range (ATR) using Golang, you will first need to gather the necessary historical price data for the asset or security you are interested in analyzing. The ATR is a volatility indicator that measures the average range of price movement over a specified period of time.Once you have the historical price data, you can start by calculating the True Range (TR) for each period.
-
7 min readTo compute the Ichimoku Cloud using Clojure, you can write a program that follows the mathematical formulas for calculating the components of the Ichimoku Cloud. This includes calculating the Tenkan-sen (Conversion Line), Kijun-sen (Base Line), Senkou Span A, Senkou Span B, and the Chikou Span.
-
8 min readIn Julia, you can compute pivot points by using mathematical formulas that calculate the support and resistance levels for a financial instrument. These pivot points are used by traders to determine potential turning points in the market and make decisions on when to buy or sell a security.