# Tutorials

## Golang : Calculate a pip value and distance to target profit example

Below is an example on how to calculate a pip value from a given trade amount and exchange rate of….... read more

## Golang : Calculate US Dollar Index (DXY)

Below is a code example on how to calculate the US dollar index based on a basket of other related….... read more

## Golang : Calculate pivot points for a cross

As a habit, before I get into a trade position, I will always double check the target cross' pivot points.….... read more

## Golang : Scan forex opportunities by Bollinger bands

My previous post of using Golang to create a scanner to spot opportunities is base on RSI criteria. For this….... read more

## Golang : Find correlation coefficient example

Below is an example of Golang code to find the strength of relation between two given variables or correlation coefficient.….... read more

## Golang : A simple forex opportunities scanner

Below is a simple program that will scan for trading opportunities. Basically what this program does is to calculate a….... read more

## Golang : Get a list of crosses(instruments) available to trade from Oanda account

Below is a simple program to get a list of available crosses for trading from Oanda.com. My original purpose of….... read more

## Golang : Oanda bot with Telegram and RSI example

Putting this down for my own reference in case I need it again in future. Basically, the code below is….... read more

## Golang : How to iterate a slice without using for loop?

A very simple example on how to iterate a slice of integers without using a `for` loop and use recursive….... read more

## Golang : Find the length of big.Int variable example

There is a chance that you will ever need to get the length of `big.Int` variable and below is a….... read more

## Javascript : Change page title to get viewer attention

Nowadays, most browser users will open multiple tabs of web pages to view couple of pages by tabbing in and….... read more

## Golang : Selection sort example

The selection sort algorithm is an in-place comparison sort. What it does is that it loops a given slice and….... read more

## Golang : Map within a map example

Just an example of map within map in Golang. The example below demonstrates how to put declare a map with….... read more

## Golang : Check if an integer is negative or positive

A simple example on how to check if a given number is negative or positive number in Golang.

## Golang : Count number of digits from given integer value

Just a simple program to count number of digits from a given integer value. Need this to calculate if an….... read more

## Golang : Extract part of string with regular expression

Below is a simple example of how to extract a specific part of a string with the help of regular….... read more

## Golang : Parse date string and convert to dd-mm-yyyy format

A reader enquired on how to use Golang to convert date string such as "28th nov 2016" or "nov….... read more

## Golang : Randomize letters from a string example

For this short tutorial, we will learn how to randomize the letters(including symbols and empty spaces) in a string. Such….... read more