What is the Exponential Moving Average (EMA) in Trading

In this post, we will discuss what the Exponential Moving Average (EMA) is and how is it used when trading stocks, commodities or currencies. If you are new to moving averages, then I highly recommend that you first read our article about “Simple Moving Average (SMA) in Trading” in order to better understand the contents of […]

Java BigDecimal, Dealing with high precision calculations

In this tutorial, we will discuss how to use the Java BigDecimal class to deal with calculations that require a high degree of precision, such as when dealing with currency conversion, taxes or even high accuracy mathematical calculations. Why do we need the BigDecimal class In Java a floating point or a fractional number can […]

ArithmeticException in Java – Causes & Treatment

In this tutorial, we will introduce a few examples that would highlight the causes of getting an ArithmeticException thrown within a Java program. We will discuss the common causes of the exception, and how these could be treated. What is an ArithmeticException? An arithmetic exception is an error that is thrown when an invalid arithmetic […]

Java ArrayIndexOutOfBoundsException – Causes & Fixes

In this tutorial, we will discuss what a Java ArrayIndexOutOfBoundsException is, what causes it and how to make sure that you avoid it. What is an ArrayIndexOutOfBoundsException An array-index out of bounds exception is a Java exception thrown due to the fact that the program is trying to access an element at a position that […]

Scroll to top