Skip to main content

Back to basics, back to bash

It had been quite some time since I wrote a bash script, besides the usual one liners I use for getting around my Linux boxes. And it seems to me that unix shell scripting and especially bash scripting is a perfect basis for other scripting languages like perl, python, php and even javascript or xslt. Luckily, on the internet there are some wonderful resources to help learn or get back up to speed with bash scripting. So I figured I'd share some of these.



First of all there is the Linux Documentation Project where you can find many guides and howto's on all things related to Linux and so also bash scripting.
Here are some direct links to two guides:
Bash Guide for Beginners
Great for getting started and also for using as a reference by using the glossary.
Advanced Bash-Scripting Guide
Same as the above only more recently updated. You can use the index for reference and there is a list of examples, which I always find helpful. I definitely want to go through this guide. It's good stuff.

But there is more good stuff in the form of video, which I always find very accessible and engaging. Here are two interesting youtube playlists:

Mr Tutorize: unix shell scripting tutorial
Nice structured unix shell scripting course



Metalx1000: BASH Basics
Basic bash stuff


Metalx1000: BASH
200 more videos about the many fun things you can do with bash scripting


Below is just a short snippet of bash shell script code, that shows how I intend to be using bash to pull data from Yahoo Finance so I can run trading strategies on that data.
As soon as I have a scripted strategy working I will post it. No guaranties, however, as I got many other projects going on :-)

Popular posts from this blog

How to install Google Drive Sync on Ubuntu 16.04 and higher

Google drive is one of the many handy tools Google offers. It is a file synchronization tool that allows you to backup, store and share and access files in the cloud. I use it to collaborate on files with others or to sync movies that I can then easily publish on Youtube.



Unfortunately there is no native Google drive software for Linux Desktops. Luckily there is a way to have a proper sync setup on Ubuntu 16.04 and higher that uses the Google drive API and some Gui tools. Let me show you how I have this installed on my Ubuntu Desktop.

First I install the Grive2 commandline tool:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install grive

No need to set it up right now. Instead let's first install grive-tools. This is a package that is only available up to Ununtu Vivid, but I have found that is works just the same on Ubuntu 16.04
Run the following from a terminal:

sudo su -c "nano /etc/apt/sources.list.d/thefanclub*.list"
deb http://ppa.lau…

How to back test a manually traded strategy using TradingView

Trading is hard. It takes a lot of practice. One way to practice and build skill and confidence is to back test a system over and over again. In this video I show you how I do this using online charts at Tradingview.

Tools of the trade

In this article I will tell you about the possible tools you have at your disposal for trading. Whether you are building a fence, or building a trading strategy, you need tools to get the work done. In the previous articles we already looked at the question of why, how, what and where to trade. Now it is time to get some tools and setup an infrastructure for trading. We basically need three types of tools.