chiggaway.com
- 10 min readBollinger Bands is a technical analysis tool used to measure the volatility of a stock or other security. It consists of a simple moving average line, typically set at 20 periods, along with upper and lower bands that are two standard deviations above and below the moving average. Traders use Bollinger Bands to identify potential price breakouts, trends, and reversals.
- 8 min readA stochastic oscillator is a momentum indicator that compares a security’s closing price to its price range over a specific period of time. In Fortran, you can compute the stochastic oscillator by calculating the %K and %D values using the following formula:%K = (Current Close - Lowest Low) / (Highest High - Lowest Low) * 100 %D = 3-day moving average of %KYou can then plot these values on a chart to identify overbought and oversold conditions in the market.
- 7 min readTo compute Ichimoku Cloud using Lua, you would need to calculate the values of the nine different components that make up the Ichimoku Cloud: Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, Chikou Span, and three additional components used for graphical representations. These values are typically calculated based on a specified time period, such as a 26-period high and low for the Tenkan-sen and Kijun-sen lines.
- 5 min readThe Williams %R is a technical indicator used in financial market analysis to determine overbought or oversold conditions in a price trend. In Erlang, the Williams %R can be implemented using mathematical calculations within a program to analyze historical price data and generate trading signals. By monitoring the Williams %R values, traders can make informed decisions on when to buy or sell assets based on the indicator's readings.
- 7 min readSupport and resistance levels can be calculated in Visual Basic by analyzing historical price data of a financial asset. Support levels are levels at which the price of an asset tends to stop falling and bounces back up. Resistance levels, on the other hand, are levels at which the price of an asset tends to stop rising and reverses its direction.
- 5 min readOn-Balance Volume (OBV) is a technical analysis tool used to track the flow of volume in and out of a security. It is calculated by adding the volume on days when the price closes higher than the previous day's close, and subtracting the volume on days when the price closes lower than the previous day's close.In Julia, you can compute the OBV for a given security by first importing the necessary packages such as DataFrames and Plots.
- 6 min readThe Moving Average Convergence Divergence (MACD) is a popular technical analysis tool used by traders to identify potential trend reversals and entry/exit points in the financial markets. It is calculated based on the difference between two exponential moving averages (EMA) of an asset's price.To use the MACD indicator in Python, you first need to calculate the EMA of the asset's price data. Then, you can calculate the MACD line by subtracting the longer EMA from the shorter EMA.
- 7 min readTo create a Simple Moving Average (SMA) in Dart, you can start by defining a list of numeric values that you want to calculate the moving average for. Then, you can write a function that takes this list and a parameter for the number of periods to consider in the calculation.Inside the function, you can use a for loop to iterate over the list of values, taking the average of the specified number of periods at each step.
- 5 min readTo calculate Simple Moving Average (SMA) using Clojure, you can first define a function that takes in a vector of numbers and a window size as input parameters. Within this function, you can use the partition function to create sublists of numbers based on the window size. Then, you can map over these sublists and calculate the average of each sublist using the apply function with the + and / operators. Finally, you can return a vector of the calculated SMAs.
- 8 min readThe Average Directional Index (ADX) is a technical indicator used in financial markets to evaluate the strength of a trend. It is typically used in conjunction with other indicators to make trading decisions.In Java, the ADX can be calculated using historical price data. The formula for the ADX involves calculating the positive directional movement (+DI) and negative directional movement (-DI), as well as the true range values for the time period being analyzed.
- 6 min readSupport and resistance levels are key concepts in technical analysis used to identify potential price levels at which a market trend could reverse. In Visual Basic, these levels can be used to make trading decisions or automate trading strategies.Support levels are areas where the price of an asset historically has difficulty falling below, while resistance levels are areas where the price historically struggles to rise above.