Tuesday, January 19, 2010

Apache htaccess password

1.AccessFileName .htaccess in httpd.conf (if windows)

2.httpd.conf or vhost.conf
<directory "path/to/webfolder>
Options None
AllowOverride all
Order deny,allow
</directory>
3.htpasswd -c -b password.txt name password

4.Create .htaccess under webfolder
AuthUserFile /path/to/passwd.txt
AuthType Basic
AuthName "some text"

<limit GET POST>
require valid-user
</limit>

Friday, January 15, 2010

NOWING Automated Currency Trading System Structure

Hey! Smile!
  • Book Center
    stores historical quotes, transaction records and periodical analysis results.
  • Broker Gateway
    communicates with FX brokers' systems, sends/receives transactions.
  • Automated Traders
    hold different trading strategies and send out trading signals.
  • Communication Interface
    controls and monitors the system.

  • Web Server
    provides a fancy interface, shows charts, reports to end users.
  • End User
    unhappy investors.

Thursday, January 14, 2010

SQL to check Oracle version

select * from v$version;

or

select * from product_component_version;

Use market activity instead of trading hours to decide when to run the automated FX scripts

Some automated trading programs only trade during certain time periods. That's because at certain time period, the market usually has a relatively stable pattern, either volatile or nonvolatile.

Comparing with trading hour, market activity is a more essential factor for measuring a stable pattern.

market activity can be measured as(I can think of right now):
1. tick counts per minute
2. price net absolute change per minute
3. price gross absolute change per minute