freelanceshack.com
- 12 min readThe Money Flow Index (MFI) is a technical indicator that measures the flow of money into or out of a financial instrument over a given period of time. It is used by traders to identify potential buying or selling opportunities based on the strength and direction of the money flow.To trade with the Money Flow Index (MFI), follow these steps:Understanding MFI Levels: The MFI ranges from 0 to 100 and is typically displayed as an oscillator.
- 11 min readAcceleration Bands are a popular technical indicator used by day traders to assess the direction and strength of a trend in the financial markets. It consists of upper and lower bands, along with a middle band (which is a simple moving average).The interpretation of Acceleration Bands involves understanding how they are constructed and how they can be used to make trading decisions.
- 8 min readKeltner Channels is a technical analysis tool that helps traders identify potential trading opportunities. It consists of three lines plotted on the price chart: the middle line, which is an exponential moving average (EMA) of the asset's price; an upper line, which is typically set at a certain number of average true ranges (ATR) above the EMA; and a lower line set at the same number of ATR below the EMA.
- 7 min readGroovy closures are a fundamental part of the Groovy programming language and they enable powerful functionality such as higher-order programming, functional programming, and domain-specific languages.Internally, closures are implemented as objects of a specialized Closure class in Groovy. This class extends the java.lang.Object class and implements the groovy.lang.GroovyObject interface.
- 5 min readThe Elder-Ray Index, developed by Dr. Alexander Elder, is a technical analysis tool used in swing trading to identify potential trends and reversals in the market. It consists of two components - the Bull Power and the Bear Power.Bull Power is calculated by subtracting the 13-day exponential moving average (EMA) of the closing price from the high of the day. On the other hand, Bear Power is calculated by subtracting the 13-day EMA of the closing price from the low of the day.
- 8 min readTo call a Gradle method from a Groovy script, you can follow these steps:Import the necessary Gradle classes at the beginning of the script: import org.gradle.api.Project Access the Gradle project object within your script: Project project = project Use the project object to call any desired Gradle methods. For example, to invoke the task method: project.task('taskName') You can also pass any required parameters to the method, just like you would do in a Gradle build script: project.
- 6 min readTo call a Groovy script from a Jenkins file, you can follow these steps:First, make sure you have the necessary plugins installed on your Jenkins server to support Groovy scripting. In your Jenkins pipeline or job, create a new stage or step where you want to call the Groovy script. Inside that stage or step, use the sh step to execute a shell command. Groovy scripts can be executed within a shell environment. stage('Call Groovy Script') { steps { sh ''' groovy myscript.
- 8 min readMoving Average Convergence Divergence (MACD) is a popular technical analysis tool used to identify potential buy and sell signals in financial markets. It consists of two main components - the MACD line (also known as the MACD indicator) and the signal line.The MACD line is calculated by subtracting the 26-period exponential moving average (EMA) from the 12-period EMA. The result is a line that oscillates above and below the zero line.
- 4 min readTo extract version information using regular expressions (regex) in Groovy, you can follow these steps:Import the necessary packages: import java.util.regex.Matcher import java.util.regex.Pattern Define the input string that contains the version information you want to extract: def input = "Version: 1.2.3" Define the regex pattern to match the version information: def pattern = Pattern.compile("\\d+(\\.\\d+)+") Explanation of the regex pattern:\\d+ matches one or more digits(\\.
- 6 min readThe Ichimoku Cloud, also known as Ichimoku Kinko Hyo, is a popular technical analysis tool used in trading. It consists of five different lines or components that create a cloud-like structure. These components are calculated using various mathematical formulas.Tenkan-Sen (Conversion Line): The Tenkan-Sen is calculated by averaging the highest high and the lowest low over a specific period (typically 9 periods). It provides a moving average line that helps identify short-term trends.
- 7 min readTo check if a URL exists or returns a 404 status code using Groovy script, you can use the HttpURLConnection class provided by the java.net package. Here's an example: import java.net.HttpURLConnection import java.net.URL String urlToCheck = "https://www.example.com" try { URL url = new URL(urlToCheck) HttpURLConnection connection = url.openConnection() as HttpURLConnection connection.requestMethod = "HEAD" connection.