Swing Stock Trading

Swing stock trading means buying and selling stocks many times when the stock prices are at or near their bottom or top position. Some details and more information can be found at [1],[2].

The simple and well known rule – buy low and sell high can be applied here too. But how do we detect when it is low and when it is high?

Historical data and computer simulation can be the answer. We can pick the strategy and then evaluate it using past data. By changing some parameters and running simulation on the past data we can also improve the strategy.

For example the simple rule – buy when one day stock price decrease is more than some number (delta) and sell when the increase is more than delta can be run on previous stock data with the different delta.

References – External Links

1. Swing trading From Wikipedia, the free encyclopedia
2.Swing Stock Trading – Simple Time And Price Predictions Strategy



Some Thoughts on Tag Cloud Generators

In preparation for upgrading the cloud computing tool at Tag Cloud Generator and Service I decided to review tag cloud resources on the web to understand current state and features used.

Below will be brief summary of what was found. First of all here is very useful link to 5 Online Tools To Create Tag Clouds And here is one more review of Word Cloud Generators on the web 12 Cool Word Cloud Generators Some description of tag cloud algorithm and PHP source code can be found at Font variation in tag clouds The usage of tag cloud is now more extended. Many online tag generators now have also text box where any text can be submitted. This allow to use the service for idea brainstorming, text visualization, text analysis.

Originally tag clouds were used as another way of navigation on web site. I still sometimes see the web sites that provide tag cloud widgets however from the reading forum discussion at Tag Clouds: A Worthless WordPress Widget? looks like the usage for website navigation is significantly decreased. However in my opinion this does not mean that such visualization of information is worthless for web site navigation. The problem is that it is very hard to create good tag cloud. The current generators do not have all needed features and so people find tag clouds not usable enough. For example I just saw the tag cloud for “Cloud Computing” and the words “Cloud” and “Computing” where at separated positions. Such separated words can lead to wrong conclusions about links. Additionally I saw some noise words that does not mean much. Such features as remove some words from tag cloud based on different criteria, recognizing word phrases, similar words, grouping near each other tags on the same or similar topic instead of locating tags by alphabet order – all this is very important but still hard to find on the web.

In 2006 in the article The Future of Tag Clouds the author is saying about the idea of being able to manipulate the content and the presentation of a tag cloud. Does anyone know such tools?



Your Life Path Number Can Discover Your Destiny

Your life path number is the most important number in your numerology charts and is the only number that will never change. Based upon your birth date, your life path number provides insight into the foundations of your character.
1
Those born with the life path number one are the world’s natural leaders. Ones are driven and ambitious; they dream big and can usually be counted on to achieve their goals. Ones can be bossy and overbearing in some situations.
2
Life path number two is associated with peacemaking. Twos can’t bear conflict; they’ll go out of their way to mediate problems between friends and loved ones. Twos are excellent listeners but may suffer from anxiety or indecision when placed in competitive environments.
3
If you’re born under the number three, you’re probably happiest when engaging in creative pursuits. Threes are artists. They love self-expression in the form of music, visual arts, or literature. Threes don’t thrive under restrictive conditions, though, so avoid jobs that involve strict routines.
4
People born with life path number four are drawn to careers where they can organize or build things. They need very structured, regimented environments in order to be happy. Fours make good architects, engineers, or programmers. They don’t work well with people who are very expressive with their emotions.
5
The life path number five is most closely associated with idealism. Fives need to feel like they are making the world a better place. You’ll often find fives working for non-profits or political campaigns. Unfortunately, fives can also be impractical and noncommittal.
6
Those born with life path number six are most fulfilled in nurturing positions. Sixes will probably be most happy as parents. They thrive in caretaker positions like medicine or education. Unfortunately, this need to nurture makes it hard for sixes to say no to other people’s demands.
7
Life path number seven is tied to investigation and analysis. Sevens are natural observers of life and they make excellent detectives and scientists. Most sevens are introverts and don’t care for public speaking. People born under life path number eight are life’s managers. They are happiest when directing others.
8
Eights are usually organized and good at mediation. They sometimes have a tendency to become overbearing. Those born under life path number nine are best known for their charisma.
9
Nines make excellent actors or politicians and they usually have vast social networks. Sometimes, nines can be manipulative.

And here is the link where you can calculate life path number – Numerology – Life Path Number Calculator

Also in numerology your name can reveal information about you.

Here is the link to online calculator that will provide your numbers (Inner Self, Soul Urge and Expression Numbers) – What Your Name Can Tell



The First Script with Google Apps

Google provides many other powerful applications besides search engine. Many people use Google Calendar, Docs, Drive, Gmail, and Sheets. Google Apps Script lets you do even more with Google. All on a JavaScript platform in the cloud.

Here is how you can create the standalone script.

  • Open browser at https://script.google.com.
  • Select Blank Project.
  • Type Logger.log(“Hello World”); inside default myFunction

So you will have the following function:
function myFunction()
{ Logger.log(“Hello World”); }

  • Click on Run and then myFunction to run this script
  • Click on View and then Logs to view output of this script.

In this case we used Logger object to have script to print to console. Below are few links for resources about Apps Script

https://developers.google.com/apps-script/reference/base/

http://www.acertainblog.com/2012/12/writing-google-apps-script.html

http://gotofritz.net/blog/tutorials/getting-started-part-1/

This was a very simple basic script but it is showing how quickly to start with google scripting.
In the future we will look at more practical scripts.



How to Write to a Google Spreadsheet with a Perl Script

Google Docs is one of many cloud computing document-sharing services and provides an alternative to MS Office applications such as MS Excel. This post will show how to write data to Google Docs Spreadsheet and read data back from the same spreadsheet using perl programming language.

Google Sheets is an online spreadsheet application that lets you create and format spreadsheets and simultaneously work with other people. Here are the links for more information:
Overview of Google Sheets
Create and save a spreadsheet

First you need to create spreadsheet where the script will put some data. You need Google account for this. To create a new spreadsheet, go to your Google Drive , click the red ‘Create’ button, and select ‘Spreadsheet’ from the drop-down menu. As soon as you name the spreadsheet or start typing, Google Sheets will automatically save your work every few seconds.

At the top of the spreadsheet, you’ll see text that indicates when your spreadsheet was last saved. Now when you have spreadsheet you can call it in perl script by its name and write data to it. Perl module Net::Google::Spreadsheets provides all needed functions to do this. Below is the basic script that is opening spreadsheet, iterate through several rows and columns, multiply row index by column index and put it to the cell. Then it iterates again and read the values and print them to screen. Obviously you need to put real account information, spreadsheet and sheet names into this script to run it.

use Net::Google::Spreadsheets;
my $service = Net::Google::Spreadsheets->new( username => ‘xxxxxxx’, password => ‘xxxxxxx’ );
my @spreadsheets = $service->spreadsheets();
my $spreadsheet = $service->spreadsheet( { title => ‘spreadsheet_name’ } );
my $worksheet1 = $spreadsheet->worksheet( { title => ‘Sheet1’ } );

# get a cell
my $cell = $worksheet1->cell({col => 1, row => 5});
# update input value of a cell
$cell->input_value(‘new value’);
# print the value of cell
my $cell = $worksheet1->cell({col => 1, row => 5});
print “\n”;
print $cell->input_value;
print “\n”;
for($i=1; $i<4; $i++) { for($j=1; $j<4; $j++) { $cell = $worksheet1->cell({col => $i, row => $j}); $cell->input_value($i*$j);
} }
for($i=1; $i<4; $i++) { for($j=1; $j<4; $j++) { $cell = $worksheet1->cell({col => $i, row => $j});
print $cell->input_value;
print ” “;
}
print “\n”; }

To test that it really put values to spreadsheet you can access your spreadsheet at any time by opening your spreadsheet at Google Drive after you run perl script. So now we can create different programs that export or import data to spreadsheet.

References:

4 Free Alternatives To Microsoft Excel by Richard Wilson on May 8, 2013