Skip to main content
MyWebForum

MyWebForum

  • How to Use Price Rate Of Change (ROC) For Swing Trading? preview
    11 min read
    Price Rate of Change (ROC) is a powerful technical indicator that can be used for swing trading strategies. It helps traders identify when a particular stock's price is accelerating or decelerating. Here are some ways to use ROC for swing trading:Understanding Price Momentum: ROC measures the percentage change in price over a specific time frame, typically expressed as a percentage. By calculating the ROC, traders can gauge the strength of the current price movement.

  • How to Append to an Array In Groovy? preview
    3 min read
    To append elements to an array in Groovy, you can use the .plus() method or the += operator. Here's an example: def myArray = ['apple', 'banana', 'cherry'] myArray = myArray.plus('orange') // or myArray += 'orange' println myArray Output: [apple, banana, cherry, orange] In the example above, we start with an array containing three elements. By using the .plus() method or += operator, we append the string 'orange' to the array.

  • Stochastic Oscillator For Beginners? preview
    7 min read
    The Stochastic Oscillator is a popular technical analysis tool used by traders and investors to assess the momentum and strength of a financial instrument. It helps identify potential buying or selling opportunities in the market.The Stochastic Oscillator focuses on the relationship between a security's closing price and its price range over a specific period of time, typically 14 periods.

  • How to Do Pattern Match In Groovy Script? preview
    6 min read
    Pattern matching in Groovy script can be done using regular expressions. Regular expressions are sequences of characters that define a search pattern, allowing you to match and manipulate strings based on specific patterns.To perform pattern matching in Groovy, you can use the =~ operator along with regular expression patterns. Here is an example that demonstrates pattern matching in a Groovy script: def text = "Hello, World.

  • How to Access the Java Primitive Int Type In Groovy?? preview
    4 min read
    In Groovy, accessing the Java primitive int type is straightforward as Groovy directly supports Java types.

  • Guide to Triangular Moving Average (TMA) For Beginners? preview
    10 min read
    The Triangular Moving Average (TMA) is a technical analysis indicator used in financial markets to smooth out price fluctuations and identify trends. It is a variation of the simple moving average (SMA) and provides a more accurate representation of the average price over a specific period.Unlike the SMA, which gives equal weight to all data points in the calculation, the TMA assigns more weight to the recent data points and less weight to the older ones.

  • How to Extract Attribute Id From Xml File With Groovy? preview
    3 min read
    To extract attribute id from an XML file using Groovy, you can use the XmlSlurper class provided by Groovy. Here's how you can do it:First, import the necessary classes: import groovy.util.XmlSlurper Load the XML file: def xml = new XmlSlurper().parse('path/to/your/file.xml') Use dot notation or indexing to access the attribute value: def idValue = xml.elementName.

  • How to Use Bollinger Bands? preview
    13 min read
    Bollinger Bands are a popular technical analysis tool used by traders to assess the volatility and potential price movements of a financial instrument. They consist of three lines plotted on a price chart, typically representing a moving average line in the center, and two standard deviation lines above and below the moving average.To use Bollinger Bands effectively, traders primarily look for three main aspects:Volatility assessment: Bollinger Bands provide a measure of market volatility.

  • Why an Immutable Class Is Mutable In Groovy? preview
    7 min read
    In Groovy, an immutable class, by definition, means that the state of the object cannot be modified after its creation. However, Groovy introduces some flexibility with regards to immutability.By default, Groovy classes are mutable, which means that the properties of an object can be changed. This is in contrast to languages like Java, where immutability is enforced by default. Groovy allows modifications to properties even in classes that are declared as "immutable".

  • How to Print A Pdf on Client Side From A Groovy Webapp? preview
    9 min read
    To print a PDF on the client side from a Groovy web application, you can follow these steps:Retrieve the PDF file: Make sure you have a PDF file that you want to print. This file can be stored on the server-side or generated dynamically by your Groovy web application. Prepare the print functionality: In your Groovy web application, create a button or link that triggers the print functionality. This can be achieved by adding an onclick event to the button/link.

  • The Basics Of Exponential Moving Average (EMA)? preview
    10 min read
    The Exponential Moving Average (EMA) is a mathematical calculation used in technical analysis to smooth out price data points and provide a moving average of an asset's price over a specified period of time. It is similar to simple moving averages (SMA), but it places more weight on recent price data and reacts faster to recent price changes.EMA is calculated by applying a calculation formula that involves using the current price, the previous EMA value, and a smoothing factor.